beaker-hiera 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmQ2YTkwZjVkNzc2Y2I3MjVjNWFiZjdhYzYzODUxZjUzODNjNDEzYw==
4
+ Y2RlMmYyYzMzMTdhYThmZDVkMzRiYTk2MmIzODBkMWE0NTIzYzYyYw==
5
5
  data.tar.gz: !binary |-
6
- YjU3NjA0YjEzMzc1NzBjNDY3MjBjMWNjMGZkYjk5MzVjYmUyNWUxNQ==
6
+ NGRhNGZkYjNhZTJiNGVmNzcxMWY2NzdkNmQzYTI4YWM5NTdkNzgzOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTkwOTE3YmUyMzE1MTA5ODMxZmY2ZjE2NjQyOTQwOGEyNjNiM2Y3YmFmNjk0
10
- MGY0NTc5ZjM5OGQyNTI1OWQ0NWQ0MjNiMGU5YWY1YjcxZDQzMGNhZWIzMGFh
11
- Mzk0ZDkyMmU4ODA0NjYyMzA2MGIxMTY0NTBiNjkwNTI5ZmM0MGY=
9
+ NjcwNmRjNDBhYjI0MDRkNzEzNTVmY2Y0NWE4YTAwN2I1ODU3YjFiZmEzZDUz
10
+ ZTJjYjM5YjkxMTJmZDEwNTA3ZDc4YzMyNDk2MDI5NTFhMzExZjVlZjEyNTAy
11
+ YWZjNDA3YTZlMWUxNzk5YmNmMDhjODhhYTdlZWEyNjJkODQwMWM=
12
12
  data.tar.gz: !binary |-
13
- YmZlOGM5ZDU4ZmQ2MzliNDY5YjhlYjg1ZmM5ZTg4Y2JlZDU5MzA0ZDQ4MmEx
14
- NjZmMTI0ZTViMjAzOTU0NDA5NzI4ZWZlMjE1Mzk1ZmIwYTQ1NjI1MjA3NTk4
15
- NmM1ZGMwZDExZGM3YTUzM2QzYjRlMWI2MDQ4ZTQ3NmQzZjEwYzY=
13
+ MDQyMjE0Nzc0OGUzNTkwNThjZjE0NDdhZTJjODkxOTI2MmMyYTM2ZjUxODA1
14
+ ZDUzODA5NGZlZmQ4YjJjNDc1Mjk4ZWE0MTcyMDQxNTg2NzBjOTNkNjVjYmNj
15
+ YTBjN2ZhNGY0YWM3OWJhYWNmYzIxOWE3ZjczYmE0MzczOTE4YTE=
data/HISTORY.md CHANGED
@@ -1,8 +1,23 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 8 Sep, 2015 (44b120e6)](#LATEST)
3
+ * [LATEST - 14 Oct, 2015 (a23d45bc)](#LATEST)
4
+ * [0.1.0 - 8 Sep, 2015 (7d1ef9b6)](#0.1.0)
4
5
 
5
6
  ## Details
6
- ### <a name = "LATEST">LATEST - 8 Sep, 2015 (44b120e6)
7
+ ### <a name = "LATEST">LATEST - 14 Oct, 2015 (a23d45bc)
8
+
9
+ * (GEM) update beaker-hiera version to 0.1.1 (a23d45bc)
10
+
11
+ * Merge pull request #1 from puppetlabs/bkr562_spec_audit (2693ec4f)
12
+
13
+
14
+ ```
15
+ Merge pull request #1 from puppetlabs/bkr562_spec_audit
16
+
17
+ (BKR-562) removed leftover spec lines
18
+ ```
19
+ * (BKR-562) removed leftover spec lines (c348c5e9)
20
+
21
+ ### <a name = "0.1.0">0.1.0 - 8 Sep, 2015 (7d1ef9b6)
7
22
 
8
23
  * Initial release.
@@ -3,7 +3,7 @@ module Beaker
3
3
  module Helpers
4
4
  module Hiera
5
5
  module Version
6
- STRING = '0.1.0'
6
+ STRING = '0.1.1'
7
7
  end
8
8
  end
9
9
  end
@@ -11,18 +11,8 @@ class ClassMixedWithDSLHelpers
11
11
  end
12
12
 
13
13
  describe ClassMixedWithDSLHelpers do
14
- let( :opts ) { Beaker::Options::Presets.env_vars }
15
- let( :command ){ 'ls' }
16
- let( :host ) { double.as_null_object }
17
- let( :result ) { Beaker::Result.new( host, command ) }
18
-
19
- let( :master ) { make_host( 'master', :roles => %w( master agent default) ) }
20
- let( :agent ) { make_host( 'agent', :roles => %w( agent ) ) }
21
- let( :custom ) { make_host( 'custom', :roles => %w( custom agent ) ) }
22
- let( :dash ) { make_host( 'console', :roles => %w( dashboard agent ) ) }
23
- let( :db ) { make_host( 'db', :roles => %w( database agent ) ) }
24
- let( :hosts ) { [ master, agent, dash, db, custom ] }
25
-
14
+ let( :host ) { make_host( 'master', :roles => %w( master agent default) ) }
15
+ let( :hosts ) { [ host ] }
26
16
 
27
17
  describe "#write_hiera_config_on" do
28
18
  let(:hierarchy) { [ 'nodes/%{::fqdn}', 'common' ] }
@@ -48,8 +38,8 @@ describe ClassMixedWithDSLHelpers do
48
38
  let(:hierarchy) { [ 'nodes/%{::fqdn}', 'common' ] }
49
39
  it 'delegates to #write_hiera_config_on with the default host' do
50
40
  allow( subject ).to receive( :hosts ).and_return( hosts )
51
- allow( subject ).to receive( :default ).and_return( hosts[0] )
52
- expect( subject ).to receive( :write_hiera_config_on ).with( master, hierarchy).once
41
+ allow( subject ).to receive( :default ).and_return( host )
42
+ expect( subject ).to receive( :write_hiera_config_on ).with( host, hierarchy).once
53
43
  subject.write_hiera_config( hierarchy )
54
44
  end
55
45
 
@@ -74,8 +64,8 @@ describe ClassMixedWithDSLHelpers do
74
64
  let(:path) { 'spec/fixtures/hieradata' }
75
65
  it 'delegates to #copy_hiera_data_to with the default host' do
76
66
  allow( subject ).to receive( :hosts ).and_return( hosts )
77
- allow( subject ).to receive( :default ).and_return( hosts[0] )
78
- expect( subject ).to receive( :copy_hiera_data_to ).with( master, path).once
67
+ allow( subject ).to receive( :default ).and_return( host )
68
+ expect( subject ).to receive( :copy_hiera_data_to ).with( host, path).once
79
69
  subject.copy_hiera_data( path )
80
70
  end
81
71
 
@@ -83,7 +73,6 @@ describe ClassMixedWithDSLHelpers do
83
73
 
84
74
  describe '#hiera_datadir' do
85
75
  it 'returns the codedir based hieradatadir for AIO' do
86
- host = hosts[0]
87
76
  host['type'] = :aio
88
77
  codedir = '/usr/code'
89
78
  allow( host ).to receive( :puppet ) { { 'codedir' => codedir } }
@@ -93,7 +82,6 @@ describe ClassMixedWithDSLHelpers do
93
82
 
94
83
  it 'returns the hieradata host value for anything not AIO (backwards compatible)' do
95
84
  host_hieradatadir_value = '/home/fishing/man/pants'
96
- host = hosts[0]
97
85
  host[:hieradatadir] = host_hieradatadir_value
98
86
  expect( subject.hiera_datadir(host) ).to be === host_hieradatadir_value
99
87
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-hiera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-08 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec