|
1 | 1 | {
|
2 | 2 | "version" : 2,
|
3 | 3 | "testCases" : [ {
|
4 |
| - "id" : "ListClustersSuccess", |
5 |
| - "operationName" : "ListClusters", |
6 |
| - "input" : { }, |
| 4 | + "id" : "GetCluster_AccessDeniedException", |
| 5 | + "operationName" : "GetCluster", |
| 6 | + "input" : { |
| 7 | + "clusterIdentifier" : "pcs_donotexist" |
| 8 | + }, |
7 | 9 | "expectation" : {
|
8 |
| - "success" : { } |
| 10 | + "failure" : { |
| 11 | + "errorId" : "AccessDeniedException" |
| 12 | + } |
9 | 13 | },
|
10 | 14 | "config" : {
|
11 | 15 | "region" : "us-west-2",
|
|
14 | 18 | "useAccountIdRouting" : true
|
15 | 19 | }
|
16 | 20 | }, {
|
17 |
| - "id" : "ListComputeNodeGroups_AccessDeniedException", |
18 |
| - "operationName" : "ListComputeNodeGroups", |
| 21 | + "id" : "GetComputeNodeGroup_AccessDeniedException", |
| 22 | + "operationName" : "GetComputeNodeGroup", |
19 | 23 | "input" : {
|
20 |
| - "clusterIdentifier" : "pcs_donotexist" |
| 24 | + "clusterIdentifier" : "pcs_donotexist", |
| 25 | + "computeNodeGroupIdentifier" : "pcs_donotexist" |
21 | 26 | },
|
22 | 27 | "expectation" : {
|
23 | 28 | "failure" : {
|
|
31 | 36 | "useAccountIdRouting" : true
|
32 | 37 | }
|
33 | 38 | }, {
|
34 |
| - "id" : "ListQueueFailure_AccessDeniedException", |
35 |
| - "operationName" : "ListQueues", |
| 39 | + "id" : "GetQueueFailure_AccessDeniedException", |
| 40 | + "operationName" : "GetQueue", |
36 | 41 | "input" : {
|
37 |
| - "clusterIdentifier" : "pcs_donotexist" |
| 42 | + "clusterIdentifier" : "pcs_donotexist", |
| 43 | + "queueIdentifier" : "pcs_donotexist" |
38 | 44 | },
|
39 | 45 | "expectation" : {
|
40 | 46 | "failure" : {
|
|
48 | 54 | "useAccountIdRouting" : true
|
49 | 55 | }
|
50 | 56 | }, {
|
51 |
| - "id" : "GetComputeNodeGroup_AccessDeniedException", |
52 |
| - "operationName" : "GetComputeNodeGroup", |
| 57 | + "id" : "ListComputeNodeGroups_AccessDeniedException", |
| 58 | + "operationName" : "ListComputeNodeGroups", |
53 | 59 | "input" : {
|
54 |
| - "clusterIdentifier" : "pcs_donotexist", |
55 |
| - "computeNodeGroupIdentifier" : "pcs_donotexist" |
| 60 | + "clusterIdentifier" : "pcs_donotexist" |
56 | 61 | },
|
57 | 62 | "expectation" : {
|
58 | 63 | "failure" : {
|
|
66 | 71 | "useAccountIdRouting" : true
|
67 | 72 | }
|
68 | 73 | }, {
|
69 |
| - "id" : "GetCluster_AccessDeniedException", |
70 |
| - "operationName" : "GetCluster", |
| 74 | + "id" : "ListClustersSuccess", |
| 75 | + "operationName" : "ListClusters", |
| 76 | + "input" : { }, |
| 77 | + "expectation" : { |
| 78 | + "success" : { } |
| 79 | + }, |
| 80 | + "config" : { |
| 81 | + "region" : "us-west-2", |
| 82 | + "useFips" : false, |
| 83 | + "useDualstack" : false, |
| 84 | + "useAccountIdRouting" : true |
| 85 | + } |
| 86 | + }, { |
| 87 | + "id" : "InstanceArnSuccess", |
| 88 | + "operationName" : "CreateComputeNodeGroup", |
71 | 89 | "input" : {
|
72 |
| - "clusterIdentifier" : "pcs_donotexist" |
| 90 | + "clusterIdentifier" : "testCluster", |
| 91 | + "computeNodeGroupName" : "testNodeGroupName", |
| 92 | + "subnetIds" : [ "subnet-0cbf727bae9405b47" ], |
| 93 | + "scalingConfiguration" : { |
| 94 | + "minInstanceCount" : 1, |
| 95 | + "maxInstanceCount" : 1 |
| 96 | + }, |
| 97 | + "iamInstanceProfileArn" : "arn:aws:iam::975050141277:instance-profile/aws-pcs/example-role-2", |
| 98 | + "customLaunchTemplate" : { |
| 99 | + "id" : "lt-0b8f8ee3f92b73dc0", |
| 100 | + "version" : "1" |
| 101 | + }, |
| 102 | + "instanceConfigs" : [ { |
| 103 | + "instanceType" : "t3.medium" |
| 104 | + } ] |
73 | 105 | },
|
74 | 106 | "expectation" : {
|
75 | 107 | "failure" : {
|
76 | 108 | "errorId" : "AccessDeniedException"
|
77 | 109 | }
|
78 | 110 | },
|
79 | 111 | "config" : {
|
80 |
| - "region" : "us-west-2", |
| 112 | + "region" : "us-east-1", |
81 | 113 | "useFips" : false,
|
82 | 114 | "useDualstack" : false,
|
83 | 115 | "useAccountIdRouting" : true
|
84 | 116 | }
|
85 | 117 | }, {
|
86 |
| - "id" : "GetQueueFailure_AccessDeniedException", |
87 |
| - "operationName" : "GetQueue", |
| 118 | + "id" : "ListQueueFailure_AccessDeniedException", |
| 119 | + "operationName" : "ListQueues", |
88 | 120 | "input" : {
|
89 |
| - "clusterIdentifier" : "pcs_donotexist", |
90 |
| - "queueIdentifier" : "pcs_donotexist" |
| 121 | + "clusterIdentifier" : "pcs_donotexist" |
91 | 122 | },
|
92 | 123 | "expectation" : {
|
93 | 124 | "failure" : {
|
|
0 commit comments