spec/lib/packaging/config_spec.rb in packaging-0.107.2 vs spec/lib/packaging/config_spec.rb in packaging-0.108.0

- old
+ new

@@ -203,29 +203,29 @@ describe "#platform_data" do platform_tags = [ 'osx-10.15-x86_64', 'osx-11-x86_64', - 'ubuntu-16.04-i386', + 'ubuntu-18.04-amd64', 'el-6-x86_64', 'el-7-ppc64le', 'sles-12-x86_64', ] artifacts = \ "./artifacts/apple/10.15/PC1/x86_64/puppet-agent-5.3.2.658.gc79ef9a-1.osx10.15.dmg\n" \ "./artifacts/apple/11/PC1/x86_64/puppet-agent-5.3.2.658.gc79ef9a-1.osx11.dmg\n" \ - "./artifacts/deb/xenial/PC1/puppet-agent_5.3.2-1xenial_i386.deb\n" \ + "./artifacts/deb/bionic/PC1/puppet-agent_5.3.2-1bionic_amd64.deb\n" \ "./artifacts/el/6/PC1/x86_64/puppet-agent-5.3.2.658.gc79ef9a-1.el6.x86_64.rpm\n" \ "./artifacts/el/7/PC1/ppc64le/puppet-agent-5.3.2-1.el7.ppc64le.rpm\n" \ "./artifacts/sles/12/PC1/x86_64/puppet-agent-5.3.2-1.sles12.x86_64.rpm" aix_artifacts = \ "./artifacts/aix/7.1/PC1/ppc/puppet-agent-5.3.2-1.aix7.1.ppc.rpm" fedora_artifacts = \ - "./artifacts/fedora/32/PC1/x86_64/puppet-agent-5.3.2-1.fc32.x86_64.rpm" + "./artifacts/fedora/36/PC1/x86_64/puppet-agent-5.3.2-1.fc36.x86_64.rpm" windows_artifacts = \ "./artifacts/windows/puppet-agent-x64.msi\n" \ "./artifacts/windows/puppet-agent-5.3.2-x86.wixpdb\n" \ "./artifacts/windows/puppet-agent-5.3.2-x86.msi\n" \ @@ -235,21 +235,21 @@ solaris_artifacts = \ "./artifacts/solaris/11/PC1/puppet-agent@5.3.2,5.11-1.sparc.p5p\n" \ "./artifacts/solaris/10/PC1/puppet-agent-5.3.2-1.i386.pkg.gz" - stretch_artifacts = \ - "./artifacts/deb/stretch/PC1/puppet-agent-dbgsym_5.3.2-1stretch_i386.deb\n" \ - "./artifacts/deb/stretch/PC1/puppet-agent_5.3.2-1stretch_i386.deb\n" \ - "./artifacts/deb/stretch/PC1/puppet-agent_5.3.2.658.gc79ef9a-1stretch_amd64.deb\n" \ - "./artifacts/deb/stretch/PC1/puppet-agent-dbgsym_5.3.2.658.gc79ef9a-1stretch_amd64.deb" + buster_artifacts = \ + "./artifacts/deb/buster/PC1/puppet-agent-dbgsym_5.3.2-1buster_i386.deb\n" \ + "./artifacts/deb/buster/PC1/puppet-agent_5.3.2-1buster_i386.deb\n" \ + "./artifacts/deb/buster/PC1/puppet-agent_5.3.2.658.gc79ef9a-1buster_amd64.deb\n" \ + "./artifacts/deb/buster/PC1/puppet-agent-dbgsym_5.3.2.658.gc79ef9a-1buster_amd64.deb" artifacts_not_matching_project = \ - "./artifacts/deb/xenial/pe-postgresql-contrib_2019.1.9.6.12-1xenial_amd64.deb\n" \ - "./artifacts/deb/xenial/pe-postgresql-devel_2019.1.9.6.12-1xenial_amd64.deb\n" \ - "./artifacts/deb/xenial/pe-postgresql-server_2019.1.9.6.12-1xenial_amd64.deb\n" \ - "./artifacts/deb/xenial/pe-postgresql_2019.1.9.6.12-1xenial_amd64.deb" + "./artifacts/deb/bionic/pe-postgresql-contrib_2019.1.9.6.12-1bionic_amd64.deb\n" \ + "./artifacts/deb/bionic/pe-postgresql-devel_2019.1.9.6.12-1bionic_amd64.deb\n" \ + "./artifacts/deb/bionic/pe-postgresql-server_2019.1.9.6.12-1bionic_amd64.deb\n" \ + "./artifacts/deb/bionic/pe-postgresql_2019.1.9.6.12-1bionic_amd64.deb" project = 'puppet-agent' ref = '5.3.2' before :each do allow(Pkg::Config).to receive(:project).and_return(project) @@ -278,12 +278,12 @@ end it "should not use 'f' in fedora platform tags" do allow(Pkg::Util::Net).to receive(:remote_execute).and_return(fedora_artifacts, nil) data = Pkg::Config.platform_data - expect(data).to include('fedora-32-x86_64') - expect(data).not_to include('fedora-f32-x86_64') + expect(data).to include('fedora-36-x86_64') + expect(data).not_to include('fedora-f36-x86_64') end it "should collect packages whose extname differ from package_format" do allow(Pkg::Util::Net).to receive(:remote_execute).and_return(solaris_artifacts, nil) data = Pkg::Config.platform_data @@ -298,22 +298,22 @@ expect(data['windows-2012-x64']).to include(:artifact => './windows/puppet-agent-5.3.2-x64.msi') expect(data['windowsfips-2012-x64']).to include(:artifact => './windowsfips/puppet-agent-5.3.2-x64.msi') end it "should not collect debug packages" do - allow(Pkg::Util::Net).to receive(:remote_execute).and_return(stretch_artifacts, nil) + allow(Pkg::Util::Net).to receive(:remote_execute).and_return(buster_artifacts, nil) data = Pkg::Config.platform_data - expect(data['debian-9-amd64']).to include(:artifact => './deb/stretch/PC1/puppet-agent_5.3.2.658.gc79ef9a-1stretch_amd64.deb') + expect(data['debian-10-amd64']).to include(:artifact => './deb/buster/PC1/puppet-agent_5.3.2.658.gc79ef9a-1buster_amd64.deb') end it "should collect packages that don't match the project name" do allow(Pkg::Util::Net).to receive(:remote_execute).and_return(artifacts_not_matching_project, nil) data = Pkg::Config.platform_data - expect(data['ubuntu-16.04-amd64']).to include(:artifact => './deb/xenial/pe-postgresql-contrib_2019.1.9.6.12-1xenial_amd64.deb') - expect(data['ubuntu-16.04-amd64'][:additional_artifacts].size).to eq(3) - expect(data['ubuntu-16.04-amd64'][:additional_artifacts]).to include('./deb/xenial/pe-postgresql-devel_2019.1.9.6.12-1xenial_amd64.deb') - expect(data['ubuntu-16.04-amd64'][:additional_artifacts]).to include('./deb/xenial/pe-postgresql-server_2019.1.9.6.12-1xenial_amd64.deb') - expect(data['ubuntu-16.04-amd64'][:additional_artifacts]).to include('./deb/xenial/pe-postgresql_2019.1.9.6.12-1xenial_amd64.deb') + expect(data['ubuntu-18.04-amd64']).to include(:artifact => './deb/bionic/pe-postgresql-contrib_2019.1.9.6.12-1bionic_amd64.deb') + expect(data['ubuntu-18.04-amd64'][:additional_artifacts].size).to eq(3) + expect(data['ubuntu-18.04-amd64'][:additional_artifacts]).to include('./deb/bionic/pe-postgresql-devel_2019.1.9.6.12-1bionic_amd64.deb') + expect(data['ubuntu-18.04-amd64'][:additional_artifacts]).to include('./deb/bionic/pe-postgresql-server_2019.1.9.6.12-1bionic_amd64.deb') + expect(data['ubuntu-18.04-amd64'][:additional_artifacts]).to include('./deb/bionic/pe-postgresql_2019.1.9.6.12-1bionic_amd64.deb') end it "should use 'ppc' instead of 'power' in aix paths" do allow(Pkg::Util::Net).to receive(:remote_execute).and_return(aix_artifacts, nil) data = Pkg::Config.platform_data