Skip to content

Commit

Permalink
fix(e2e): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Sep 25, 2024
1 parent 7e8d3ae commit be7784e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var _ = Describe("Controller", Ordered, func() {
swiftNs = "swift"
resmgmtNs = "resmgmt"

resmgcetOSAbsencePRomRule = getFixture("resmgmt_openstack_absent_metrics_alert_rules.yaml")
resmgmtOSAbsencePromRule = getFixture("resmgmt_openstack_absent_metrics_alert_rules.yaml")
)

Describe("Create", func() {
Expand All @@ -73,7 +73,7 @@ var _ = Describe("Controller", Ordered, func() {

It("should create "+osAbsencePRName+" in "+resmgmtNs+" namespace", func() {
expectPromRulesToMatch(
resmgcetOSAbsencePRomRule,
resmgmtOSAbsencePromRule,
getPromRule(newObjKey(resmgmtNs, osAbsencePRName)),
)
})
Expand Down Expand Up @@ -177,8 +177,8 @@ var _ = Describe("Controller", Ordered, func() {
limesRolePRName := "openstack-limes-roleassign.alerts"
deletePromRule(newObjKey(resmgmtNs, limesRolePRName))

expected := make([]monitoringv1.RuleGroup, 0, len(resmgcetOSAbsencePRomRule.Spec.Groups)-1)
for _, g := range resmgcetOSAbsencePRomRule.Spec.Groups {
expected := make([]monitoringv1.RuleGroup, 0, len(resmgmtOSAbsencePromRule.Spec.Groups)-1)
for _, g := range resmgmtOSAbsencePromRule.Spec.Groups {
if !strings.Contains(g.Name, limesRolePRName) {
expected = append(expected, g)
}
Expand Down

0 comments on commit be7784e

Please sign in to comment.