Skip to content

Commit

Permalink
update test to check that intervals remain unchanged (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo authored Mar 25, 2024
1 parent 13ecd64 commit 1cc7660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-tests/server/advisors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestChangeSecurityChecks(t *testing.T) {
}
})

t.Run("change interval error", func(t *testing.T) {
t.Run("unrecognized interval is ignored", func(t *testing.T) {
t.Cleanup(func() { restoreCheckIntervalDefaults(t) })

resp, err := managementClient.Default.SecurityChecks.ListSecurityChecks(nil)
Expand All @@ -185,7 +185,7 @@ func TestChangeSecurityChecks(t *testing.T) {
}

_, err = managementClient.Default.SecurityChecks.ChangeSecurityChecks(params)
pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid value for enum type: \"unknown_interval\"")
require.NoError(t, err)

resp, err = managementClient.Default.SecurityChecks.ListSecurityChecks(nil)
require.NoError(t, err)
Expand Down

0 comments on commit 1cc7660

Please sign in to comment.