CloudMigrations: Increase timeout of eventual checks and add debug message in flaky test (#112042)
* CloudMigrations: Remove unused param in test setup * CloudMigrations: Increase timeout of eventual checks and add debug message
This commit is contained in:
@@ -45,7 +45,7 @@ func TestGetAlertMuteTimings(t *testing.T) {
|
||||
t.Run("it returns the mute timings", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
s.features = featuremgmt.WithFeatures(featuremgmt.FlagOnPremToCloudMigrations)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1}
|
||||
@@ -69,7 +69,7 @@ func TestGetNotificationTemplates(t *testing.T) {
|
||||
t.Run("it returns the notification templates", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1}
|
||||
|
||||
@@ -92,7 +92,7 @@ func TestGetContactPoints(t *testing.T) {
|
||||
t.Run("it returns the contact points", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{
|
||||
OrgID: 1,
|
||||
@@ -115,7 +115,7 @@ func TestGetContactPoints(t *testing.T) {
|
||||
t.Run("it returns an error when user lacks permission to read contact point secrets", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{
|
||||
OrgID: 1,
|
||||
@@ -144,7 +144,7 @@ func TestGetNotificationPolicies(t *testing.T) {
|
||||
t.Run("it returns the contact points", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1}
|
||||
|
||||
@@ -172,7 +172,7 @@ func TestGetAlertRules(t *testing.T) {
|
||||
t.Run("it returns the alert rules", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1, Permissions: map[int64]map[string][]string{1: alertRulesPermissions}}
|
||||
|
||||
@@ -191,7 +191,7 @@ func TestGetAlertRules(t *testing.T) {
|
||||
c.CloudMigration.AlertRulesState = setting.GMSAlertRulesPaused
|
||||
}
|
||||
|
||||
s := setUpServiceTest(t, false, alertRulesState).(*Service)
|
||||
s := setUpServiceTest(t, alertRulesState).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1, Permissions: map[int64]map[string][]string{1: alertRulesPermissions}}
|
||||
|
||||
@@ -218,7 +218,7 @@ func TestGetAlertRuleGroups(t *testing.T) {
|
||||
t.Run("it returns the alert rule groups", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
s := setUpServiceTest(t, false).(*Service)
|
||||
s := setUpServiceTest(t).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1, Permissions: map[int64]map[string][]string{1: alertRulesPermissions}}
|
||||
|
||||
@@ -257,7 +257,7 @@ func TestGetAlertRuleGroups(t *testing.T) {
|
||||
c.CloudMigration.AlertRulesState = setting.GMSAlertRulesPaused
|
||||
}
|
||||
|
||||
s := setUpServiceTest(t, false, alertRulesState).(*Service)
|
||||
s := setUpServiceTest(t, alertRulesState).(*Service)
|
||||
|
||||
user := &user.SignedInUser{OrgID: 1, Permissions: map[int64]map[string][]string{1: alertRulesPermissions}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user