awspec 0.43.0 → 0.44.0

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: 3908f21693538a15827e865b9f306930d23500aa
4
- data.tar.gz: be9ff10f1c28606b1299b90a7b7203b144b99705
3
+ metadata.gz: 14f9ebf7d5d0d6d6e6f62a1296fc0c22cdced016
4
+ data.tar.gz: 6563a937076d325f272b6dd2ccf0f9b4502b12ae
5
5
  SHA512:
6
- metadata.gz: a8b2cc99e63161157d2013f234bb8f2fd38c6f5a58d1c3ffefcfa74a2f9c45b3f1141de5cf0340717214d6356f5468015a1119331908e0ee10b3145184d6aa53
7
- data.tar.gz: b2b63b111a577951a50b6c61f64f90cfd0aca5a4daf1c39d43062321f2ab00c39f9599bdb29bff2aea37ffc62c25ecf03f66cd6924c4635dd78f9dd0fd58ba1f
6
+ metadata.gz: f38dc6bfb7fb319aaa9a94249447ccb22ad60256fc29567567947c8a1122655b421a2e07938a6d027fa805aba61095c379e865e6849a6f03ff34fb537a4ae780
7
+ data.tar.gz: 410b0e18306a43264f9be9f91f0a316e894daf143ccdd6814481737fc081ee24343a6432b20a9a8c1331622c9a72a11d263f20880c5ff01e5e537157c1ca40b2
@@ -44,6 +44,7 @@ end
44
44
 
45
45
  ```ruby
46
46
  describe s3_bucket('my-bucket') do
47
+ it do
47
48
  should have_policy <<-POLICY
48
49
  {
49
50
  "Version": "2012-10-17",
@@ -86,6 +87,14 @@ describe s3_bucket('my-bucket') do
86
87
  end
87
88
  ```
88
89
 
90
+ ### have_mfa_delete_enabled
91
+
92
+ ```ruby
93
+ describe s3_bucket('my-bucket') do
94
+ it { should have_mfa_delete_enabled }
95
+ end
96
+ ```
97
+
89
98
  ### advanced
90
99
 
91
100
  `s3_bucket` can use `Aws::S3::Bucket` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Bucket.html).
@@ -1302,6 +1302,15 @@ end
1302
1302
  ```
1303
1303
 
1304
1304
 
1305
+ ### have_mfa_delete_enabled
1306
+
1307
+ ```ruby
1308
+ describe s3_bucket('my-bucket') do
1309
+ it { should have_mfa_delete_enabled }
1310
+ end
1311
+ ```
1312
+
1313
+
1305
1314
  ### have_object
1306
1315
 
1307
1316
  ```ruby
@@ -1315,6 +1324,7 @@ end
1315
1324
 
1316
1325
  ```ruby
1317
1326
  describe s3_bucket('my-bucket') do
1327
+ it do
1318
1328
  should have_policy <<-POLICY
1319
1329
  {
1320
1330
  "Version": "2012-10-17",
@@ -74,6 +74,11 @@ module Awspec::Type
74
74
  bv ? (bv.status == 'Enabled') : false
75
75
  end
76
76
 
77
+ def has_mfa_delete_enabled?
78
+ bv = find_bucket_versioning(@id)
79
+ bv ? (bv.mfa_delete == 'Enabled') : false
80
+ end
81
+
77
82
  private
78
83
 
79
84
  def cors_rules
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.43.0'
2
+ VERSION = '0.44.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW