add dotnet publish to extra runtime validation
MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -259,11 +259,11 @@ func TestAccAwsPyS3Folder(t *testing.T) {
}
func TestAccAwsPyServerlessRaw(t *testing.T) {
- integration.RunCommand(t, "dotnet publish", nil, path.Join(getCwd(t), "..", "..", "aws-py-serverless-raw", "app"), nil)
test := getAWSBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "aws-py-serverless-raw"),
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
+ integration.RunCommand(t, "dotnet publish", nil, path.Join(getCwd(t), "..", "..", "aws-py-serverless-raw", "app"), nil)
assertHTTPResult(t, stack.Outputs["endpoint"].(string)+"/hello", nil, func(body string) bool {
return assert.Contains(t, body, "{\"Path\":\"hello\",\"Count\":1}")
})
@@ -504,11 +504,11 @@ func TestAccAwsTsS3LambdaCopyZip(t *testing.T) {
}
func TestAccAwsTsServerlessRaw(t *testing.T) {
- integration.RunCommand(t, "dotnet publish", nil, path.Join(getCwd(t), "..", "..", "aws-py-serverless-raw", "app"), nil)
test := getAWSBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "aws-ts-serverless-raw"),
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
+ integration.RunCommand(t, "dotnet publish", nil, path.Join(getCwd(t), "..", "..", "aws-py-serverless-raw", "app"), nil)
assertHTTPResult(t, stack.Outputs["endpoint"].(string)+"/hello", nil, func(body string) bool {
return assert.Contains(t, body, "{\"Path\":\"hello\",\"Count\":1}")
})

add dotnet publish to extra runtime validation