Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
viveklak committed Jan 21, 2022
1 parent 944df8a commit c41397c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
3 changes: 3 additions & 0 deletions tests/sdk/go/go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ func TestGo(t *testing.T) {
test := baseOptions.With(integration.ProgramTestOptions{
Dir: filepath.Join("helm-partial-error", "step1"),
SkipRefresh: false,
SkipEmptyPreviewUpdate: true,
SkipPreview: true,
Verbose: true,
ExpectFailure: true,
ExtraRuntimeValidation: validation,
Expand All @@ -206,6 +208,7 @@ func TestGo(t *testing.T) {
Dir: filepath.Join("helm-partial-error", "step2"),
Additive: true,
ExtraRuntimeValidation: validation,
ExpectFailure: false,
},
},
})
Expand Down
16 changes: 9 additions & 7 deletions tests/sdk/go/helm-partial-error/step1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ func main() {
"service": pulumi.StringMap{
"type": pulumi.String("ClusterIP"),
},
"tcpSocket": pulumi.Map{
// This will cause initial Helm release install to fail.
"port": pulumi.String("httpunknown"),
"readinessProbe": pulumi.Map{
"tcpSocket": pulumi.Map{
// This will cause initial Helm release install to fail.
"port": pulumi.String("httpunknown"),
},
"initialDelaySeconds": pulumi.Int(1),
"timeoutSeconds": pulumi.Int(1),
"periodSeconds": pulumi.Int(3),
},
"initialDelaySeconds": pulumi.Int(1),
"timeoutSeconds": pulumi.Int(1),
"periodSeconds": pulumi.Int(3),
},
Timeout: pulumi.Int(10),
Timeout: pulumi.Int(30),
})
if err != nil {
return err
Expand Down
16 changes: 9 additions & 7 deletions tests/sdk/go/helm-partial-error/step2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ func main() {
"service": pulumi.StringMap{
"type": pulumi.String("ClusterIP"),
},
"tcpSocket": pulumi.Map{
// This should fix it.
"port": pulumi.String("http"),
"readinessProbe": pulumi.Map{
"tcpSocket": pulumi.Map{
// This should fix it.
"port": pulumi.String("http"),
},
"initialDelaySeconds": pulumi.Int(1),
"timeoutSeconds": pulumi.Int(1),
"periodSeconds": pulumi.Int(3),
},
"initialDelaySeconds": pulumi.Int(1),
"timeoutSeconds": pulumi.Int(1),
"periodSeconds": pulumi.Int(3),
},
Timeout: pulumi.Int(10),
Timeout: pulumi.Int(30),
})
if err != nil {
return err
Expand Down

0 comments on commit c41397c

Please sign in to comment.