Skip to content

Commit

Permalink
Put samples test back
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith committed Oct 11, 2023
1 parent dbae3cc commit 892f46d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions v2/internal/controllers/crd_apimanagement_20220801_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func Test_ApiManagement_20220801_CRUD(t *testing.T) {
tc := globalTestContext.ForTest(t)
rg := tc.NewTestResourceGroup()

// APIM takes a long time to provision. When you are authoring tests in this file. I
// recommend you change this line to CreateResourceAndWaitWithoutCleanup. This way
// APIM takes a long time to provision. When you are authoring tests in this file
// I recommend you change this line to CreateResourceAndWaitWithoutCleanup. This way
// apim will not be deleted until you have finished writing your tests. Also change
// the code below when you create the &service
tc.CreateResourceAndWait(rg)
Expand Down
4 changes: 2 additions & 2 deletions v2/internal/controllers/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func runGroupTest(tc *testcommon.KubePerTestContext, groupVersionPath string) {
return
}

tc.CreateResourceAndWaitWithoutCleanup(rg)
tc.CreateResourceAndWait(rg)

// For secrets we need to look across refs and samples:
findRefsAndCreateSecrets(tc, samples.SamplesMap, samples.RefsMap)
Expand All @@ -112,7 +112,7 @@ func runGroupTest(tc *testcommon.KubePerTestContext, groupVersionPath string) {
tc.CreateResourcesAndWait(refsSlice...)
tc.CreateResourcesAndWait(samplesSlice...)

//tc.DeleteResourceAndWait(rg)
tc.DeleteResourceAndWait(rg)
}

func processSamples(samples map[string]genruntime.ARMMetaObject) []client.Object {
Expand Down

0 comments on commit 892f46d

Please sign in to comment.