Skip to content

Commit

Permalink
Fix incorrect EditDir path in TestAzureContainerRegistry (#880)
Browse files Browse the repository at this point in the history
Prior to this change, EditPath pointed to a non-existing directory so
this test wasn't testing what's expected.. recent versions of Pulumi
make this error a hard error; also we probably want the test to actually
test the intended state transition encoded in the edit dir, hence this
change.
  • Loading branch information
t0yv0 authored Dec 12, 2023
1 parent 61de332 commit d39c5b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/examples_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,18 @@ func TestAzureContainerRegistry(t *testing.T) {
if location == "" {
t.Skipf("Skipping test due to missing AZURE_LOCATION environment variable")
}
dir := path.Join(getCwd(t), "azure-container-registry/ts")
test := getJsOptions(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "azure-container-registry/ts"),
Dir: dir,
Config: map[string]string{
"azure:environment": "public",
"azure:location": location,
},
ExpectRefreshChanges: true,
EditDirs: []integration.EditDir{
{
Dir: "step2",
Dir: path.Join(dir, "step2"),
Additive: true,
},
},
Expand Down

0 comments on commit d39c5b5

Please sign in to comment.