kitchen-verifier-awspec 0.1.0 → 0.1.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/README.md +47 -13
- data/kitchen-verifier-awspec.gemspec +2 -7
- data/lib/kitchen/verifier/awspec_version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82e19da69cc3ada9150b4806608c77e2ebfa8977
|
|
4
|
+
data.tar.gz: ce810da39cfccdc255b92a5d97e7182a0d15a4eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 35dd1c9bb1c38315f5f0def41857c2b357ef6a37a7506d79cedf4de589689f22b7802275fd9ff105d0e19ea555573b51608915c7c2579b545a3106fdc8e864e1
|
|
7
|
+
data.tar.gz: ef44e767f29e7c782b4392ccf5c543229e5f38cb54a57df5d6ec98c9d19de68cc2d7a5188a3435ccc74e251d8001da56f6bdbc904a2fd6f223d4eed835fa64a1
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A Test Kitchen Awspec Verifer.
|
|
8
8
|
|
|
9
|
-
Can
|
|
9
|
+
Can be used in conjunction with kitchen-cloudformation and kitchen-terraform to validate AWS infrastructure changes.
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
@@ -46,13 +46,13 @@ color | true | enable color in the output
|
|
|
46
46
|
custom_install_commmand | nil | Custom shell command to be used at install stage. Can be multiline. See examples below.
|
|
47
47
|
custom_awspec_command | nil | custom command to run awspec. Can be multiline. See examples below.
|
|
48
48
|
default_path | '/tmp/kitchen' | Set the default path where awspec looks for patterns
|
|
49
|
-
default_pattern | false | use default dir
|
|
49
|
+
default_pattern | false | use default dir for awspec i.e. spec/*_spec.rb
|
|
50
50
|
env_vars | {} | environment variable to set for rspec and can be used in the spec_helper. It will automatically pickup any environment variables set with a KITCHEN_ prefix.
|
|
51
51
|
extra_flags | nil | extra flags to add to ther awspec command
|
|
52
52
|
format | 'documentation' | format of awspec output
|
|
53
53
|
gemfile | nil | custom gemfile to use to install awspec
|
|
54
|
-
http_proxy | nil | use http proxy when installing
|
|
55
|
-
https_proxy | nil | use https proxy when installing
|
|
54
|
+
http_proxy | nil | use http proxy when installing awspec and running awspec
|
|
55
|
+
https_proxy | nil | use https proxy when installing awspec and running awspec
|
|
56
56
|
patterns | [] | array of patterns for spec test files
|
|
57
57
|
remove_default_path | false | remove the default_path after successful awspec run
|
|
58
58
|
rspec_path | | override path for rspec command
|
|
@@ -68,6 +68,8 @@ Verifier awspec runs locally on your workstation and uses aws sdk to verify the
|
|
|
68
68
|
|
|
69
69
|
Verifier Awspec allows the awspec files to be anywhere in the repository or in the awspec default location i.e /spec.
|
|
70
70
|
|
|
71
|
+
(see https://github.com/k1LoW/awspec)
|
|
72
|
+
|
|
71
73
|
|
|
72
74
|
## Example
|
|
73
75
|
|
|
@@ -79,8 +81,8 @@ driver:
|
|
|
79
81
|
stack_name: awspecTest
|
|
80
82
|
ssh_key: spec/test.pem
|
|
81
83
|
template_file: EC2InstanceSample.yml
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
parameters:
|
|
85
|
+
KeyName: test
|
|
84
86
|
|
|
85
87
|
provisioner:
|
|
86
88
|
name: dummy
|
|
@@ -99,18 +101,50 @@ suites:
|
|
|
99
101
|
|
|
100
102
|
```
|
|
101
103
|
|
|
102
|
-
|
|
104
|
+
### Configure AWS credentials
|
|
105
|
+
|
|
106
|
+
Configure your local workstation with AWS credentials using one of the following methods:
|
|
107
|
+
|
|
108
|
+
#### Method 1: Configure command
|
|
103
109
|
|
|
110
|
+
Provide the values of your AWS access and secret keys, and optionally default region and output format:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
$ aws configure
|
|
114
|
+
AWS Access Key ID [None]: AKID1234567890
|
|
115
|
+
AWS Secret Access Key [None]: MY-SECRET-KEY
|
|
116
|
+
Default region name [None]: us-west-2
|
|
117
|
+
Default output format [None]: text
|
|
104
118
|
```
|
|
105
|
-
cd kitchen-verifier-awspec/example
|
|
106
119
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
#### Method 2: Config file
|
|
121
|
+
|
|
122
|
+
Write your credentials into the file `~/.aws/credentials` using the following template:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
[default]
|
|
126
|
+
aws_access_key_id = AKID1234567890
|
|
127
|
+
aws_secret_access_key = MY-SECRET-KEY
|
|
128
|
+
aws_region=eu-west-1
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Method 3: Environment variables
|
|
132
|
+
|
|
133
|
+
Provide AWS credentials to kube-aws by exporting the following environment variables:
|
|
112
134
|
|
|
135
|
+
```sh
|
|
136
|
+
export AWS_ACCESS_KEY_ID=AKID1234567890
|
|
137
|
+
export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
|
|
113
138
|
export AWS_REGION=eu-west-1
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
(See http://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-chap-getting-started.html#config-settings-and-precedence)
|
|
142
|
+
|
|
143
|
+
### Run test-kitchen
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
cd kitchen-verifier-awspec/example
|
|
147
|
+
|
|
114
148
|
# for windows set the ssl cert file
|
|
115
149
|
set SSL_CERT_FILE=C:/repository/kitchen-verifier-awspec/example/ca-bundle.crt
|
|
116
150
|
|
|
@@ -16,14 +16,9 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.platform = Gem::Platform::RUBY
|
|
17
17
|
s.require_paths = ['lib']
|
|
18
18
|
s.rubyforge_project = '[none]'
|
|
19
|
+
s.required_ruby_version = '>= 2.0'
|
|
19
20
|
s.add_dependency 'test-kitchen', '~> 1.4'
|
|
20
|
-
|
|
21
|
-
s.add_dependency 'net-ssh', '~> 3'
|
|
22
|
-
else
|
|
23
|
-
s.add_dependency 'json', '~> 1.8'
|
|
24
|
-
s.add_dependency 'net-ssh', '~> 2.9'
|
|
25
|
-
s.add_dependency 'rubocop', '~> 0.41.2'
|
|
26
|
-
end
|
|
21
|
+
s.add_dependency 'net-ssh', '>= 3'
|
|
27
22
|
s.description = <<-EOF
|
|
28
23
|
Awspec verifier for Test-Kitchen
|
|
29
24
|
EOF
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-verifier-awspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Neill Turner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|
|
@@ -28,14 +28,14 @@ dependencies:
|
|
|
28
28
|
name: net-ssh
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '3'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '3'
|
|
41
41
|
description: |
|
|
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
62
62
|
requirements:
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: '0'
|
|
65
|
+
version: '2.0'
|
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - ">="
|
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
70
|
version: '0'
|
|
71
71
|
requirements: []
|
|
72
72
|
rubyforge_project: "[none]"
|
|
73
|
-
rubygems_version: 2.2.
|
|
73
|
+
rubygems_version: 2.2.5
|
|
74
74
|
signing_key:
|
|
75
75
|
specification_version: 4
|
|
76
76
|
summary: Awspec verifier for Test-Kitchen
|