beaker-puppet_install_helper 0.4.0 → 0.4.1
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 +4 -4
- data/beaker-puppet_install_helper.gemspec +1 -1
- data/lib/beaker/ca_cert_helper.rb +3 -2
- data/spec/unit/beaker/ca_cert_helper_spec.rb +17 -17
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1634202fd5a2d74c1a6c865c1b2e0d15be6a94c
|
4
|
+
data.tar.gz: a312db3863c03ce13989e52f1c592461ff2ece88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b9749673452f4a24300967786253557df3f439f0f0294d010bc41583c0251b7aae357206ba0ce61fd33d2b6faf5f35be1bd36ec43c2f9f12130bb25de487a3
|
7
|
+
data.tar.gz: 81abf1eb8574e583c7427799d0874235a28ba0a11ee447bd2ca9cde791d29e403b3ec89418f6f4e796bcc2078f8b8e5987591c0f6a165b933e400064766aac84
|
@@ -20,8 +20,9 @@ module Beaker::CaCertHelper
|
|
20
20
|
create_cert_on_host(host, cert_name, ca)
|
21
21
|
if host['platform'] =~ /windows/i
|
22
22
|
add_windows_cert host, cert_name
|
23
|
-
|
24
|
-
|
23
|
+
# No longer needed, apparently.
|
24
|
+
#elsif host['platform'] =~ /solaris/i
|
25
|
+
# add_solaris_cert host, cert_name
|
25
26
|
end
|
26
27
|
end
|
27
28
|
end
|
@@ -23,15 +23,15 @@ describe 'beaker::ca_cert_helper' do
|
|
23
23
|
subject.install_ca_certs_on w2k3
|
24
24
|
end
|
25
25
|
|
26
|
-
it "solaris 11 node" do
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
26
|
+
#it "solaris 11 node" do
|
27
|
+
# sol = {"platform" => 'solaris-11-x86_64', 'distmoduledir' => '/dne', 'hieraconf' => '/dne'}
|
28
|
+
|
29
|
+
# expect(subject).to receive(:add_solaris_cert).with(sol, 'geotrustglobal.pem')
|
30
|
+
# expect(subject).to receive(:create_cert_on_host).with(sol, 'geotrustglobal.pem', 'my cert string')
|
31
|
+
# expect(subject).to receive(:add_solaris_cert).with(sol, 'usertrust-network.pem')
|
32
|
+
# expect(subject).to receive(:create_cert_on_host).with(sol, 'usertrust-network.pem', 'my user trust cert')
|
33
|
+
# subject.install_ca_certs_on sol
|
34
|
+
#end
|
35
35
|
end
|
36
36
|
|
37
37
|
describe 'add_windows_cert' do
|
@@ -42,14 +42,14 @@ describe 'beaker::ca_cert_helper' do
|
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
-
describe 'add_solaris_cert' do
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
end
|
45
|
+
#describe 'add_solaris_cert' do
|
46
|
+
# it {
|
47
|
+
# host = {"platform" => 'solaris-11-x86_64', 'distmoduledir' => '/dne', 'hieraconf' => '/dne'}
|
48
|
+
# expect(subject).to receive(:on).with(host, 'echo \'# geotrustglobal.pem\' >> /opt/puppet/ssl/cert.pem')
|
49
|
+
# expect(subject).to receive(:on).with(host, 'cat geotrustglobal.pem >> /opt/puppet/ssl/cert.pem')
|
50
|
+
# subject.add_solaris_cert host, 'geotrustglobal.pem'
|
51
|
+
# }
|
52
|
+
#end
|
53
53
|
|
54
54
|
describe 'get_cert_hash' do
|
55
55
|
it 'should contain 3 certs' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-puppet_install_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.2.
|
80
|
+
rubygems_version: 2.2.5
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Puppet install helper for Beaker
|