beaker 2.32.1 → 2.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzY3MjNmNzJjZmU2NjkxYzAwZWQ3MTdmNzM5ZGM4ZmRmMmQ4MmIzOA==
4
+ ZjczYWQ4ZGJiZjFhYTY5OTk4M2NhYWFkYjhlNDM5ODkzNzcyNjQ3ZA==
5
5
  data.tar.gz: !binary |-
6
- Y2FlMzIwMDM1NzBjNmU4ZjViNWZlNGMxOTQxNmJmMjYzMjI3YzMyYw==
6
+ Mjk2YjRkZDY4M2UxNzhkNDU1MjgyZjgyOTY3NTUwMzgwNmViNTZkZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTFkOGE1Mjg1MDc4NjVkYTViNGYyNWU2ODZmYzY2NzhhZjM0NmYxNWI3MzQy
10
- ZTBmMzljZmM4OGEzZmZjMjg4ODZlYTg0Y2RjOTUwMmJhYzdhMmY3NDgxMTlh
11
- ZTgyNTEwOTI4NGJkOWRmMzVmNTYxNDM3OTk4ZDI1NGY2ZjZmOGE=
9
+ MGE4M2I4OGEyNjQ0OTE3NzM4OGUxNTdkZTY5MWIyNGI0MTM2ZWU1ZjYyZDg4
10
+ YWJiOGFlODZkZTFhZWJkNDBjNmZkNDNlNmRmZTlmN2Y4ODU0NTNhMmEyZjBl
11
+ Mjk5MjAwM2UzMmQzZDE2M2Q4NGZiYjNkOTZmZWJlNWZlNGZhYjg=
12
12
  data.tar.gz: !binary |-
13
- OGE5NmMxZTVjZWVlZGZiY2Y5YzMyZDBhN2E5MTViNWZlNWUxY2RjNjIxZjgy
14
- Yjg1NTY1YTJmNGM3YzZhYzc0MzdjOGE2ZjhmZmMwODdiNTNlZDU2NjQwZmVi
15
- NDAxNjQzYjg3ODJkYjdiZGFhYzhjZTcwOTUwYTMzOTA1M2QxN2M=
13
+ Mjk2NjFlNzYxNjA5YzY2NWZiYjdjZWJiZGEzNWM2YzhiZGIyYmNiNDlkNDQ1
14
+ NzhiNDZiOTk4ZmU2M2RmMDA1NWRlZGY1MGQzNjhmZWFlNDMzOWY2NjVhMTZj
15
+ YmM4MDYyZWEwMTdiNGVmM2JjNGQ0MjcxMjQyMjdkMzg4OGZlMjY=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 14 Jan, 2016 (1aa6de03)](#LATEST)
3
+ * [LATEST - 27 Jan, 2016 (abf7e410)](#LATEST)
4
+ * [2.32.1 - 14 Jan, 2016 (8c394fdb)](#2.32.1)
4
5
  * [2.32.0 - 12 Jan, 2016 (80e153cc)](#2.32.0)
5
6
  * [2.31.0 - 16 Dec, 2015 (54b1801d)](#2.31.0)
6
7
  * [2.30.1 - 3 Dec, 2015 (9f1376ef)](#2.30.1)
@@ -107,7 +108,51 @@
107
108
  * [pe1.2 - 6 Sep, 2011 (ba3dadd2)](#pe1.2)
108
109
 
109
110
  ## Details
110
- ### <a name = "LATEST">LATEST - 14 Jan, 2016 (1aa6de03)
111
+ ### <a name = "LATEST">LATEST - 27 Jan, 2016 (abf7e410)
112
+
113
+ * (GEM) update beaker version to 2.33.0 (abf7e410)
114
+
115
+ * Merge pull request #1045 from kevpl/maint_backupfile_public (3a86990f)
116
+
117
+
118
+ ```
119
+ Merge pull request #1045 from kevpl/maint_backupfile_public
120
+
121
+ (MAINT) made backup_the_file public
122
+ ```
123
+ * Merge pull request #1046 from kevpl/bkr666_wrlinux5_provision (1fbea3a4)
124
+
125
+
126
+ ```
127
+ Merge pull request #1046 from kevpl/bkr666_wrlinux5_provision
128
+
129
+ (BKR-666) added wrlinux5 provisioning steps
130
+ ```
131
+ * Merge pull request #1048 from kevpl/bkr480_fedora23_supportadd (d248d822)
132
+
133
+
134
+ ```
135
+ Merge pull request #1048 from kevpl/bkr480_fedora23_supportadd
136
+
137
+ (BKR-480) added support for fedora23
138
+ ```
139
+ * (BKR-480) added support for fedora23 (71d2dc30)
140
+
141
+ * (BKR-666) refactored supports_set_env check into host object (0ee32f72)
142
+
143
+ * (BKR-666) added wrlinux-5 provisioning changes (b744229f)
144
+
145
+ * (MAINT) made backup_the_file public (315271b6)
146
+
147
+
148
+ ```
149
+ (MAINT) made backup_the_file public
150
+
151
+ [skip ci]
152
+ ```
153
+ ### <a name = "2.32.1">2.32.1 - 14 Jan, 2016 (8c394fdb)
154
+
155
+ * (HISTORY) update beaker history for gem release 2.32.1 (8c394fdb)
111
156
 
112
157
  * (GEM) update beaker version to 2.32.1 (1aa6de03)
113
158
 
@@ -0,0 +1,6 @@
1
+ [pl-puppetserver-latest]
2
+ name=PL Repo for puppetserver at commit latest
3
+ baseurl=http://nightlies.puppetlabs.com/puppetserver-latest/repos/fedora/f23/PC1/i386/
4
+ enabled=1
5
+ gpgcheck=1
6
+ gpgkey=http://nightlies.puppetlabs.com/07BB6C57
@@ -0,0 +1,6 @@
1
+ [pl-puppetserver-latest]
2
+ name=PL Repo for puppetserver at commit latest
3
+ baseurl=http://nightlies.puppetlabs.com/puppetserver-latest/repos/fedora/f23/PC1/x86_64/
4
+ enabled=1
5
+ gpgcheck=1
6
+ gpgkey=http://nightlies.puppetlabs.com/07BB6C57
@@ -361,8 +361,6 @@ module Beaker
361
361
 
362
362
  # Back up the given file in the current_dir to the new_dir
363
363
  #
364
- # @!visibility private
365
- #
366
364
  # @param host [Beaker::Host] The target host
367
365
  # @param current_dir [String] The directory containing the file to back up
368
366
  # @param new_dir [String] The directory to copy the file to
@@ -138,6 +138,23 @@ module Unix
138
138
  @external_copy_base
139
139
  end
140
140
 
141
+ # Tells you whether a host platform supports beaker's
142
+ # {Beaker::HostPrebuiltSteps#set_env} method
143
+ #
144
+ # @return [String,nil] Reason message if set_env should be skipped,
145
+ # nil if it should run.
146
+ def skip_set_env?
147
+ variant, version, arch, codename = self['platform'].to_array
148
+ case variant
149
+ when /^cisco$/
150
+ 'Cisco does not allow SSH control through the BASH shell'
151
+ when /^(f5|netscaler)$/
152
+ "no puppet-agent package for network device platform '#{variant}'"
153
+ else
154
+ nil
155
+ end
156
+ end
157
+
141
158
  def initialize name, host_hash, options
142
159
  super
143
160
 
@@ -110,7 +110,7 @@ module Beaker
110
110
  check_and_install_packages_if_needed(host, OPENBSD_PACKAGES)
111
111
  when host['platform'] =~ /solaris-10/
112
112
  check_and_install_packages_if_needed(host, SOLARIS10_PACKAGES)
113
- when host['platform'] !~ /debian|aix|solaris|windows|sles-|osx-|cumulus|f5-|netscaler/
113
+ when host['platform'] !~ /debian|aix|solaris|windows|sles-|osx-|cumulus|f5-|netscaler|cisco-/
114
114
  check_and_install_packages_if_needed(host, UNIX_PACKAGES)
115
115
  end
116
116
  end
@@ -535,7 +535,12 @@ module Beaker
535
535
  logger = opts[:logger]
536
536
 
537
537
  block_on host do |host|
538
- next if host['platform'] =~ /f5-|netscaler/
538
+ skip_msg = host.skip_set_env?
539
+ unless skip_msg.nil?
540
+ logger.debug( skip_msg )
541
+ next
542
+ end
543
+
539
544
  env = construct_env(host, opts)
540
545
  logger.debug("setting local environment on #{host.name}")
541
546
  if host['platform'] =~ /windows/ and host.is_cygwin?
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '2.32.1'
3
+ STRING = '2.33.0'
4
4
  end
5
5
  end
@@ -411,6 +411,12 @@ describe Beaker do
411
411
  subject.validate_host(hosts, options)
412
412
 
413
413
  end
414
+
415
+ it 'skips validation on cisco hosts' do
416
+ @platform = 'cisco-5-x86_64'
417
+ expect( subject ).to receive( :check_and_install_packages_if_needed ).never
418
+ subject.validate_host(hosts, options)
419
+ end
414
420
  end
415
421
 
416
422
  context 'get_domain_name' do
@@ -567,12 +573,32 @@ describe Beaker do
567
573
  :env1_key => :env1_value,
568
574
  :env2_key => :env2_value
569
575
  }
576
+ allow( host ).to receive( :skip_set_env? ).and_return('f5 say NO' )
570
577
 
571
578
  expect( subject ).to receive( :construct_env ).exactly(0).times
572
-
573
- expect( Beaker::Command ).to receive( :new ).exactly(0).times
574
- expect( Beaker::Command ).to receive( :new ).exactly(0).times
575
579
  expect( Beaker::Command ).to receive( :new ).exactly(0).times
580
+ expect( host ).to receive( :add_env_var ).exactly(0).times
581
+ opts.each_pair do |key, value|
582
+ expect( host ).to receive( :add_env_var ).with( key, value ).exactly(0).times
583
+ end
584
+ expect( host ).to receive( :exec ).exactly(0).times
585
+
586
+ subject.set_env(host, options.merge( opts ))
587
+ end
588
+
589
+ it 'skips a cisco host correctly' do
590
+ host = make_host('name', {
591
+ :platform => 'cisco-5-x86_64',
592
+ :ssh_env_file => 'ssh_env_file',
593
+ :is_cygwin => true,
594
+ } )
595
+ opts = {
596
+ :env1_key => :env1_value,
597
+ :env2_key => :env2_value
598
+ }
599
+ allow( host ).to receive( :skip_set_env? ).and_return('cisco say NO' )
600
+
601
+ expect( subject ).to receive( :construct_env ).exactly(0).times
576
602
  expect( Beaker::Command ).to receive( :new ).exactly(0).times
577
603
  expect( host ).to receive( :add_env_var ).exactly(0).times
578
604
  opts.each_pair do |key, value|
@@ -602,6 +628,7 @@ describe Beaker do
602
628
  :env2_key => :env2_value
603
629
  }
604
630
 
631
+ allow( host ).to receive( :skip_set_env? ).and_return(nil )
605
632
  expect( subject ).to receive( :construct_env ).and_return( opts )
606
633
  expect( host ).to receive( method_call_sym )
607
634
 
@@ -76,6 +76,7 @@ module Beaker
76
76
  context "if :disable_iptables option set false" do
77
77
  it "does not call disable_iptables" do
78
78
  options[:disable_iptables] = false
79
+ allow( hypervisor ).to receive( :set_env )
79
80
  expect( hypervisor ).to receive( :disable_iptables ).never
80
81
  hypervisor.configure
81
82
  end
@@ -84,6 +85,7 @@ module Beaker
84
85
  context "if :disable_iptables option set true" do
85
86
  it "calls disable_iptables once" do
86
87
  options[:disable_iptables] = true
88
+ allow( hypervisor ).to receive( :set_env )
87
89
  expect( hypervisor ).to receive( :disable_iptables ).exactly( 1 ).times
88
90
  hypervisor.configure
89
91
  end
@@ -92,6 +94,7 @@ module Beaker
92
94
  context "if :disable_updates option set true" do
93
95
  it "calls disable_updates" do
94
96
  options[:disable_updates] = true
97
+ allow( hypervisor ).to receive( :set_env )
95
98
  expect( hypervisor ).to receive( :disable_updates ).once
96
99
  hypervisor.configure
97
100
  end
@@ -100,6 +103,7 @@ module Beaker
100
103
  context "if :disable_updates option set false" do
101
104
  it "does not call disable_updates_puppetlabs_com" do
102
105
  options[:disable_updates] = false
106
+ allow( hypervisor ).to receive( :set_env )
103
107
  expect( hypervisor ).to receive( :disable_updates ).never
104
108
  hypervisor.configure
105
109
  end
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: 2.32.1
4
+ version: 2.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -489,6 +489,8 @@ files:
489
489
  - acceptance/fixtures/package/rpm/pl-puppetserver-latest-repos-pe-fedora-21-x86_64.repo
490
490
  - acceptance/fixtures/package/rpm/pl-puppetserver-latest-repos-pe-fedora-22-i386.repo
491
491
  - acceptance/fixtures/package/rpm/pl-puppetserver-latest-repos-pe-fedora-22-x86_64.repo
492
+ - acceptance/fixtures/package/rpm/pl-puppetserver-latest-repos-pe-fedora-23-i386.repo
493
+ - acceptance/fixtures/package/rpm/pl-puppetserver-latest-repos-pe-fedora-23-x86_64.repo
492
494
  - acceptance/lib/beaker/acceptance/install_utils.rb
493
495
  - acceptance/lib/helpers/test_helper.rb
494
496
  - acceptance/pre_suite/README.md