awspec 0.82.0 → 0.82.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -1
- data/doc/resource_types.md +3 -1
- data/lib/awspec/stub/ami.rb +6 -1
- data/lib/awspec/type/ami.rb +1 -0
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8248bcc51c59953143120a15cfa9ede3b8c50655
|
4
|
+
data.tar.gz: 70ce22f4b30d81fbb0b993fe18e540434a0c9af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a14dd7941207ccc3aa27dc39d29807846e6889a242b1cc28c2690bebefa7c3e7ac6f60ea8dcb5a688562c5b14b04cf351152e67fb5d78b7922719842520149
|
7
|
+
data.tar.gz: 619e8cc58c5fcf36facac4ab468efe433619772b8294322184be5813faf7474e2d74cd060d82968b371b8442eff374216e9e4b9ff05e7df3aa89bf49bd84f3ba
|
data/README.md
CHANGED
@@ -52,7 +52,7 @@ aws_secret_access_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
52
52
|
EOF
|
53
53
|
```
|
54
54
|
|
55
|
-
### STEP 3. Write spec
|
55
|
+
### STEP 3. Write spec/\*\_spec.rb
|
56
56
|
|
57
57
|
```ruby
|
58
58
|
require 'spec_helper'
|
@@ -70,6 +70,23 @@ describe ec2('my-ec2-tag-name') do
|
|
70
70
|
end
|
71
71
|
```
|
72
72
|
|
73
|
+
#### Using shared_context: region
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
require 'spec_helper'
|
77
|
+
|
78
|
+
describe sqs('my-sqs-queue'), region: 'us-west-2' do
|
79
|
+
it { should exist }
|
80
|
+
its(:queue_url) { should eq 'https://sqs.us-west-2.amazonaws.com/xxxxxxxxxxxx/my-sqs-queue' }
|
81
|
+
its(:queue_arn) { should eq 'arn:aws:sqs:us-west-2:xxxxxxxxxxxx:my-sqs-queue' }
|
82
|
+
its(:visibility_timeout) { should eq '30' }
|
83
|
+
its(:maximum_message_size) { should eq '256000' }
|
84
|
+
its(:message_retention_period) { should eq '86400' }
|
85
|
+
its(:delay_seconds) { should eq '0' }
|
86
|
+
its(:receive_message_wait_time_seconds) { should eq '10' }
|
87
|
+
end
|
88
|
+
```
|
89
|
+
|
73
90
|
### STEP 4. Run tests
|
74
91
|
|
75
92
|
$ bundle exec rake spec
|
data/doc/resource_types.md
CHANGED
@@ -124,7 +124,9 @@ end
|
|
124
124
|
```
|
125
125
|
|
126
126
|
|
127
|
-
###
|
127
|
+
### have_tag
|
128
|
+
|
129
|
+
### its(:architecture), its(:creation_date), its(:image_id), its(:image_location), its(:image_type), its(:public), its(:kernel_id), its(:owner_id), its(:platform), its(:ramdisk_id), its(:state), its(:description), its(:ena_support), its(:hypervisor), its(:image_owner_alias), its(:name), its(:root_device_name), its(:root_device_type), its(:sriov_net_support), its(:state_reason), its(:virtualization_type)
|
128
130
|
### :unlock: Advanced use
|
129
131
|
|
130
132
|
`ami` can use `Aws::EC2::Image` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Image.html).
|
data/lib/awspec/stub/ami.rb
CHANGED
data/lib/awspec/type/ami.rb
CHANGED
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.82.
|
4
|
+
version: 0.82.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|