Revert "Alerting: Add limits to the Prometheus Rules API" (#65842)
This commit is contained in:
@@ -259,16 +259,10 @@ func TestIntegrationPrometheusRules(t *testing.T) {
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
},
|
||||
"interval": 60,
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
}
|
||||
}]
|
||||
}
|
||||
}`, string(b))
|
||||
}
|
||||
@@ -317,16 +311,10 @@ func TestIntegrationPrometheusRules(t *testing.T) {
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
},
|
||||
"interval": 60,
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
}
|
||||
}]
|
||||
}
|
||||
}`, string(b))
|
||||
return true
|
||||
@@ -466,16 +454,10 @@ func TestIntegrationPrometheusRulesFilterByDashboard(t *testing.T) {
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
},
|
||||
"interval": 60,
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 2
|
||||
}
|
||||
}]
|
||||
}
|
||||
}`, dashboardUID)
|
||||
expectedFilteredByJSON := fmt.Sprintf(`
|
||||
@@ -499,16 +481,10 @@ func TestIntegrationPrometheusRulesFilterByDashboard(t *testing.T) {
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 1
|
||||
},
|
||||
"interval": 60,
|
||||
"lastEvaluation": "0001-01-01T00:00:00Z",
|
||||
"evaluationTime": 0
|
||||
}],
|
||||
"totals": {
|
||||
"inactive": 1
|
||||
}
|
||||
}]
|
||||
}
|
||||
}`, dashboardUID)
|
||||
expectedNoneJSON := `
|
||||
|
||||
Reference in New Issue
Block a user