Skip to content

Commit

Permalink
fix: update test cases (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
yndu13 authored Dec 27, 2024
1 parent 84b4de9 commit c429276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Test_CreateClusterTokenWithROArequestWithXMLWithPOST(t *testing.T) {
response, err := client.CreateCluster(request)
assert.NotNil(t, err)
assert.Equal(t, 400, response.GetHttpStatus())
assert.Contains(t, err.Error(), "Request body can't be empty")
assert.Contains(t, err.Error(), "ErrorJsonDecode")
}

func Test_DeleteClusterWithROArequestWithXMLWithDelete(t *testing.T) {
Expand All @@ -45,7 +45,7 @@ func Test_DeleteClusterWithROArequestWithXMLWithDelete(t *testing.T) {
request.SetScheme("HTTPS")
response, err := client.DeleteCluster(request)
assert.NotNil(t, err)
assert.Equal(t, 400, response.GetHttpStatus())
assert.Equal(t, 404, response.GetHttpStatus())
assert.Contains(t, err.Error(), "ErrorClusterNotFound")
}

Expand All @@ -57,7 +57,7 @@ func Test_DeleteClusterWithROArequestWithJSONWithDelete(t *testing.T) {
request.SetScheme("HTTPS")
response, err := client.DeleteCluster(request)
assert.NotNil(t, err)
assert.Equal(t, 400, response.GetHttpStatus())
assert.Equal(t, 404, response.GetHttpStatus())
assert.Contains(t, err.Error(), "ErrorClusterNotFound")
}

Expand Down

0 comments on commit c429276

Please sign in to comment.