Skip to content

Commit

Permalink
ensure updated querystring for aggregate alert test is actually an ag…
Browse files Browse the repository at this point in the history
…gregate query
  • Loading branch information
SaaldjorMike committed Aug 9, 2024
1 parent 234d196 commit 09f702a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/humioaggregatealert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (r *HumioAggregateAlertReconciler) reconcileHumioAggregateAlert(ctx context
curAggregateAlert))
AggregateAlert, err := r.HumioClient.UpdateAggregateAlert(config, req, haa)
if err != nil {
return reconcile.Result{}, r.logErrorAndReturn(err, "could not update agregate alert")
return reconcile.Result{}, r.logErrorAndReturn(err, "could not update aggregate alert")
}
if AggregateAlert != nil {
r.Log.Info(fmt.Sprintf("Updated Aggregate Alert %q", AggregateAlert.Name))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3155,7 +3155,7 @@ var _ = Describe("Humio Resources Controllers", func() {

suite.UsingClusterBy(clusterKey.Name, "HumioAggregateAlert: Updating the aggregate alert successfully")
updatedAggregateAlert := toCreateAggregateAlert
updatedAggregateAlert.Spec.QueryString = "#repo = humio | updated_field = true | error = true"
updatedAggregateAlert.Spec.QueryString = "#repo = humio | updated_field = true | error = true | count()"
updatedAggregateAlert.Spec.Enabled = false
updatedAggregateAlert.Spec.Description = "updated humio aggregate alert"
updatedAggregateAlert.Spec.SearchIntervalSeconds = 120
Expand Down

0 comments on commit 09f702a

Please sign in to comment.