awspec 1.28.0 → 1.28.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/doc/_resource_types/cloudformation_stack.md +8 -0
- data/doc/_resource_types/vpc_endpoints.md +11 -7
- data/doc/resource_types.md +32 -18
- data/lib/awspec/generator/doc/type/vpc_endpoints.rb +5 -2
- data/lib/awspec/type/cloudformation_stack.rb +3 -0
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c039a40af7b57d9dff480f291fc73b2320c61a34e155ccf962b5bd77b92ade9
|
4
|
+
data.tar.gz: cc1b06bb52308839f57b0216497d762ba29e75be9586b781e488cfbb92b905d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c23f6c2fc84093a7fed2a96117036227a7d6006d225d094ad91487fceec2e6cf224fd0c3ae19a5ea695b1eaedbe070c829bf2d9275c390ab6d1a257e17bd399
|
7
|
+
data.tar.gz: f8e0ef447b854ed2ae4c935aa0d2c463a2145c65ced5533006da2dc4f39806b1eb81d234311ebf1d619acc8747811f47299a4703895795d5d287759878c9665b
|
@@ -6,3 +6,11 @@ describe cloudformation_stack('my-cloudformation-stack') do
|
|
6
6
|
its(:stack_status) { should eq 'UPDATE_COMPLETE' }
|
7
7
|
end
|
8
8
|
```
|
9
|
+
|
10
|
+
### have_tag
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
describe cloudformation_stack('my-cloudformation-stack') do
|
14
|
+
it { should have_tag('env').value('dev') }
|
15
|
+
end
|
16
|
+
```
|
@@ -1,11 +1,6 @@
|
|
1
|
-
###
|
1
|
+
### first
|
2
2
|
|
3
3
|
```ruby
|
4
|
-
describe vpc_endpoints('my-vpc-endpoint') do
|
5
|
-
it { should exist }
|
6
|
-
end
|
7
|
-
```
|
8
|
-
|
9
4
|
describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
|
10
5
|
it { should exist }
|
11
6
|
it { should be_available }
|
@@ -15,11 +10,20 @@ describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["val
|
|
15
10
|
its(:vpc_endpoint_type) { should eq 'Interface' }
|
16
11
|
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
17
12
|
end
|
13
|
+
```
|
14
|
+
|
15
|
+
### exist
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
19
|
+
it { should exist }
|
20
|
+
end
|
21
|
+
```
|
18
22
|
|
19
23
|
### be_pendingacceptance, be_pending, be_available, be_deleting, be_deleted, be_rejected, be_failed, be_expired
|
20
24
|
|
21
25
|
```ruby
|
22
|
-
describe
|
26
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
23
27
|
it { should be_available }
|
24
28
|
end
|
25
29
|
```
|
data/doc/resource_types.md
CHANGED
@@ -457,6 +457,15 @@ describe cloudformation_stack('my-cloudformation-stack') do
|
|
457
457
|
end
|
458
458
|
```
|
459
459
|
|
460
|
+
|
461
|
+
### have_tag
|
462
|
+
|
463
|
+
```ruby
|
464
|
+
describe cloudformation_stack('my-cloudformation-stack') do
|
465
|
+
it { should have_tag('env').value('dev') }
|
466
|
+
end
|
467
|
+
```
|
468
|
+
|
460
469
|
### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:deletion_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn), its(:enable_termination_protection), its(:parent_id), its(:root_id), its(:drift_information)
|
461
470
|
## <a name="cloudfront_distribution">cloudfront_distribution</a>
|
462
471
|
|
@@ -2932,7 +2941,7 @@ describe rds_db_cluster('my-rds-db-cluster') do
|
|
2932
2941
|
end
|
2933
2942
|
```
|
2934
2943
|
|
2935
|
-
### its(:allocated_storage), its(:availability_zones), its(:backup_retention_period), its(:character_set_name), its(:database_name), its(:db_cluster_identifier), its(:db_cluster_parameter_group), its(:db_subnet_group), its(:status), its(:automatic_restart_time), its(:percent_progress), its(:earliest_restorable_time), its(:endpoint), its(:reader_endpoint), its(:custom_endpoints), its(:multi_az), its(:engine), its(:engine_version), its(:latest_restorable_time), its(:port), its(:master_username), its(:db_cluster_option_group_memberships), its(:preferred_backup_window), its(:preferred_maintenance_window), its(:replication_source_identifier), its(:read_replica_identifiers), its(:hosted_zone_id), its(:storage_encrypted), its(:kms_key_id), its(:db_cluster_resource_id), its(:db_cluster_arn), its(:associated_roles), its(:iam_database_authentication_enabled), its(:clone_group_id), its(:cluster_create_time), its(:earliest_backtrack_time), its(:backtrack_window), its(:backtrack_consumed_change_records), its(:enabled_cloudwatch_logs_exports), its(:capacity), its(:engine_mode), its(:scaling_configuration_info), its(:deletion_protection), its(:http_endpoint_enabled), its(:activity_stream_mode), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:copy_tags_to_snapshot), its(:cross_account_clone), its(:domain_memberships), its(:tag_list), its(:global_write_forwarding_status), its(:global_write_forwarding_requested), its(:pending_modified_values), its(:db_cluster_instance_class), its(:storage_type), its(:iops), its(:publicly_accessible), its(:auto_minor_version_upgrade), its(:monitoring_interval), its(:monitoring_role_arn), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:serverless_v2_scaling_configuration)
|
2944
|
+
### its(:allocated_storage), its(:availability_zones), its(:backup_retention_period), its(:character_set_name), its(:database_name), its(:db_cluster_identifier), its(:db_cluster_parameter_group), its(:db_subnet_group), its(:status), its(:automatic_restart_time), its(:percent_progress), its(:earliest_restorable_time), its(:endpoint), its(:reader_endpoint), its(:custom_endpoints), its(:multi_az), its(:engine), its(:engine_version), its(:latest_restorable_time), its(:port), its(:master_username), its(:db_cluster_option_group_memberships), its(:preferred_backup_window), its(:preferred_maintenance_window), its(:replication_source_identifier), its(:read_replica_identifiers), its(:hosted_zone_id), its(:storage_encrypted), its(:kms_key_id), its(:db_cluster_resource_id), its(:db_cluster_arn), its(:associated_roles), its(:iam_database_authentication_enabled), its(:clone_group_id), its(:cluster_create_time), its(:earliest_backtrack_time), its(:backtrack_window), its(:backtrack_consumed_change_records), its(:enabled_cloudwatch_logs_exports), its(:capacity), its(:engine_mode), its(:scaling_configuration_info), its(:deletion_protection), its(:http_endpoint_enabled), its(:activity_stream_mode), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:copy_tags_to_snapshot), its(:cross_account_clone), its(:domain_memberships), its(:tag_list), its(:global_write_forwarding_status), its(:global_write_forwarding_requested), its(:pending_modified_values), its(:db_cluster_instance_class), its(:storage_type), its(:iops), its(:publicly_accessible), its(:auto_minor_version_upgrade), its(:monitoring_interval), its(:monitoring_role_arn), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:serverless_v2_scaling_configuration), its(:network_type)
|
2936
2945
|
## <a name="rds_db_cluster_parameter_group">rds_db_cluster_parameter_group</a>
|
2937
2946
|
|
2938
2947
|
RdsDbClusterParameterGroup resource type.
|
@@ -3947,14 +3956,7 @@ end
|
|
3947
3956
|
|
3948
3957
|
VpcEndpoints resource type.
|
3949
3958
|
|
3950
|
-
### exist
|
3951
|
-
|
3952
3959
|
```ruby
|
3953
|
-
describe vpc_endpoints('my-vpc-endpoint') do
|
3954
|
-
it { should exist }
|
3955
|
-
end
|
3956
|
-
```
|
3957
|
-
|
3958
3960
|
describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
|
3959
3961
|
it { should exist }
|
3960
3962
|
it { should be_available }
|
@@ -3964,23 +3966,26 @@ describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["val
|
|
3964
3966
|
its(:vpc_endpoint_type) { should eq 'Interface' }
|
3965
3967
|
its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
|
3966
3968
|
end
|
3969
|
+
```
|
3967
3970
|
|
3968
3971
|
|
3969
|
-
###
|
3970
|
-
|
3971
|
-
### be_deleted
|
3972
|
-
|
3973
|
-
### be_deleting
|
3972
|
+
### exist
|
3974
3973
|
|
3975
|
-
|
3974
|
+
```ruby
|
3975
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3976
|
+
it { should exist }
|
3977
|
+
end
|
3978
|
+
```
|
3976
3979
|
|
3977
|
-
### be_failed
|
3978
3980
|
|
3979
|
-
### be_pending
|
3981
|
+
### be_pendingacceptance, be_pending, be_available, be_deleting, be_deleted, be_rejected, be_failed, be_expired
|
3980
3982
|
|
3981
|
-
|
3983
|
+
```ruby
|
3984
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
3985
|
+
it { should be_available }
|
3986
|
+
end
|
3987
|
+
```
|
3982
3988
|
|
3983
|
-
### be_rejected
|
3984
3989
|
|
3985
3990
|
### have_route_table
|
3986
3991
|
|
@@ -4009,6 +4014,15 @@ end
|
|
4009
4014
|
```
|
4010
4015
|
|
4011
4016
|
|
4017
|
+
### belong_to_vpc
|
4018
|
+
|
4019
|
+
```ruby
|
4020
|
+
describe vpc_endpoints('my-vpc-endpoint') do
|
4021
|
+
it { should belong_to_vpc('my-vpc') }
|
4022
|
+
end
|
4023
|
+
```
|
4024
|
+
|
4025
|
+
|
4012
4026
|
|
4013
4027
|
### :unlock: Advanced use
|
4014
4028
|
|
@@ -9,8 +9,11 @@ module Awspec::Generator
|
|
9
9
|
@type_name = 'VpcEndpoints'
|
10
10
|
@type = Awspec::Type::VpcEndpoints.new('my-vpc-endpoint')
|
11
11
|
@ret = @type.resource_via_client
|
12
|
-
@matchers = [
|
13
|
-
|
12
|
+
@matchers = [
|
13
|
+
Awspec::Type::VpcEndpoints::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', '),
|
14
|
+
'belong_to_vpc'
|
15
|
+
]
|
16
|
+
@ignore_matchers = Awspec::Type::VpcEndpoints::STATES.map { |state| "be_#{state.tr('-', '_')}" }
|
14
17
|
@describes = []
|
15
18
|
end
|
16
19
|
end
|
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: 1.28.
|
4
|
+
version: 1.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|