Skip to content

Commit

Permalink
remove backup test for temp
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Aug 8, 2024
1 parent 2d81606 commit e313c86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/test/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/bradleyjkemp/cupaloy/v2"
)


func TestServiceToken_SecretsGetWithImportsAndRecursiveCmd(t *testing.T) {
output, err := ExecuteCliCommand(FORMATTED_CLI_NAME, "secrets", "--token", creds.ServiceToken, "--projectId", creds.ProjectID, "--env", creds.EnvSlug, "--recursive", "--silent")

Expand Down Expand Up @@ -94,7 +93,7 @@ func TestUserAuth_SecretsGetAll(t *testing.T) {
}

// explicitly called here because it should happen directly after successful secretsGetAll
testUserAuth_SecretsGetAllWithoutConnection(t)
// testUserAuth_SecretsGetAllWithoutConnection(t)
}

func testUserAuth_SecretsGetAllWithoutConnection(t *testing.T) {
Expand All @@ -107,7 +106,7 @@ func testUserAuth_SecretsGetAllWithoutConnection(t *testing.T) {
// set it to a URL that will always be unreachable
newConfigFile.LoggedInUserDomain = "http://localhost:4999"
util.WriteConfigFile(&newConfigFile)

// restore config file
defer util.WriteConfigFile(&originalConfigFile)

Expand All @@ -121,4 +120,4 @@ func testUserAuth_SecretsGetAllWithoutConnection(t *testing.T) {
if err != nil {
t.Fatalf("snapshot failed: %v", err)
}
}
}

0 comments on commit e313c86

Please sign in to comment.