Skip to content

Commit

Permalink
reverted to original code
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Jan 24, 2024
1 parent 56139b0 commit 07ca1be
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions pkg/cybr/api/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,6 @@ func TestChangeAccountCredentialsImmediateSuccess(t *testing.T) {
}
}

func TestChangeAccountCredentialsSetNextSuccess(t *testing.T) {
client, err := defaultPASAPIClient(t)

err = client.ChangeAccountCredentials(accountID, false, "set", "Cyberark123!")
if err != nil {
t.Errorf("Failed to get account password. %s", err)
}
}

func TestChangeAccountCredentialsVaultOnlySuccess(t *testing.T) {
client, err := defaultPASAPIClient(t)

err = client.ChangeAccountCredentials(accountID, false, "vault", "Cyberark123!")
if err != nil {
t.Errorf("Failed to get account password. %s", err)
}
}

func TestChangeAccountCredentialsImmediateInvalidAccount(t *testing.T) {
client, err := defaultPASAPIClient(t)

Expand All @@ -216,24 +198,6 @@ func TestChangeAccountCredentialsImmediateInvalidAccount(t *testing.T) {
}
}

func TestChangeAccountCredentialsSetNextInvalidAccount(t *testing.T) {
client, err := defaultPASAPIClient(t)

err = client.ChangeAccountCredentials(invalidAccountID, false, "set", "Cyberark123!")
if err == nil {
t.Errorf("Set account for setnextpassword but it should not exist")
}
}

func TestChangeAccountCredentialsVaultOnlyInvalidAccount(t *testing.T) {
client, err := defaultPASAPIClient(t)

err = client.ChangeAccountCredentials(invalidAccountID, false, "vault", "Cyberark1234!")
if err == nil {
t.Errorf("Set account for update but it should not exist")
}
}

func TestReconileAccountCredentialsSuccess(t *testing.T) {
client, err := defaultPASAPIClient(t)

Expand Down

0 comments on commit 07ca1be

Please sign in to comment.