Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
Updating tests to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumew committed Nov 4, 2019
1 parent b26c471 commit fc6f31c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/okta_auth_server/dependency.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource okta_auth_server test {
name = "testAcc_replace_with_uuid"
audiences = ["api://selfservice_client_1"]
name = "testAcc_replace_with_uuid"
audiences = ["api://selfservice_client_1"]
}

resource okta_auth_server test1 {
Expand Down
2 changes: 1 addition & 1 deletion examples/okta_auth_server/full_stack_with_client.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "okta_auth_server_policy_rule" "test" {

resource "okta_app_oauth" "test" {
status = "ACTIVE"
label = "test"
label = "testAcc_replace_with_uuid"
type = "web"
grant_types = ["implicit", "authorization_code"]
redirect_uris = ["https://localhost:8443/redirect_uri/"]
Expand Down
4 changes: 2 additions & 2 deletions okta/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func deleteTestApps(client *testClient) error {
warnings = append(warnings, warn)
}

_, err = client.oktaClient.Application.DeleteApplication(app.ID)
resp, err := client.oktaClient.Application.DeleteApplication(app.ID)

if err != nil {
if err != nil && is404(resp.StatusCode) {
warnings = append(warnings, warn)
}
}
Expand Down
5 changes: 2 additions & 3 deletions okta/resource_okta_app_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ func TestAccOktaAppUser_crud(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateIdFunc: func(s *terraform.State) (string, error) {
rs, ok := s.RootModule().Resources[resourceName]
if !ok {
Expand Down

0 comments on commit fc6f31c

Please # to comment.