NGAlert: Remove all pending references to the old API package (#33269)

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar
2021-04-22 18:36:32 +05:30
committed by GitHub
parent 743b77771f
commit 6cc7a20789
3 changed files with 9 additions and 34 deletions

View File

@@ -14,9 +14,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
apimodels "github.com/grafana/alerting-api/pkg/api"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/models"
apimodels "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions"
ngmodels "github.com/grafana/grafana/pkg/services/ngalert/models"
ngstore "github.com/grafana/grafana/pkg/services/ngalert/store"
"github.com/grafana/grafana/pkg/services/sqlstore"
@@ -81,7 +81,6 @@ func TestAlertAndGroupsQuery(t *testing.T) {
Rules: []apimodels.PostableExtendedRuleNode{
{
GrafanaManagedAlert: &apimodels.PostableGrafanaRule{
OrgID: 2,
Title: "AlwaysFiring",
Condition: "A",
Data: []ngmodels.AlertQuery{
@@ -714,7 +713,7 @@ func TestAlertRuleCRUD(t *testing.T) {
"annotations": {
"annotation1": "val42",
"foo": "bar"
},
},
"expr":"",
"for": "30s",
"labels": {