-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3bf942b
commit adc8337
Showing
8 changed files
with
13 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import ( | |
) | ||
|
||
type ClientImplV0 struct { | ||
AccountID string | ||
BaseClient | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ func TestCacheAccessTokenV0(t *testing.T) { | |
defer server.Close() | ||
prepareEnvVariablesForTest(t, server) | ||
var client = &ClientImplV0{ | ||
"", | ||
BaseClient{ClientID: "[email protected]", ClientSecret: "password", ApiEndpoint: server.URL, UserAgent: "userAgent"}, | ||
} | ||
client.accessTokenGetter = client.getAccessToken | ||
|
@@ -71,6 +72,7 @@ func TestRefreshTokenOn401V0(t *testing.T) { | |
defer server.Close() | ||
prepareEnvVariablesForTest(t, server) | ||
var client = &ClientImplV0{ | ||
"", | ||
BaseClient{ClientID: "[email protected]", ClientSecret: "password", ApiEndpoint: server.URL, UserAgent: "userAgent"}, | ||
} | ||
client.accessTokenGetter = client.getAccessToken | ||
|
@@ -108,6 +110,7 @@ func TestFetchTokenWhenExpiredV0(t *testing.T) { | |
defer server.Close() | ||
prepareEnvVariablesForTest(t, server) | ||
var client = &ClientImplV0{ | ||
"", | ||
BaseClient{ClientID: "[email protected]", ClientSecret: "password", ApiEndpoint: server.URL, UserAgent: "userAgent"}, | ||
} | ||
client.accessTokenGetter = client.getAccessToken | ||
|
@@ -147,6 +150,7 @@ func TestUserAgentV0(t *testing.T) { | |
defer server.Close() | ||
prepareEnvVariablesForTest(t, server) | ||
var client = &ClientImplV0{ | ||
"", | ||
BaseClient{ClientID: "[email protected]", ClientSecret: "password", ApiEndpoint: server.URL, UserAgent: userAgentValue}, | ||
} | ||
client.accessTokenGetter = client.getAccessToken | ||
|
@@ -160,6 +164,7 @@ func TestUserAgentV0(t *testing.T) { | |
|
||
func clientFactoryV0(apiEndpoint string) Client { | ||
var client = &ClientImplV0{ | ||
"", | ||
BaseClient{ClientID: "[email protected]", ClientSecret: "password", ApiEndpoint: apiEndpoint}, | ||
} | ||
client.accessTokenGetter = client.getAccessToken | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters