Skip to content

Commit 0925506

Browse files
authored
Merge pull request #3074 from craigcomstock/ent-13016-disable-tests/master
Added RedHat 10 and Debian 13 to platforms to skip for packages tests
2 parents e48a4fc + 7bb5dec commit 0925506

File tree

6 files changed

+26
-21
lines changed

6 files changed

+26
-21
lines changed

standalone_self_upgrade.cf.in

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,18 @@ bundle common cfengine_package_names
559559
"pkg[oracle_8_x86_64]" string => "$(pkg[redhat_8_x86_64])";
560560
"pkg[rocky_8_x86_64]" string => "$(pkg[redhat_8_x86_64])";
561561

562-
# Redhat/Centos/Oracle/Rocky 8 use the same package
562+
# Redhat/Centos/Oracle/Rocky 9 use the same package
563563
"pkg[redhat_9_x86_64]" string => "$(pkg_name)-$(pkg_version)-$(pkg_release).el9.x86_64.rpm";
564564
"pkg[centos_9_x86_64]" string => "$(pkg[redhat_9_x86_64])";
565565
"pkg[oracle_9_x86_64]" string => "$(pkg[redhat_9_x86_64])";
566566
"pkg[rocky_9_x86_64]" string => "$(pkg[redhat_9_x86_64])";
567567

568+
# Redhat/Centos/Oracle/Rocky 10 use the same package
569+
"pkg[redhat_10_x86_64]" string => "$(pkg_name)-$(pkg_version)-$(pkg_release).el10.x86_64.rpm";
570+
"pkg[centos_10_x86_64]" string => "$(pkg[redhat_10_x86_64])";
571+
"pkg[oracle_10_x86_64]" string => "$(pkg[redhat_10_x86_64])";
572+
"pkg[rocky_10_x86_64]" string => "$(pkg[redhat_10_x86_64])";
573+
568574

569575
# 64bit Debian
570576

@@ -574,6 +580,7 @@ bundle common cfengine_package_names
574580
"pkg[debian_10_x86_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian10_amd64.deb";
575581
"pkg[debian_11_x86_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian11_amd64.deb";
576582
"pkg[debian_12_x86_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian12_amd64.deb";
583+
"pkg[debian_13_x86_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian13_amd64.deb";
577584

578585
# 64bit Ubuntu
579586
"pkg[ubuntu_14_x86_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).ubuntu14_amd64.deb";
@@ -590,6 +597,7 @@ bundle common cfengine_package_names
590597
# aarch64 Debian
591598
"pkg[debian_11_arm_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian11_arm64.deb";
592599
"pkg[debian_12_arm_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian12_arm64.deb";
600+
"pkg[debian_13_arm_64]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian13_arm64.deb";
593601

594602
# 32bit DEBs
595603
"pkg[$(cfengine_master_software_content._deb_dists)_$(cfengine_master_software_content._32bit_arches)]" string => "$(pkg_name)_$(pkg_version)-$(pkg_release).debian7_i386.deb";
@@ -668,6 +676,12 @@ bundle agent cfengine_master_software_content
668676
"dir[oracle_9_x86_64]" string => "$(dir[redhat_9_x86_64])";
669677
"dir[rocky_9_x86_64]" string => "$(dir[redhat_9_x86_64])";
670678

679+
# Redhat/Centos/Oracle/Rocky 10 use the same package
680+
"dir[redhat_10_x86_64]" string => "agent_rhel10_x86_64";
681+
"dir[centos_10_x86_64]" string => "$(dir[redhat_10_x86_64])";
682+
"dir[oracle_10_x86_64]" string => "$(dir[redhat_10_x86_64])";
683+
"dir[rocky_10_x86_64]" string => "$(dir[redhat_10_x86_64])";
684+
671685
# Debian
672686
"dir[debian_7_x86_64]" string => "agent_deb_x86_64";
673687
"dir[debian_8_x86_64]" string => "agent_debian8_x86_64";
@@ -676,7 +690,9 @@ bundle agent cfengine_master_software_content
676690
"dir[debian_11_x86_64]" string => "agent_debian11_x86_64";
677691
"dir[debian_11_arm_64]" string => "agent_debian11_arm_64";
678692
"dir[debian_12_x86_64]" string => "agent_debian12_x86_64";
693+
"dir[debian_13_x86_64]" string => "agent_debian13_x86_64";
679694
"dir[debian_12_arm_64]" string => "agent_debian12_arm_64";
695+
"dir[debian_13_arm_64]" string => "agent_debian13_arm_64";
680696

681697
# Ubuntu
682698
"dir[ubuntu_14_x86_64]" string => "agent_ubuntu14_x86_64";

tests/acceptance/17_packages/01_init/unsafe/timed/001-prepare-repositories.cf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@ body common control
1313
"../../../../../../$(sys.local_libdir)/files.cf",
1414
"../../../../../../$(sys.local_libdir)/commands.cf",
1515
"../../../packages-info.cf.sub",
16+
"../../../meta_skip.cf.sub",
1617
};
1718
bundlesequence => { default("$(this.promise_filename)") };
1819
}
1920

2021
bundle agent test
2122
{
22-
meta:
23-
"test_skip_needs_work" string => "!redhat.!debian",
24-
meta => { "redmine5866" };
25-
# RedHat 4 RPM has a bug which corrupts the RPM DB during our tests, so it is untestable.
26-
"test_skip_unsupported" string => "redhat_4|centos_4";
27-
2823
vars:
2924
"bundles" slist => { "repositories",
3025
"signing_keys",

tests/acceptance/17_packages/10_new/unsafe/the_great_package_test.cf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ bundle agent init
3535
# packages where earlier releases did not, so fails many tests.
3636
# RHEL 8 has broken DNF (upgrading a 32bit package also installs a 64bit
3737
# package)
38+
3839
"test_soft_fail" string => "rhel_8|rhel_9",
39-
meta => {"CFE-rhbz", "CFE-4096"};
40+
meta => {"CFE-rhbz", "CFE-4096", "ENT-13499" };
4041

4142
# For setting up the cfengine-selected-python symlink we want to
4243
# target $(sys.bindir) as that will be in the test WORKDIR.

tests/acceptance/17_packages/10_new/unsafe/the_great_package_test_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ def header(test_count):
121121
# packages where earlier releases did not, so fails many tests.
122122
# RHEL 8 has broken DNF (upgrading a 32bit package also installs a 64bit
123123
# package)
124+
124125
"test_soft_fail" string => "rhel_8|rhel_9",
125-
meta => {"CFE-rhbz", "CFE-4096"};
126+
meta => {"CFE-rhbz", "CFE-4096", "ENT-13499" };
126127
127128
# For setting up the cfengine-selected-python symlink we want to
128129
# target $(sys.bindir) as that will be in the test WORKDIR.

tests/acceptance/17_packages/11_old/unsafe/package-inventory.cf

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,13 @@ body common control
1313
"../../../../../$(sys.local_libdir)/packages.cf",
1414
"../../../../../inventory/any.cf",
1515
"../../packages-info.cf.sub",
16+
"../../meta_skip.cf.sub",
1617
};
1718
bundlesequence => { default($(this.promise_files)) };
1819
}
1920

2021
bundle agent init
2122
{
22-
meta:
23-
# need packages for platforms other than redhat and debian on x86_64 architecture
24-
# see tests/acceptance/17_packages/meta_skip.cf.sub
25-
"test_skip_needs_work" string => "(!redhat.!debian)|(!x86_64)",
26-
meta => { "CFE-3992" };
27-
# RedHat 4 RPM has a bug which corrupts the RPM DB during our tests, so it is untestable.
28-
# And available patches is an Enterprise feature.
29-
"test_skip_unsupported" string => "redhat_4|centos_4|!enterprise";
30-
3123
methods:
3224
"any" usebundle => clear_packages("dummy");
3325
"any" usebundle => install_package("$(p.name[1])", "$(p.version[1])", "$(p.arch)", "dummy");

tests/acceptance/17_packages/meta_skip.cf.sub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
bundle common 17_packages_meta
22
{
33
meta:
4-
"test_skip_needs_work" string => "(!redhat.!debian)|(!x86_64)",
5-
comment => "Need to create test packages for platforms other than x86 redhat and debian based distributions.",
6-
meta => { "CFE-3993", "CFE-3992"};
4+
"test_skip_needs_work" string => "(!redhat.!debian)|(!x86_64)|(debian_13|redhat_10)",
5+
comment => "Need to create test packages for platforms other than x86 redhat and debian based distributions. Also, debian-13 deprecates apt-key and requires a newer pubkey algorithm.",
6+
meta => { "CFE-3993", "CFE-3992", "ENT-13499" };
77

88
"test_skip_unsupported" string => "redhat_4|centos_4|debian_4|debian_etch",
99
comment => "RedHat 4 RPM has a bug which corrupts the RPM DB during our tests, so it is untestable.",

0 commit comments

Comments
 (0)