Enabling the linode webserver example in CI
MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -569,6 +569,17 @@ func TestExamples(t *testing.T) {
})
},
}),
+
+ base.With(integration.ProgramTestOptions{
+ Dir: path.Join(cwd, "..", "..", "linode-js-webserver"),
+ Config: map[string]string{},
+ ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
+ endpoint := stack.Outputs["instanceIP"].(string)
+ assertHTTPResult(t, endpoint, func(body string) bool {
+ return assert.Contains(t, body, "Hello, World!")
+ })
+ },
+ }),
}
longTests := []integration.ProgramTestOptions{

Enabling the linode webserver example in CI