Skip to content

Commit

Permalink
Manually specifies a dummy API key in test
Browse files Browse the repository at this point in the history
  • Loading branch information
fhats-stripe committed Nov 4, 2024
1 parent c66571a commit 09c3fcb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ func TestAliasedResourcesCallPrincipleAPI(t *testing.T) {
defer ts.Close()

apiBase := fmt.Sprintf("--api-base=%s", ts.URL)
_, err := executeCommand(rootCmd, apiBase, "invoice_line_items", "list", "in_123")
apiKey := "--api-key=rk_test_1234567890"

_, err := executeCommand(rootCmd, apiBase, apiKey, "invoice_line_items", "list", "in_123")
require.NoError(t, err)
_, err = executeCommand(rootCmd, apiBase, "line_items", "list", "in_123")
_, err = executeCommand(rootCmd, apiBase, apiKey, "line_items", "list", "in_123")
require.NoError(t, err)
}

Expand Down

0 comments on commit 09c3fcb

Please sign in to comment.