Skip to content

Commit 40f79fe

Browse files
CodelaxLaure-di
authored andcommitted
test(instance): server terminate with ip check PermissionsDenied (scaleway#4454)
1 parent 28a89bc commit 40f79fe

File tree

3 files changed

+1265
-1362
lines changed

3 files changed

+1265
-1362
lines changed

internal/namespaces/instance/v1/custom_server_action_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ func Test_ServerTerminate(t *testing.T) {
5656
_, err := api.GetIP(&instanceSDK.GetIPRequest{
5757
IP: server.PublicIP.ID,
5858
})
59-
require.IsType(t, &scw.ResponseError{}, err)
60-
assert.Equal(t, 403, err.(*scw.ResponseError).StatusCode)
59+
require.IsType(t, &scw.PermissionsDeniedError{}, err)
6160
},
6261
),
6362
DisableParallel: true,

0 commit comments

Comments
 (0)