Skip to content

Commit 05b5683

Browse files
Fix tests
1 parent c9cb608 commit 05b5683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

databricks-sdk-java/src/test/java/com/databricks/sdk/core/oauth/ExternalBrowserCredentialsProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void clientAndConsentTest() throws IOException {
6464
assertNotNull(authUrl);
6565
assertTrue(authUrl.contains("response_type=code"));
6666
assertTrue(authUrl.contains("client_id=test-client-id"));
67-
assertTrue(authUrl.contains("redirect_uri=http://localhost:8080/callback"));
67+
assertTrue(authUrl.contains("redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fcallback"));
6868
assertTrue(authUrl.contains("scope=all-apis"));
6969
}
7070
}
@@ -112,7 +112,7 @@ void clientAndConsentTestWithCustomRedirectUrl() throws IOException {
112112
assertNotNull(authUrl);
113113
assertTrue(authUrl.contains("response_type=code"));
114114
assertTrue(authUrl.contains("client_id=test-client-id"));
115-
assertTrue(authUrl.contains("redirect_uri=http://localhost:8010"));
115+
assertTrue(authUrl.contains("redirect_uri=http%3A%2F%2Flocalhost%3A8010"));
116116
assertTrue(authUrl.contains("scope=sql"));
117117
}
118118
}

0 commit comments

Comments
 (0)