Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch bidprice bug #452

Merged
merged 13 commits into from
Jun 2, 2021
64 changes: 64 additions & 0 deletions aws/sdk/aws-models/batch-tests.smithy
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
$version: "1.0"

namespace com.amazonaws.batch
use smithy.test#httpResponseTests
apply DescribeComputeEnvironments @httpResponseTests([
{
id: "DeserializeDescribeCompute",
documentation: "This test case validates a bug where unboxed primitives were incorrectly marked as required",
body: """
{
"computeEnvironments":[{
"computeEnvironmentName":"test-batch-compute",
"computeEnvironmentArn":"arn",
"ecsClusterArn":"clusteran",
"tags":{"foo": "bar"},
"type":"MANAGED",
"state":"ENABLED",
"status":"VALID",
"statusReason":"ComputeEnvironment Healthy",
"computeResources":{
"type":"EC2",
"minvCpus":0,
"maxvCpus":256,
"desiredvCpus":0,
"instanceTypes":["optimal"],
"subnets":["subnet-c745b79c","subnet-d4e24fe8"],
"securityGroupIds":["sg-06a55e7b"],
"instanceRole":"instancerole",
"tags":{"Name":"batch-compute"},
"ec2Configuration":[{"imageType":"ECS_AL1"}]
},
"serviceRole":"arn:aws:iam::432762038596:role/service-role/AWSBatchServiceRole"
}]
}
""",
code: 200,
protocol: "aws.protocols#restJson1",
params: {
"computeEnvironments":[{
"computeEnvironmentName":"test-batch-compute",
"computeEnvironmentArn":"arn",
"ecsClusterArn":"clusteran",
"tags":{"foo": "bar"},
"type":"MANAGED",
"state":"ENABLED",
"status":"VALID",
"statusReason":"ComputeEnvironment Healthy",
"computeResources":{
"type":"EC2",
"minvCpus":0,
"maxvCpus":256,
"desiredvCpus":0,
"instanceTypes":["optimal"],
"subnets":["subnet-c745b79c","subnet-d4e24fe8"],
"securityGroupIds":["sg-06a55e7b"],
"instanceRole":"instancerole",
"tags":{"Name":"batch-compute"},
"ec2Configuration":[{"imageType":"ECS_AL1"}]
},
"serviceRole":"arn:aws:iam::432762038596:role/service-role/AWSBatchServiceRole"
}]
}
}
])
Loading