diff --git a/cfn-resources/stream-connection/test/cfn-test-create-inputs.sh b/cfn-resources/stream-connection/test/cfn-test-create-inputs.sh index dd664be04..078758377 100755 --- a/cfn-resources/stream-connection/test/cfn-test-create-inputs.sh +++ b/cfn-resources/stream-connection/test/cfn-test-create-inputs.sh @@ -35,7 +35,7 @@ clusterName="cluster-$RANDOM" atlas streams instances create "${instanceName}" --projectId "${projectId}" --region VIRGINIA_USA --provider ${cloudProvider} echo -e "Created StreamInstance \"${instanceName}\"" -atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --mdbVersion 6.0 --diskSizeGB 10 --output=json +atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --diskSizeGB 10 --output=json atlas clusters watch "${clusterName}" --projectId "${projectId}" echo -e "Created Cluster \"${clusterName}\"" diff --git a/cfn-resources/stream-connection/test/cfn-test-delete-inputs.sh b/cfn-resources/stream-connection/test/cfn-test-delete-inputs.sh index 73059ada8..44f67754b 100755 --- a/cfn-resources/stream-connection/test/cfn-test-delete-inputs.sh +++ b/cfn-resources/stream-connection/test/cfn-test-delete-inputs.sh @@ -11,8 +11,8 @@ function usage { } projectId=$(jq -r '.ProjectId' ./inputs/inputs_1_create.json) - clusterName=$(jq -r '.ClusterName' ./inputs/inputs_1_create.json) +instanceName=$(jq -r '.InstanceName' ./inputs/inputs_1_create.json) if atlas cluster delete "${clusterName}" --projectId "${projectId}" --force; then echo "deleting cluster with name ${clusterName}" @@ -25,6 +25,13 @@ if [ "$status" -eq 0 ]; then echo "Cluster '${clusterName}' has been successfully watched until deletion." fi +#delete stream instance +if atlas streams instances delete "${instanceName}" --projectId "${projectId}" --force; then + echo "deleting stream instance with name ${instanceName}" +else + echo "failed to delete the stream instance with name ${instanceName}" +fi + #delete project if atlas projects delete "$projectId" --force; then echo "$projectId project deletion OK" diff --git a/cfn-resources/stream-connection/test/inputs_1_update.json b/cfn-resources/stream-connection/test/inputs_1_update.json index 17852239d..c653114ae 100644 --- a/cfn-resources/stream-connection/test/inputs_1_update.json +++ b/cfn-resources/stream-connection/test/inputs_1_update.json @@ -6,7 +6,7 @@ "ConnectionName": "ConnectionNameCluster", "Type": "Cluster", "DbRoleToExecute": { - "Role": "readWrite", + "Role": "readWriteAnyDatabase", "Type": "BUILT_IN" } }