kitchen-verifier-awspec 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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 439b2fa25d3c19394ff49322bb6bb8ee0c79fc07
4
- data.tar.gz: 0cc6b65b38db8950f8ede043aec10e3eabda80d2
3
+ metadata.gz: 82e19da69cc3ada9150b4806608c77e2ebfa8977
4
+ data.tar.gz: ce810da39cfccdc255b92a5d97e7182a0d15a4eb
5
5
  SHA512:
6
- metadata.gz: 716f3a29a0b99d27b66f565e5d1263f9f6ce50f5377dd0b100a1cd46ebc7a653edf78ca316c1bfb0862c351fabb639a6dbae14dd877433518b0b301a2d551a16
7
- data.tar.gz: dc4d1de954472fba80ab691bb704565692624162845d478db743d8bad34879e7f91c525b03caa8a319aa98f120d54d80bcd0bd4207d23f867d1f33ae235591a1
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 by used in conjunction with kitchen-cloudformation and kitchen-terraform to validate AWS infrastructure changes.
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 behaviour of busser i.e. test/integration/SUIT_NAME/awspec/*_spec.rb
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 ruby, awspec and running awspec
55
- https_proxy | nil | use https proxy when installing puppet, ruby, awspec and running awspec
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
- # parameters:
83
- # - KeyName: test
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
- In a command line run the follow line commands to setup environment variables for AWS and run test-kitchen
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
- # configure aws keys via either a profile
108
- export AWS_DEFAULT_PROFILE=myprofile
109
- # or set keys directly
110
- export AWS_ACCESS_KEY_ID=myaccesskey
111
- export AWS_SECRET_ACCESS_KEY=mysecretkey
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
- if RUBY_VERSION >= '2.0'
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
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Verifier
3
- AWSPEC_VERSION = '0.1.0'.freeze
3
+ AWSPEC_VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
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.0
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-01-04 00:00:00.000000000 Z
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.2
73
+ rubygems_version: 2.2.5
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Awspec verifier for Test-Kitchen