Skip to content

Commit

Permalink
introduce default value for api_server
Browse files Browse the repository at this point in the history
  • Loading branch information
dcreado committed May 11, 2022
1 parent 1f4fd8c commit 42f8085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func createTestClient() api.AuthleteApi {
so_key := os.Getenv("AUTHLETE_SO_KEY")
so_secret := os.Getenv("AUTHLETE_SO_SECRET")
cnf := conf.AuthleteSimpleConfiguration{}
cnf.SetBaseUrl(os.Getenv("AUTHLETE_API_SERVER"))
api_server := os.Getenv("AUTHLETE_API_SERVER")
if api_server == "" {
api_server = "https://api.authlete.com"
}
cnf.SetBaseUrl(api_server)
cnf.SetServiceOwnerApiKey(so_key)
cnf.SetServiceOwnerApiSecret(so_secret)

Expand Down

0 comments on commit 42f8085

Please sign in to comment.