Skip to content

Commit 20ade74

Browse files
mprahlopenshift-merge-robot
authored andcommitted
Make the ManifestWork check more specific
In commit e96042e, a change was made that made an unrelated test fail. This makes the test more specific to make it pass. Signed-off-by: mprahl <[email protected]>
1 parent e96042e commit 20ade74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/case1_framework_deployment_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,10 @@ var _ = Describe("Test framework deployment", func() {
397397
manifests, _, _ := unstructured.NestedSlice(mw.Object, "spec", "workload", "manifests")
398398

399399
for _, manifest := range manifests {
400-
g.Expect(manifest.(map[string]interface{})["kind"]).ToNot(Equal("Namespace"))
400+
if manifest.(map[string]interface{})["kind"] == "Namespace" {
401+
nsName := manifest.(map[string]interface{})["metadata"].(map[string]interface{})["name"]
402+
g.Expect(nsName).ToNot(Equal(cluster.clusterName))
403+
}
401404
}
402405
}, 30, 5).Should(Succeed())
403406

0 commit comments

Comments
 (0)