Skip to content

Commit d3a5651

Browse files
author
awstools
committed
feat(client-elasticache): Add v2 smoke tests and smithy smokeTests trait for SDK testing.
1 parent 1cc4de9 commit d3a5651

File tree

1 file changed

+82
-69
lines changed

1 file changed

+82
-69
lines changed

codegen/sdk-codegen/aws-models/elasticache.json

Lines changed: 82 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -4749,21 +4749,21 @@
47494749
"smithy.api#documentation": "<p>Creates a copy of an entire cluster or replication group at a specific moment in\n time.</p>\n <note>\n <p>This operation is valid for Redis only.</p>\n </note>",
47504750
"smithy.api#examples": [
47514751
{
4752-
"title": "CreateSnapshot - NonClustered Redis, no read-replicas",
4753-
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only one node.",
4752+
"title": "CreateSnapshot - NonClustered Redis, 2 read-replicas",
4753+
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only three nodes, primary and two read-replicas. CacheClusterId must be a specific node in the cluster.",
47544754
"input": {
4755-
"CacheClusterId": "onenoderedis",
4756-
"SnapshotName": "snapshot-1"
4755+
"CacheClusterId": "threenoderedis-001",
4756+
"SnapshotName": "snapshot-2"
47574757
},
47584758
"output": {
47594759
"Snapshot": {
47604760
"Engine": "redis",
47614761
"CacheParameterGroupName": "default.redis3.2",
47624762
"VpcId": "vpc-73c3cd17",
4763-
"CacheClusterId": "onenoderedis",
4763+
"CacheClusterId": "threenoderedis-001",
47644764
"SnapshotRetentionLimit": 1,
47654765
"NumCacheNodes": 1,
4766-
"SnapshotName": "snapshot-1",
4766+
"SnapshotName": "snapshot-2",
47674767
"CacheClusterCreateTime": "2017-02-03T15:43:36.278Z",
47684768
"AutoMinorVersionUpgrade": true,
47694769
"PreferredAvailabilityZone": "us-west-2c",
@@ -4786,21 +4786,21 @@
47864786
}
47874787
},
47884788
{
4789-
"title": "CreateSnapshot - NonClustered Redis, 2 read-replicas",
4790-
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only three nodes, primary and two read-replicas. CacheClusterId must be a specific node in the cluster.",
4789+
"title": "CreateSnapshot - NonClustered Redis, no read-replicas",
4790+
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only one node.",
47914791
"input": {
4792-
"CacheClusterId": "threenoderedis-001",
4793-
"SnapshotName": "snapshot-2"
4792+
"CacheClusterId": "onenoderedis",
4793+
"SnapshotName": "snapshot-1"
47944794
},
47954795
"output": {
47964796
"Snapshot": {
47974797
"Engine": "redis",
47984798
"CacheParameterGroupName": "default.redis3.2",
47994799
"VpcId": "vpc-73c3cd17",
4800-
"CacheClusterId": "threenoderedis-001",
4800+
"CacheClusterId": "onenoderedis",
48014801
"SnapshotRetentionLimit": 1,
48024802
"NumCacheNodes": 1,
4803-
"SnapshotName": "snapshot-2",
4803+
"SnapshotName": "snapshot-1",
48044804
"CacheClusterCreateTime": "2017-02-03T15:43:36.278Z",
48054805
"AutoMinorVersionUpgrade": true,
48064806
"PreferredAvailabilityZone": "us-west-2c",
@@ -6128,14 +6128,39 @@
61286128
"smithy.api#examples": [
61296129
{
61306130
"title": "DescribeCacheClusters",
6131-
"documentation": "Lists the details for up to 50 cache clusters.",
6131+
"documentation": "Lists the details for the cache cluster my-mem-cluster.",
61326132
"input": {
6133-
"CacheClusterId": "my-mem-cluster"
6133+
"CacheClusterId": "my-mem-cluster",
6134+
"ShowCacheNodeInfo": true
61346135
},
61356136
"output": {
61366137
"CacheClusters": [
61376138
{
61386139
"Engine": "memcached",
6140+
"CacheNodes": [
6141+
{
6142+
"CacheNodeId": "0001",
6143+
"Endpoint": {
6144+
"Port": 11211,
6145+
"Address": "my-mem-cluster.ameaqx.0001.use1.cache.amazonaws.com"
6146+
},
6147+
"CacheNodeStatus": "available",
6148+
"ParameterGroupStatus": "in-sync",
6149+
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
6150+
"CustomerAvailabilityZone": "us-east-1b"
6151+
},
6152+
{
6153+
"CacheNodeId": "0002",
6154+
"Endpoint": {
6155+
"Port": 11211,
6156+
"Address": "my-mem-cluster.ameaqx.0002.use1.cache.amazonaws.com"
6157+
},
6158+
"CacheNodeStatus": "available",
6159+
"ParameterGroupStatus": "in-sync",
6160+
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
6161+
"CustomerAvailabilityZone": "us-east-1a"
6162+
}
6163+
],
61396164
"CacheParameterGroup": {
61406165
"CacheNodeIdsToReboot": [],
61416166
"CacheParameterGroupName": "default.memcached1.4",
@@ -6145,7 +6170,7 @@
61456170
"PreferredAvailabilityZone": "Multiple",
61466171
"ConfigurationEndpoint": {
61476172
"Port": 11211,
6148-
"Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com"
6173+
"Address": "my-mem-cluster.ameaqx.cfg.use1.cache.amazonaws.com"
61496174
},
61506175
"CacheSecurityGroups": [],
61516176
"CacheClusterCreateTime": "2016-12-21T21:59:43.794Z",
@@ -6164,39 +6189,14 @@
61646189
},
61656190
{
61666191
"title": "DescribeCacheClusters",
6167-
"documentation": "Lists the details for the cache cluster my-mem-cluster.",
6192+
"documentation": "Lists the details for up to 50 cache clusters.",
61686193
"input": {
6169-
"CacheClusterId": "my-mem-cluster",
6170-
"ShowCacheNodeInfo": true
6194+
"CacheClusterId": "my-mem-cluster"
61716195
},
61726196
"output": {
61736197
"CacheClusters": [
61746198
{
61756199
"Engine": "memcached",
6176-
"CacheNodes": [
6177-
{
6178-
"CacheNodeId": "0001",
6179-
"Endpoint": {
6180-
"Port": 11211,
6181-
"Address": "my-mem-cluster.ameaqx.0001.use1.cache.amazonaws.com"
6182-
},
6183-
"CacheNodeStatus": "available",
6184-
"ParameterGroupStatus": "in-sync",
6185-
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
6186-
"CustomerAvailabilityZone": "us-east-1b"
6187-
},
6188-
{
6189-
"CacheNodeId": "0002",
6190-
"Endpoint": {
6191-
"Port": 11211,
6192-
"Address": "my-mem-cluster.ameaqx.0002.use1.cache.amazonaws.com"
6193-
},
6194-
"CacheNodeStatus": "available",
6195-
"ParameterGroupStatus": "in-sync",
6196-
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
6197-
"CustomerAvailabilityZone": "us-east-1a"
6198-
}
6199-
],
62006200
"CacheParameterGroup": {
62016201
"CacheNodeIdsToReboot": [],
62026202
"CacheParameterGroupName": "default.memcached1.4",
@@ -6206,7 +6206,7 @@
62066206
"PreferredAvailabilityZone": "Multiple",
62076207
"ConfigurationEndpoint": {
62086208
"Port": 11211,
6209-
"Address": "my-mem-cluster.ameaqx.cfg.use1.cache.amazonaws.com"
6209+
"Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com"
62106210
},
62116211
"CacheSecurityGroups": [],
62126212
"CacheClusterCreateTime": "2016-12-21T21:59:43.794Z",
@@ -8128,7 +8128,20 @@
81288128
"outputToken": "Marker",
81298129
"items": "Events",
81308130
"pageSize": "MaxRecords"
8131-
}
8131+
},
8132+
"smithy.test#smokeTests": [
8133+
{
8134+
"id": "DescribeEventsSuccess",
8135+
"params": {},
8136+
"vendorParams": {
8137+
"region": "us-west-2"
8138+
},
8139+
"vendorParamsShape": "aws.test#AwsVendorParams",
8140+
"expect": {
8141+
"success": {}
8142+
}
8143+
}
8144+
]
81328145
}
81338146
},
81348147
"com.amazonaws.elasticache#DescribeEventsMessage": {
@@ -8554,6 +8567,21 @@
85548567
"traits": {
85558568
"smithy.api#documentation": "<p>Lists available reserved cache node offerings.</p>",
85568569
"smithy.api#examples": [
8570+
{
8571+
"title": "DescribeReseredCacheNodeOfferings",
8572+
"documentation": "Lists available reserved cache node offerings for cache.r3.large nodes with a 3 year commitment.",
8573+
"input": {
8574+
"ReservedCacheNodesOfferingId": "",
8575+
"CacheNodeType": "cache.r3.large",
8576+
"Duration": "3",
8577+
"OfferingType": "Light Utilization",
8578+
"MaxRecords": 25
8579+
},
8580+
"output": {
8581+
"Marker": "",
8582+
"ReservedCacheNodesOfferings": []
8583+
}
8584+
},
85578585
{
85588586
"title": "DescribeReseredCacheNodeOfferings",
85598587
"documentation": "Lists available reserved cache node offerings.",
@@ -8821,21 +8849,6 @@
88218849
]
88228850
}
88238851
},
8824-
{
8825-
"title": "DescribeReseredCacheNodeOfferings",
8826-
"documentation": "Lists available reserved cache node offerings for cache.r3.large nodes with a 3 year commitment.",
8827-
"input": {
8828-
"ReservedCacheNodesOfferingId": "",
8829-
"CacheNodeType": "cache.r3.large",
8830-
"Duration": "3",
8831-
"OfferingType": "Light Utilization",
8832-
"MaxRecords": 25
8833-
},
8834-
"output": {
8835-
"Marker": "",
8836-
"ReservedCacheNodesOfferings": []
8837-
}
8838-
},
88398852
{
88408853
"title": "DescribeReseredCacheNodeOfferings",
88418854
"documentation": "Lists available reserved cache node offerings.",
@@ -10837,6 +10850,16 @@
1083710850
"traits": {
1083810851
"smithy.api#documentation": "<p>Lists all available node types that you can scale your Redis cluster's or replication\n group's current node type.</p>\n <p>When you use the <code>ModifyCacheCluster</code> or\n <code>ModifyReplicationGroup</code> operations to scale your cluster or replication\n group, the value of the <code>CacheNodeType</code> parameter must be one of the node\n types returned by this operation.</p>",
1083910852
"smithy.api#examples": [
10853+
{
10854+
"title": "ListAllowedNodeTypeModifications",
10855+
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
10856+
"input": {
10857+
"CacheClusterId": "mycluster"
10858+
},
10859+
"output": {
10860+
"ScaleUpModifications": []
10861+
}
10862+
},
1084010863
{
1084110864
"title": "ListAllowedNodeTypeModifications",
1084210865
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
@@ -10855,16 +10878,6 @@
1085510878
"cache.r3.xlarge"
1085610879
]
1085710880
}
10858-
},
10859-
{
10860-
"title": "ListAllowedNodeTypeModifications",
10861-
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
10862-
"input": {
10863-
"CacheClusterId": "mycluster"
10864-
},
10865-
"output": {
10866-
"ScaleUpModifications": []
10867-
}
1086810881
}
1086910882
]
1087010883
}

0 commit comments

Comments
 (0)