Skip to content

Commit 48a3964

Browse files
committed
Fix e2e test to handle dynamic aro.environment operator flag
1 parent 26df537 commit 48a3964

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/e2e/aro.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ var _ = Describe("ARO Cluster", func() {
6464
Expect(co.Spec.GenevaLogging).NotTo(BeNil())
6565

6666
By("verifying OperatorFlags are set and equivalent to latest defaults")
67-
Expect(co.Spec.OperatorFlags).To(BeEquivalentTo(operator.DefaultOperatorFlags()))
67+
// Exclude dynamically set flags that are not part of defaults
68+
actualFlags := make(map[string]string)
69+
for k, v := range co.Spec.OperatorFlags {
70+
if k != "aro.environment" { // Skip dynamic environment flag
71+
actualFlags[k] = v
72+
}
73+
}
74+
Expect(actualFlags).To(BeEquivalentTo(operator.DefaultOperatorFlags()))
6875

6976
By("verifying InternetChecker exists")
7077
Expect(co.Spec.InternetChecker).NotTo(BeNil())

0 commit comments

Comments
 (0)