Skip to content

Commit

Permalink
test(instance): server terminate with ip check 403
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax committed Jan 21, 2025
1 parent 52e1b89 commit 55dbe10
Show file tree
Hide file tree
Showing 3 changed files with 1,265 additions and 1,362 deletions.
3 changes: 1 addition & 2 deletions internal/namespaces/instance/v1/custom_server_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ func Test_ServerTerminate(t *testing.T) {
_, err := api.GetIP(&instanceSDK.GetIPRequest{
IP: server.PublicIP.ID,
})
require.IsType(t, &scw.ResponseError{}, err)
assert.Equal(t, 403, err.(*scw.ResponseError).StatusCode)
require.IsType(t, &scw.PermissionsDeniedError{}, err)
},
),
DisableParallel: true,
Expand Down
Loading

0 comments on commit 55dbe10

Please sign in to comment.