Skip to content

Commit

Permalink
SCALRCORE-20549 > Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Vang committed Mar 28, 2022
1 parent 7e94d2f commit 4e6e613
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ func TestAccountRead(t *testing.T) {
_, err := client.Accounts.Read(ctx, accId)
assert.Equal(
t,
ErrResourceNotFound{
Message: fmt.Sprintf("Clients with ID '%s' not found or user unauthorized", accId),
}.Error(),
fmt.Sprintf("Clients with ID '%s' not found or user unauthorized", accId),
err.Error(),
)
})
Expand Down
4 changes: 2 additions & 2 deletions agent_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestAgentPoolsCreate(t *testing.T) {
assert.Equal(
t,
ResourceNotFoundError{
Message: fmt.Sprintf("Clients with ID '%s' not found or user unauthorized", accountId),
Message: fmt.Sprintf("Invalid Relationship\n\nAccount with ID '%s' not found or user unauthorized", accountId),
}.Error(),
err.Error(),
)
Expand All @@ -189,7 +189,7 @@ func TestAgentPoolsCreate(t *testing.T) {
assert.Equal(
t,
ResourceNotFoundError{
Message: fmt.Sprintf("Environment with ID '%s' not found or user unauthorized", envID),
Message: fmt.Sprintf("Invalid Relationship\n\nEnvironment with ID '%s' not found or user unauthorized", envID),
}.Error(),
err.Error(),
)
Expand Down
2 changes: 1 addition & 1 deletion module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestModulesCreate(t *testing.T) {
})
assert.Nil(t, w)
assert.EqualError(t, err, ResourceNotFoundError{
Message: fmt.Sprintf("VcsProvider with ID '%s' not found or user unauthorized", badIdentifier),
Message: fmt.Sprintf("Invalid Relationship\n\nVcsProvider with ID '%s' not found or user unauthorized", badIdentifier),
}.Error())
})

Expand Down
2 changes: 1 addition & 1 deletion role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func TestRolesCreate(t *testing.T) {
assert.Equal(
t,
ResourceNotFoundError{
Message: fmt.Sprintf("Clients with ID '%s' not found or user unauthorized", accountId),
Message: fmt.Sprintf("Invalid Relationship\n\nAccount with ID '%s' not found or user unauthorized", accountId),
}.Error(),
err.Error(),
)
Expand Down
2 changes: 1 addition & 1 deletion workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func TestWorkspacesCreate(t *testing.T) {
assert.Equal(
t,
ResourceNotFoundError{
Message: fmt.Sprintf("Environment with ID '%s' not found or user unauthorized", badIdentifier),
Message: fmt.Sprintf("Invalid Relationship\n\nEnvironment with ID '%s' not found or user unauthorized", badIdentifier),
}.Error(),
err.Error(),
)
Expand Down

0 comments on commit 4e6e613

Please sign in to comment.