Skip to content

Commit

Permalink
chore(tests) assert workspace creation succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Mar 22, 2022
1 parent 4dbe7d3 commit c1557f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions kong/endpoint_permission_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func TestRBACEndpointPermissionservice(T *testing.T) {

// Use new client in workspace context.
workspaced, err := NewTestClient(String(defaultBaseURL+"/endpoint-test-workspace"), nil)
assert.Nil(err)
role := &RBACRole{
Name: String("test-role-endpoint-perm"),
}
Expand Down
3 changes: 3 additions & 0 deletions kong/rbac_role_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func TestRBACRoleService(T *testing.T) {
assert.NotNil(createdWorkspace)

workspaced, err := NewTestClient(String(defaultBaseURL+"/rbac-role-test-workspace"), nil)
assert.Nil(err)

role := &RBACRole{
Name: String("roleA"),
Expand Down Expand Up @@ -84,6 +85,7 @@ func TestRBACRoleServiceList(T *testing.T) {
assert.NotNil(createdWorkspace)

workspaced, err := NewTestClient(String(defaultBaseURL+"/rbac-role-list-test-workspace"), nil)
assert.Nil(err)

roleA := &RBACRole{
Name: String("roleA"),
Expand Down Expand Up @@ -131,6 +133,7 @@ func TestRBACRoleListEndpoint(T *testing.T) {
assert.NotNil(createdWorkspace)

workspaced, err := NewTestClient(String(defaultBaseURL+"/rbac-role-list-endpoint-test-workspace"), nil)
assert.Nil(err)

// fixtures
roles := []*RBACRole{
Expand Down

0 comments on commit c1557f2

Please sign in to comment.