azure-ts-aks-helm simple test.
MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -17,10 +17,10 @@ import (
)
func TestExamples(t *testing.T) {
- awsRegion := os.Getenv("AWS_REGION")
- if awsRegion == "" {
- t.Skipf("Skipping test due to missing AWS_REGION environment variable")
- }
+ // awsRegion := os.Getenv("AWS_REGION")
+ // if awsRegion == "" {
+ // t.Skipf("Skipping test due to missing AWS_REGION environment variable")
+ // }
azureEnviron := os.Getenv("ARM_ENVIRONMENT")
if azureEnviron == "" {
t.Skipf("Skipping test due to missing ARM_ENVIRONMENT variable")
@@ -103,6 +103,20 @@ func TestExamples(t *testing.T) {
})
},
}),
+ base.With(integration.ProgramTestOptions{
+ Dir: path.Join(cwd, "..", "..", "azure-ts-aks-helm"),
+ SkipBuild: true,
+ Config: map[string]string{
+ "azure:environment": azureEnviron,
+ "password": "testTEST1234+_^$",
+ "sshPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDeREOgHTUgPT00PTr7iQF9JwZQ4QF1VeaLk2nHKRvWYOCiky6hDtzhmLM0k0Ib9Y7cwFbhObR+8yZpCgfSX3Hc3w2I1n6lXFpMfzr+wdbpx97N4fc1EHGUr9qT3UM1COqN6e/BEosQcMVaXSCpjqL1jeNaRDAnAS2Y3q1MFeXAvj9rwq8EHTqqAc1hW9Lq4SjSiA98STil5dGw6DWRhNtf6zs4UBy8UipKsmuXtclR0gKnoEP83ahMJOpCIjuknPZhb+HsiNjFWf+Os9U6kaS5vGrbXC8nggrVE57ow88pLCBL+3mBk1vBg6bJuLBCp2WTqRzDMhSDQ3AcWqkucGqf dremy@remthinkpad",
+ },
+ ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
+ assertHTTPResult(t, stack.Outputs["serviceIP"], func(body string) bool {
+ return assert.Contains(t, body, "It works!")
+ })
+ },
+ }),
// TODO[pulumi/pulumi#1606] This test is failing in CI, disabling until this issue is resolved.
// base.With(integration.ProgramTestOptions{
// Dir: path.Join(cwd, "..", "..", "aws-py-webserver"),

azure-ts-aks-helm simple test.