simp-beaker-helpers 1.0.0 → 1.0.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 +8 -8
- data/README.md +3 -3
- data/lib/simp/beaker_helpers.rb +4 -3
- data/simp-beaker-helpers.gemspec +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTk1ZjQ3NGYyNTNhZDYyY2QyYzU2MTJiMDAxMWE1ZjBmOTMzZWRlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTcwMmM2MmY5NGU2MjkwYTE5MmMxMWQ3YTBjNTFlNzUzYzZkMzE5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGNiZjU1ZmY0MDA5ODRhYzYxYWI0NTNiOTE2NWM5Yjk0YjM1ODFjMmQ4MDEz
|
10
|
+
OTg4ZWZiYmU5NzgxYmQ4ZTAzNWU3Y2M1NDE1ZjgxY2ViODRiY2FiZWU4ODM4
|
11
|
+
NzhkZTkxZjc3OWU1YWU2Njg1MzQ2MTJiYzA3MGE1MDVkODVmZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWJlNGM4ZjFmZDI0ZDIxYTA0OTI2NThjMzk5NWZmNzZhZDA2NTI5ZGExMjM2
|
14
|
+
MjE1YzBkMGVhYmZiNTc3NzViM2RjOWVhN2Q1NTMwOGJjY2JiOTgxMjVjYTU1
|
15
|
+
N2E2OTU0YjU1Y2JlN2ZiMmYwMDBhYjU5MDVlZTlmMTcxZWZlMGY=
|
data/README.md
CHANGED
@@ -66,12 +66,12 @@ SUT will have the appropriate openssl in its environment.
|
|
66
66
|
|
67
67
|
#### `copy_pki_to`
|
68
68
|
|
69
|
-
Copy a single SUT's PKI certs (with cacerts) onto an SUT. This simulates the result of `pki::copy
|
69
|
+
Copy a single SUT's PKI certs (with cacerts) onto an SUT. This simulates the result of `pki::copy` without requiring a full master and `simp-pki` module.
|
70
70
|
|
71
71
|
The directory structure copied to the SUT is:
|
72
72
|
```
|
73
73
|
HOST_PKI_DIR/
|
74
|
-
cacerts/
|
74
|
+
cacerts/cacerts.pem
|
75
75
|
public/fdqn.pub
|
76
76
|
private/fdqn.pem
|
77
77
|
|
@@ -84,7 +84,7 @@ The directory structure copied to the SUT is:
|
|
84
84
|
|
85
85
|
Copy a CA keydist/ directory of CA+host certs into an SUT
|
86
86
|
|
87
|
-
This simulates the output of FakeCA's `gencerts_nopass.sh` into `keydist/`
|
87
|
+
This simulates the output of FakeCA's `gencerts_nopass.sh` into `keydist/` and is useful for constructing a Puppet master SUT that will distribute PKI keys via agent runs.
|
88
88
|
|
89
89
|
`def copy_keydist_to( ca_sut = master )`
|
90
90
|
|
data/lib/simp/beaker_helpers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Simp; end
|
2
2
|
|
3
3
|
module Simp::BeakerHelpers
|
4
|
-
VERSION = '1.0.
|
4
|
+
VERSION = '1.0.1'
|
5
5
|
|
6
6
|
# Locates .fixture.yml in or above this directory.
|
7
7
|
def fixtures_yml_path
|
@@ -116,7 +116,7 @@ module Simp::BeakerHelpers
|
|
116
116
|
# The directory structure is:
|
117
117
|
#
|
118
118
|
# HOST_PKI_DIR/
|
119
|
-
# cacerts/
|
119
|
+
# cacerts/cacerts.pem
|
120
120
|
# public/fdqn.pub
|
121
121
|
# private/fdqn.pem
|
122
122
|
def copy_pki_to(sut, local_pki_dir, sut_pki_dir = '/etc/pki/simp-testing')
|
@@ -128,7 +128,8 @@ module Simp::BeakerHelpers
|
|
128
128
|
scp_to(sut, "#{local_host_pki_tree}/#{fqdn}.pem", "#{sut_pki_dir}/private/")
|
129
129
|
scp_to(sut, "#{local_host_pki_tree}/#{fqdn}.pub", "#{sut_pki_dir}/public/")
|
130
130
|
###scp_to(sut, local_cacert_pki_tree, sut_pki_dir)
|
131
|
-
|
131
|
+
# NOTE: to match pki::copy, 'cacert.pem' is renamed to 'cacerts.pem'
|
132
|
+
scp_to(sut, local_cacert, "#{sut_pki_dir}/cacerts/cacerts.pem")
|
132
133
|
end
|
133
134
|
|
134
135
|
|
data/simp-beaker-helpers.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.date = Date.today.to_s
|
8
8
|
s.summary = 'beaker helper methods for SIMP'
|
9
9
|
s.description = <<-EOF
|
10
|
-
Beaker helper methods to
|
10
|
+
Beaker helper methods to help scaffold SIMP acceptance tests
|
11
11
|
EOF
|
12
12
|
s.version = Simp::BeakerHelpers::VERSION
|
13
13
|
s.license = 'Apache-2.0'
|
@@ -17,12 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.metadata = {
|
18
18
|
'issue_tracker' => 'https://simp-project.atlassian.net'
|
19
19
|
}
|
20
|
-
|
21
20
|
s.add_runtime_dependency 'beaker', '~> 2'
|
22
21
|
|
23
22
|
### s.files = Dir['Rakefile', '{bin,lib,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files -z .`.split("\0")
|
24
23
|
s.files = `git ls-files`.split("\n")
|
25
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
26
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
27
|
-
|
28
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-beaker-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: beaker
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2'
|
27
|
-
description: ! ' Beaker helper methods to
|
27
|
+
description: ! ' Beaker helper methods to help scaffold SIMP acceptance tests
|
28
28
|
|
29
29
|
'
|
30
30
|
email: simp@simp-project.org
|