Skip to content

Commit

Permalink
update per comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Apr 28, 2024
1 parent d6aed0a commit 0810ab8
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ func TestAccSentinelAlertRuleScheduled_upgrade(t *testing.T) {

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.upgradeVersion(data, false),
Config: r.upgradeVersion(data, "1.0.4"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
{
Config: r.upgradeVersion(data, true),
Config: r.upgradeVersion(data, "1.0.5"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
Expand Down Expand Up @@ -361,11 +361,7 @@ QUERY
`, r.template(data), data.RandomInteger)
}

func (r SentinelAlertRuleScheduledResource) upgradeVersion(data acceptance.TestData, update bool) string {
version := "1.0.4"
if update {
version = "1.0.5"
}
func (r SentinelAlertRuleScheduledResource) upgradeVersion(data acceptance.TestData, version string) string {
return fmt.Sprintf(`
%s
Expand Down

0 comments on commit 0810ab8

Please sign in to comment.