beaker 4.7.0 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49a51b9e8d62155af1c109fe8edca707595c46ca
4
- data.tar.gz: 20ebdd88c744771efa47cf79811fbfb0db2dddd3
3
+ metadata.gz: b271889e27629318af4cfeae6f5a96b67f06305a
4
+ data.tar.gz: 5a072c8fbdacdaafcf225362f86bd1d0eb873421
5
5
  SHA512:
6
- metadata.gz: 2a0338731f2679539e2acfd39397fafb9dd658d6cb9f3c97f148e58f0f8d4380878349693926ba82096322ae19f1c3bcd4c36a9bcf6c577039f80d79b26f2c99
7
- data.tar.gz: a080d53d6936470b925a16e13e6f851871f6e02187d5006c3ff799e487a93befb57a0302d8c905c1cd341142178162a1bf1e46512c723d03256d07fe3410e1ac
6
+ metadata.gz: ac3ef7b50eb426948b40cc602b7cc3523296a8a5e1b336c629f6c33fddd5b8f517402bf2295f3df2e0b2181c300a771e86a698d174ce4abcb4c852ed96fbd02e
7
+ data.tar.gz: 07a6a12a9433cf6b1c9486657463fb5795995bdc765baa5219fb1d0987960bb55415d350624979043b7842deee290df96d0506a90d4ec18258570bfed1804425
data/CHANGELOG.md CHANGED
@@ -11,7 +11,17 @@ Tracking in this Changelog began for this project in version 3.25.0.
11
11
  If you're looking for changes from before this, refer to the project's
12
12
  git logs & PR history.
13
13
 
14
- # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.7.0...master)
14
+ # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.8.0...master)
15
+
16
+ # [4.8.0](https://github.com/puppetlabs/beaker/compare/4.7.0...4.8.0) - 2019-04-17
17
+
18
+ ### Added
19
+
20
+ - Support for Fedora >= 30 (BKR-1589)
21
+ - Codenames for Ubuntu 18.10, 19.04, and 19.10
22
+
23
+ ### Changed
24
+ - Remove "repos-pe" prefix for repo filenames
15
25
 
16
26
  # [4.7.0](https://github.com/puppetlabs/beaker/compare/4.6.0...4.7.0) - 2019-04-17
17
27
 
@@ -0,0 +1 @@
1
+ deb http://nightlies.puppetlabs.com/puppetserver-latest/repos/apt/jessie jessie PC1
@@ -49,6 +49,8 @@ step '#install_package and #uninstall_package : remove and install a package suc
49
49
  hosts.each do |host|
50
50
  # this works on Windows as well, althought it pulls in
51
51
  # a lot of dependencies.
52
+ # skipping this test for windows since it requires a restart
53
+ next if host['platform'] =~ /windows/
52
54
  package = 'zsh'
53
55
  package = 'CSWzsh' if host['platform'] =~ /solaris-10/
54
56
  package = 'git' if host['platform'] =~ /sles/
@@ -166,7 +166,7 @@ module Unix::Exec
166
166
  case self['platform']
167
167
  when /debian|ubuntu|cumulus|huaweios/
168
168
  exec(Beaker::Command.new("service ssh restart"))
169
- when /el-7|centos-7|redhat-7|oracle-7|scientific-7|eos-7|fedora-(1[4-9]|2[0-9])|archlinux-/
169
+ when /el-7|centos-7|redhat-7|oracle-7|scientific-7|eos-7|fedora-(1[4-9]|2[0-9]|3[0-9])|archlinux-/
170
170
  exec(Beaker::Command.new("systemctl restart sshd.service"))
171
171
  when /el-|centos|fedora|redhat|oracle|scientific|eos/
172
172
  exec(Beaker::Command.new("/sbin/service sshd restart"))
@@ -119,7 +119,6 @@ module Unix::File
119
119
  fedora_prefix = ((variant == 'fedora') ? 'f' : '')
120
120
 
121
121
  pattern = "%s-%s%s-%s.repo"
122
- pattern = "repos-pe-#{pattern}" if self.is_pe?
123
122
 
124
123
  repo_filename << pattern % [
125
124
  variant,
@@ -77,7 +77,7 @@ module Unix::Pkg
77
77
  execute("zypper --non-interactive --gpg-auto-import-keys in #{name}", opts)
78
78
  when /el-4/
79
79
  @logger.debug("Package installation not supported on rhel4")
80
- when /fedora-(2[2-9])/
80
+ when /fedora-(2[2-9]|3[0-9])/
81
81
  if version
82
82
  name = "#{name}-#{version}"
83
83
  end
@@ -168,7 +168,7 @@ module Unix::Pkg
168
168
  execute("zypper --non-interactive rm #{name}", opts)
169
169
  when /el-4/
170
170
  @logger.debug("Package uninstallation not supported on rhel4")
171
- when /edora-(2[2-9])/
171
+ when /edora-(2[2-9]|3[0-9])/
172
172
  execute("dnf -y #{cmdline_args} remove #{name}", opts)
173
173
  when /cisco|fedora|centos|redhat|eos|el-/
174
174
  execute("yum -y #{cmdline_args} remove #{name}", opts)
@@ -198,7 +198,7 @@ module Unix::Pkg
198
198
  execute("zypper --non-interactive --no-gpg-checks up #{name}", opts)
199
199
  when /el-4/
200
200
  @logger.debug("Package upgrade is not supported on rhel4")
201
- when /fedora-(2[2-9])/
201
+ when /fedora-(2[2-9]|3[0-9])/
202
202
  execute("dnf -y #{cmdline_args} update #{name}", opts)
203
203
  when /cisco|fedora|centos|redhat|eos|el-/
204
204
  execute("yum -y #{cmdline_args} update #{name}", opts)
@@ -511,7 +511,7 @@ module Unix::Pkg
511
511
  case variant
512
512
  when /^(fedora|el|redhat|centos)$/
513
513
  command_name = 'yum'
514
- command_name = 'dnf 'if variant == 'fedora' && version > 21 && version <= 29
514
+ command_name = 'dnf' if variant == 'fedora' && version > 21
515
515
  execute("#{command_name} --nogpgcheck localinstall -y #{onhost_package_file}")
516
516
  when /^(sles)$/
517
517
  execute("zypper --non-interactive --no-gpg-checks in #{onhost_package_file}")
@@ -450,7 +450,7 @@ module Beaker
450
450
  #restart sshd
451
451
  if host['platform'] =~ /debian|ubuntu|cumulus/
452
452
  host.exec(Command.new("sudo su -c \"service ssh restart\""), {:pty => true})
453
- elsif host['platform'] =~ /arch|centos-7|el-7|redhat-7|fedora-(1[4-9]|2[0-9])/
453
+ elsif host['platform'] =~ /arch|centos-7|el-7|redhat-7|fedora-(1[4-9]|2[0-9]|3[0-9])/
454
454
  host.exec(Command.new("sudo -E systemctl restart sshd.service"), {:pty => true})
455
455
  elsif host['platform'] =~ /centos|el-|redhat|fedora|eos/
456
456
  host.exec(Command.new("sudo -E /sbin/service sshd reload"), {:pty => true})
@@ -12,7 +12,10 @@ module Beaker
12
12
  "wheezy" => "7",
13
13
  "squeeze" => "6",
14
14
  },
15
- :ubuntu => { "bionic" => "1804",
15
+ :ubuntu => { "eoan" => "1910",
16
+ "disco" => "1904",
17
+ "cosmic" => "1810",
18
+ "bionic" => "1804",
16
19
  "artful" => "1710",
17
20
  "zesty" => "1704",
18
21
  "yakkety" => "1610",
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.7.0'
3
+ STRING = '4.8.0'
4
4
  end
5
5
  end
@@ -114,7 +114,7 @@ module Beaker
114
114
  @platform = 'el-21-x86_64'
115
115
  allow( instance ).to receive( :is_pe? ) { true }
116
116
  filename = instance.repo_filename( 'pkg_name', 'pkg_version9' )
117
- correct = 'pl-pkg_name-pkg_version9-repos-pe-el-21-x86_64.repo'
117
+ correct = 'pl-pkg_name-pkg_version9-el-21-x86_64.repo'
118
118
  expect( filename ).to be === correct
119
119
  end
120
120
 
@@ -239,7 +239,7 @@ module Beaker
239
239
  end
240
240
  end
241
241
 
242
- (22..29).to_a.each do | fedora_release |
242
+ (22..39).to_a.each do | fedora_release |
243
243
  it "uses dnf on fedora-#{fedora_release}" do
244
244
  @opts = {'platform' => "fedora-#{fedora_release}-is-me"}
245
245
  pkg = 'fedora_package'
@@ -277,7 +277,7 @@ module Beaker
277
277
  end
278
278
  end
279
279
 
280
- (22..29).to_a.each do | fedora_release |
280
+ (22..39).to_a.each do | fedora_release |
281
281
  it "uses dnf on fedora-#{fedora_release}" do
282
282
  @opts = {'platform' => "fedora-#{fedora_release}-is-me"}
283
283
  pkg = 'fedora_package'
@@ -515,8 +515,8 @@ module Beaker
515
515
  allow( instance ).to receive( :[] ).with( 'platform' ) { platform_mock }
516
516
  end
517
517
 
518
- it 'Fedora 22-29: uses dnf' do
519
- (22...29).each do |version|
518
+ it 'Fedora 22-39: uses dnf' do
519
+ (22...39).each do |version|
520
520
  @version = version
521
521
  package_file = 'test_123.yay'
522
522
  expect( instance ).to receive( :execute ).with( /^dnf.*#{package_file}$/ )
@@ -524,10 +524,10 @@ module Beaker
524
524
  end
525
525
  end
526
526
 
527
- it 'Fedora 21 & 30: uses yum' do
527
+ it 'Fedora 21 uses yum' do
528
528
  package_file = 'testing_456.yay'
529
529
  platform_mock = Object.new
530
- [21, 30].each do |version|
530
+ [21].each do |version|
531
531
  @version = version
532
532
  expect( instance ).to receive( :execute ).with( /^yum.*#{package_file}$/ )
533
533
  instance.install_local_package( package_file )
data/spec/helpers.rb CHANGED
@@ -130,7 +130,7 @@ module PlatformHelpers
130
130
  'huaweios']
131
131
 
132
132
 
133
- FEDORASYSTEMD = (14..29).to_a.collect! { |i| "fedora-#{i}" }
133
+ FEDORASYSTEMD = (14..39).to_a.collect! { |i| "fedora-#{i}" }
134
134
 
135
135
  SYSTEMDPLATFORMS = ['el-7',
136
136
  'centos-7',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -395,6 +395,7 @@ files:
395
395
  - acceptance/fixtures/module/spec/spec_helper_acceptance.rb
396
396
  - acceptance/fixtures/module/tests/init.pp
397
397
  - acceptance/fixtures/module/vendor/bundle/ruby/gems.txt
398
+ - acceptance/fixtures/package/deb/pl-puppetserver-latest-jessie.list
398
399
  - acceptance/fixtures/package/deb/pl-puppetserver-latest-lucid.list
399
400
  - acceptance/fixtures/package/deb/pl-puppetserver-latest-precise.list
400
401
  - acceptance/fixtures/package/deb/pl-puppetserver-latest-squeeze.list
@@ -454,7 +455,6 @@ files:
454
455
  - acceptance/tests/base/host/host_test.rb
455
456
  - acceptance/tests/base/host/packages.rb
456
457
  - acceptance/tests/base/host/packages_unix.rb
457
- - acceptance/tests/base/host/reboot_test.rb
458
458
  - acceptance/tests/base/host/user_test.rb
459
459
  - acceptance/tests/base/host_prebuilt_steps/ssh_environment_test.rb
460
460
  - acceptance/tests/base/test_suite/export.rb
@@ -1,8 +0,0 @@
1
- test_name 'Reboot Test' do
2
- step "#reboot: can reboot the host" do
3
- hosts.each do |host|
4
- host.reboot
5
- on host, "echo #{host} rebooted!"
6
- end
7
- end
8
- end