Skip to content

Commit 4370de4

Browse files
committed
test: assert that operator is not upgradeable with deprecated config
Signed-off-by: Jan Fajerski <[email protected]>
1 parent d7db970 commit 4370de4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,12 +904,14 @@ k8sPrometheusAdapter:
904904
profile: Request`
905905
f.MustCreateOrUpdateConfigMap(t, f.BuildCMOConfigMap(t, data))
906906
checkMetricValue(1)
907+
f.AssertOperatorCondition(configv1.OperatorUpgradeable, configv1.ConditionFalse)(t)
907908

908909
// The metric should be reset to 0.
909910
data = `
910911
k8sPrometheusAdapter:`
911912
f.MustCreateOrUpdateConfigMap(t, f.BuildCMOConfigMap(t, data))
912913
checkMetricValue(0)
914+
f.AssertOperatorCondition(configv1.OperatorUpgradeable, configv1.ConditionTrue)(t)
913915
}
914916

915917
// checks that the toleration is present

0 commit comments

Comments
 (0)