Skip to content

Commit

Permalink
rename json inference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gcbeattyAWS committed Dec 18, 2024
1 parent 04f3c1f commit ac9f087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ private static void SetContentTypeAndStatusCodeV2(HttpResponse response, IDictio
else
{
// Assume for now that when status code is not set (we are assuming 0 means not set) then set the default to application/json
// Tehnically if the user were to return statusCode = 0 explicity in the response body, api gateway should internal server error, but since we don't
// have a way to differentiate it and not returning status code is more common, we will do this way for now.
// API Gateway 2.0 format version assumptions
response.StatusCode = 200;
response.ContentType = "application/json";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ApiGatewayResponseIntegrationTestFixture()

public async Task InitializeAsync()
{
StackName = $"Test-{Guid.NewGuid().ToString("N").Substring(5)}";
StackName = $"Test-{Guid.NewGuid().ToString("N").Substring(0, 5)}";

string templateBody = ReadCloudFormationTemplate("cloudformation-template-apigateway.yaml");
await CloudFormationHelper.CreateStackAsync(StackName, templateBody);
Expand Down

0 comments on commit ac9f087

Please sign in to comment.