File tree 2 files changed +3
-3
lines changed
integration-tests/src/main/java/org/apache/polaris/service/it
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public String obtainToken(PrincipalWithCredentials principal) {
115
115
116
116
/** Requests an access token from the Polaris server for the given {@link ClientCredentials}. */
117
117
public String obtainToken (ClientCredentials credentials ) {
118
- return polarisServerManager ().accessManager ().obtainAccessToken (endpoints , credentials );
118
+ return polarisServerManager ().accessManager (client ).obtainAccessToken (endpoints , credentials );
119
119
}
120
120
121
121
private boolean ownedName (String name ) {
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ public interface PolarisServerManager {
51
51
*/
52
52
Server serverForContext (ExtensionContext context );
53
53
54
- default PolarisAccessManager accessManager () {
55
- return new IcebergTokenAccessManager (createClient () );
54
+ default PolarisAccessManager accessManager (Client client ) {
55
+ return new IcebergTokenAccessManager (client );
56
56
}
57
57
58
58
/** Create a new HTTP client for accessing the server targeted by tests. */
You can’t perform that action at this time.
0 commit comments