beaker 3.27.0 → 3.28.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
- ZjliYzUxMDQyMjEzOWZlMzcxN2NmMTZiYTBhNzkwM2Q5OGJmODdmOQ==
4
+ YzI3NzY5NGEwYTU3NGI4ODQ1MWM4ODIxNGM5YWFkOTY0MjEyZjZiZg==
5
5
  data.tar.gz: !binary |-
6
- ZDg0NDJhZTI2YTQyMjAwYWRmZjEyODUyZTIzZjk2YWUwYWVmZjhkOA==
6
+ ODM3ZTkyZTU1M2ZhZjRjZWMxYWNiZTUzMmM4NmY1NGRmZGY4NjRhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWQ2NGIxZTgzYjRiMzYxYjFjYzQ1YTk2ZjA2NmNiMmM2NmM3NTk1MmY5MTQy
10
- MzI4ZWY4NzllOWQxZTBlYjNiZTIzNmI4MDUxYmU1ZDc0MjhlZWU0YzEyODMy
11
- MjA2ZmU1MDFhY2JiYTk1NTVkZDZiYjkyZWM1MDYyMTRmMmY0N2E=
9
+ YjQ0NDliNGQzZjFhOTY2ZGM1OWE2M2MwYzkyNTU3ZDg1OTc4OGQwNjI0N2U0
10
+ M2ZlZjc4Mzk2MjU3YTMyYjc4ZDBlYzg2Y2VlMTExOWMyMDQ1NGE5N2EwZmQ5
11
+ MDNlNWM3OTllZmY1MjQyMzExZTczMjQyZjRmMTA1NGI5MzM2MWI=
12
12
  data.tar.gz: !binary |-
13
- MjdmNDQxNTYxNWNmMjJlNGMwYTYzYWIzODdmMGIzMzUyNWY2ZTBjZGNlODY5
14
- ZTNjNTFjMjUyNzczOWM1YzgyOTc3NjUyODllYTk4NmZiOWVhZmRhYWY0OTFm
15
- YTY0YmFkNThhMWRhMTFlMTcxMmFkZGZkMjE3YWY3ODllNTk2ZmQ=
13
+ OTIzNmViMTY2NGRiMGNkMjlmYmNlYWE2NzM3ZDY1YTA3OWMyZDE5Y2M4NjQ1
14
+ YjQ1ZmFlOGE4MmUzZTg2NGEyZTM5YmU0NDY2MGI2N2JmZWM3YjY0NWJmNmUx
15
+ OGNmODM5MWE5ZTYwYzM4NWMxZTc1ZWYxMzE5M2UwMTQxYjA3OTU=
@@ -11,7 +11,13 @@ 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/3.27.0...master)
14
+ # [Unreleased](https://github.com/puppetlabs/beaker/compare/3.28.0...master)
15
+
16
+ # [3.28.0](https://github.com/puppetlabs/beaker/compare/3.27.0...3.28.0) - 2017-11-01
17
+
18
+ ### Fixed
19
+
20
+ - corruption of `opts[:ignore]` when using `rsync`
15
21
 
16
22
  # [3.27.0](https://github.com/puppetlabs/beaker/compare/3.26.0...3.27.0) - 2017-10-19
17
23
 
@@ -559,10 +559,7 @@ module Beaker
559
559
  end
560
560
 
561
561
  if opts.has_key?(:ignore) and not opts[:ignore].empty?
562
- opts[:ignore].map! do |value|
563
- "--exclude '#{value}'"
564
- end
565
- rsync_args << opts[:ignore].join(' ')
562
+ rsync_args << opts[:ignore].map { |value| "--exclude '#{value}'" }.join(' ')
566
563
  end
567
564
 
568
565
  # We assume that the *contents* of the directory 'from_path' needs to be
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '3.27.0'
3
+ STRING = '3.28.0'
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module Mac
7
7
  if @platform
8
8
  { :platform => Beaker::Platform.new( @platform) }
9
9
  else
10
- { :platform => Beaker::Platform.new( 'osx-10.9-x86_64' ) }
10
+ { :platform => Beaker::Platform.new( 'osx-10.12-x86_64' ) }
11
11
  end
12
12
  }
13
13
  let(:host) { make_host( 'name', options.merge(platform) ) }
@@ -39,11 +39,11 @@ module Mac
39
39
  end
40
40
 
41
41
  it 'adds the version dot correctly if not supplied' do
42
- @platform = 'osx-109-x86_64'
42
+ @platform = 'osx-10.12-x86_64'
43
43
  allow( host ).to receive( :link_exists? ) { true }
44
44
  release_path_end, release_file = host.puppet_agent_dev_package_info( 'PC3', 'pav3', :download_url => '' )
45
- expect( release_path_end ).to match( /10\.9/ )
46
- expect( release_file ).to match( /10\.9/ )
45
+ expect( release_path_end ).to match( /10\.12/ )
46
+ expect( release_file ).to match( /10\.12/ )
47
47
  end
48
48
 
49
49
  it 'runs the correct install for osx platforms (newest link format)' do
@@ -53,9 +53,9 @@ module Mac
53
53
  # verify the mac package name starts the name correctly
54
54
  expect( release_file ).to match( /^puppet-agent-pav4-/ )
55
55
  # verify the "newest hotness" is set correctly for the end of the mac package name
56
- expect( release_file ).to match( /#{Regexp.escape("-1.osx10.9.dmg")}$/ )
56
+ expect( release_file ).to match( /#{Regexp.escape("-1.osx10.12.dmg")}$/ )
57
57
  # verify the release path end is set correctly
58
- expect( release_path_end ).to be === "apple/10.9/PC4/x86_64"
58
+ expect( release_path_end ).to be === "apple/10.12/PC4/x86_64"
59
59
  end
60
60
 
61
61
  it 'runs the correct install for osx platforms (new link format)' do
@@ -65,9 +65,9 @@ module Mac
65
65
  # verify the mac package name starts the name correctly
66
66
  expect( release_file ).to match( /^puppet-agent-pav7-/ )
67
67
  # verify the "new hotness" is set correctly for the end of the mac package name
68
- expect( release_file ).to match( /#{Regexp.escape("-1.mavericks.dmg")}$/ )
68
+ expect( release_file ).to match( /#{Regexp.escape("-1.sierra.dmg")}$/ )
69
69
  # verify the release path end isn't changed in the "new hotness" case
70
- expect( release_path_end ).to be === "apple/10.9/PC7/x86_64"
70
+ expect( release_path_end ).to be === "apple/10.12/PC7/x86_64"
71
71
  end
72
72
 
73
73
  it 'runs the correct install for osx platforms (old link format)' do
@@ -77,7 +77,7 @@ module Mac
77
77
  # verify the mac package name starts the name correctly
78
78
  expect( release_file ).to match( /^puppet-agent-pav8-/ )
79
79
  # verify the old way is set correctly for the end of the mac package name
80
- expect( release_file ).to match( /#{Regexp.escape("-osx-10.9-x86_64.dmg")}$/ )
80
+ expect( release_file ).to match( /#{Regexp.escape("-osx-10.12-x86_64.dmg")}$/ )
81
81
  # verify the release path end is set correctly to the older method
82
82
  expect( release_path_end ).to be === "apple/PC8"
83
83
  end
@@ -651,6 +651,24 @@ module Beaker
651
651
  expect(Rsync).to receive(:run).with(*rsync_args).and_return(Beaker::Result.new(host, 'output!'))
652
652
  expect(host.do_rsync_to(*args).cmd).to eq('output!')
653
653
  end
654
+
655
+ it "doesn't corrupt :ignore option" do
656
+ create_files(['source'])
657
+
658
+ ignore_list = ['.bundle']
659
+ args = ['source', 'target', {:ignore => ignore_list}]
660
+
661
+ key = host['ssh']['keys']
662
+ if key.is_a? Array
663
+ key = key.first
664
+ end
665
+
666
+ rsync_args = ['source', 'target', ['-az', "-e \"ssh -i #{key} -p 22 -o 'StrictHostKeyChecking no'\"", "--exclude '.bundle'"]]
667
+ expect(Rsync).to receive(:run).twice.with(*rsync_args).and_return(Beaker::Result.new(host, 'output!'))
668
+
669
+ host.do_rsync_to *args
670
+ host.do_rsync_to *args
671
+ end
654
672
  end
655
673
 
656
674
  it 'interpolates to its "name"' do
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: 3.27.0
4
+ version: 3.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -792,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
792
792
  version: '0'
793
793
  requirements: []
794
794
  rubyforge_project:
795
- rubygems_version: 2.4.6
795
+ rubygems_version: 2.4.8
796
796
  signing_key:
797
797
  specification_version: 4
798
798
  summary: Let's test Puppet!