Skip to content

Commit 3d1b5ab

Browse files
committed
Specify full path for Operator subscription
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
1 parent 5467a5a commit 3d1b5ab

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

test/integration/policy_install_operator_test.go

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var _ = Describe("GRC: [P1][Sev1][policy-grc] Test install Operator",
4848

4949
_, err = common.OcManaged(
5050
"delete",
51-
"subscription",
51+
"subscription.operators.coreos.com",
5252
subName,
5353
"-n",
5454
testNS+noGroupSuffix,
@@ -60,17 +60,16 @@ var _ = Describe("GRC: [P1][Sev1][policy-grc] Test install Operator",
6060
"delete",
6161
"operatorgroup",
6262
dynamicOpGroupName,
63-
"-n",
64-
testNS+noGroupSuffix,
63+
"-n", testNS+noGroupSuffix,
6564
"--ignore-not-found=true",
6665
)
6766
Expect(err).ToNot(HaveOccurred())
6867

6968
_, err = common.OcManaged(
7069
"delete",
7170
"clusterserviceversion",
72-
csvName, "-n",
73-
testNS+noGroupSuffix,
71+
csvName,
72+
"-n", testNS+noGroupSuffix,
7473
"--ignore-not-found=true",
7574
)
7675
Expect(err).ToNot(HaveOccurred())
@@ -249,10 +248,9 @@ var _ = Describe("GRC: [P1][Sev1][policy-grc] Test install Operator",
249248

250249
_, err = common.OcManaged(
251250
"delete",
252-
"subscription",
251+
"subscription.operators.coreos.com",
253252
"quay-operator",
254-
"-n",
255-
testNS+withGroupSuffix,
253+
"-n", testNS+withGroupSuffix,
256254
"--ignore-not-found=true",
257255
)
258256
Expect(err).ToNot(HaveOccurred())
@@ -261,8 +259,7 @@ var _ = Describe("GRC: [P1][Sev1][policy-grc] Test install Operator",
261259
"delete",
262260
"operatorgroup",
263261
opGroupName+withGroupSuffix,
264-
"-n",
265-
testNS+withGroupSuffix,
262+
"-n", testNS+withGroupSuffix,
266263
"--ignore-not-found=true",
267264
)
268265
Expect(err).ToNot(HaveOccurred())

0 commit comments

Comments
 (0)