File tree Expand file tree Collapse file tree 5 files changed +13
-21
lines changed
main/java/com/databricks/sdk/core
test/java/com/databricks/sdk/integration Expand file tree Collapse file tree 5 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ private OpenIDConnectEndpoints fetchDefaultOidcEndpoints() throws IOException {
798798 }
799799
800800 if (isAzure () && getAzureClientId () != null ) {
801- ApiClient apiClient =
801+ ApiClient apiClient =
802802 new ApiClient .Builder ()
803803 .withHttpClient (getHttpClient ())
804804 .withGetHostFunc (v -> getHost ())
Original file line number Diff line number Diff line change 44import com .databricks .sdk .core .oauth .OpenIDConnectEndpoints ;
55import com .databricks .sdk .integration .framework .EnvContext ;
66import com .databricks .sdk .integration .framework .EnvTest ;
7-
87import java .io .IOException ;
98import org .junit .jupiter .api .Test ;
109import org .junit .jupiter .api .extension .ExtendWith ;
1110
12-
1311@ EnvContext ("account" )
1412@ ExtendWith (EnvTest .class )
1513public class OidcAccountEndpointIT {
@@ -22,10 +20,12 @@ void lists(AccountClient a) throws IOException {
2220 assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/v1/authorize" );
2321 assert endpoints .getTokenEndpoint ().equals (host + "/oidc/v1/token" );
2422 } else {
25- assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/accounts/" + accountId + "/v1/authorize" );
26- assert endpoints .getTokenEndpoint ().equals (host + "/oidc/accounts/" + accountId + "/v1/token" );
23+ assert endpoints
24+ .getAuthorizationEndpoint ()
25+ .equals (host + "/oidc/accounts/" + accountId + "/v1/authorize" );
26+ assert endpoints
27+ .getTokenEndpoint ()
28+ .equals (host + "/oidc/accounts/" + accountId + "/v1/token" );
2729 }
2830 }
29-
30-
3131}
Original file line number Diff line number Diff line change 44import com .databricks .sdk .core .oauth .OpenIDConnectEndpoints ;
55import com .databricks .sdk .integration .framework .EnvContext ;
66import com .databricks .sdk .integration .framework .EnvTest ;
7-
87import java .io .IOException ;
98import org .junit .jupiter .api .Test ;
109import org .junit .jupiter .api .extension .ExtendWith ;
1110
12-
1311@ EnvContext ("ucacct" )
1412@ ExtendWith (EnvTest .class )
1513public class OidcUcAccountEndpointIT {
@@ -22,10 +20,12 @@ void lists(AccountClient a) throws IOException {
2220 assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/v1/authorize" );
2321 assert endpoints .getTokenEndpoint ().equals (host + "/oidc/v1/token" );
2422 } else {
25- assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/accounts/" + accountId + "/v1/authorize" );
26- assert endpoints .getTokenEndpoint ().equals (host + "/oidc/accounts/" + accountId + "/v1/token" );
23+ assert endpoints
24+ .getAuthorizationEndpoint ()
25+ .equals (host + "/oidc/accounts/" + accountId + "/v1/authorize" );
26+ assert endpoints
27+ .getTokenEndpoint ()
28+ .equals (host + "/oidc/accounts/" + accountId + "/v1/token" );
2729 }
2830 }
29-
30-
3131}
Original file line number Diff line number Diff line change 44import com .databricks .sdk .core .oauth .OpenIDConnectEndpoints ;
55import com .databricks .sdk .integration .framework .EnvContext ;
66import com .databricks .sdk .integration .framework .EnvTest ;
7-
87import java .io .IOException ;
98import org .junit .jupiter .api .Test ;
109import org .junit .jupiter .api .extension .ExtendWith ;
1110
12-
1311@ EnvContext ("ucws" )
1412@ ExtendWith (EnvTest .class )
1513public class OidcUcWorkspaceEndpointIT {
@@ -20,6 +18,4 @@ void lists(WorkspaceClient w) throws IOException {
2018 assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/v1/authorize" );
2119 assert endpoints .getTokenEndpoint ().equals (host + "/oidc/v1/token" );
2220 }
23-
24-
2521}
Original file line number Diff line number Diff line change 44import com .databricks .sdk .core .oauth .OpenIDConnectEndpoints ;
55import com .databricks .sdk .integration .framework .EnvContext ;
66import com .databricks .sdk .integration .framework .EnvTest ;
7-
87import java .io .IOException ;
98import org .junit .jupiter .api .Test ;
109import org .junit .jupiter .api .extension .ExtendWith ;
1110
12-
1311@ EnvContext ("workspace" )
1412@ ExtendWith (EnvTest .class )
1513public class OidcWorkspaceEndpointIT {
@@ -20,6 +18,4 @@ void lists(WorkspaceClient w) throws IOException {
2018 assert endpoints .getAuthorizationEndpoint ().equals (host + "/oidc/v1/authorize" );
2119 assert endpoints .getTokenEndpoint ().equals (host + "/oidc/v1/token" );
2220 }
23-
24-
2521}
You can’t perform that action at this time.
0 commit comments