Skip to content

Commit cae0632

Browse files
committed
fixed integration tests
1 parent 4159327 commit cae0632

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

runtime/service/src/intTest/java/org/apache/polaris/service/it/RestCatalogMinIOSpecialIT.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
import org.apache.iceberg.io.PositionOutputStream;
5050
import org.apache.iceberg.rest.RESTCatalog;
5151
import org.apache.iceberg.rest.auth.OAuth2Properties;
52-
import org.apache.iceberg.rest.credentials.Credential;
5352
import org.apache.iceberg.rest.responses.LoadTableResponse;
5453
import org.apache.iceberg.types.Types;
5554
import org.apache.polaris.core.admin.model.AwsStorageConfigInfo;
@@ -268,16 +267,12 @@ public LoadTableResponse doTestCreateTable(RESTCatalog restCatalog) throws IOExc
268267

269268
LoadTableResponse loadTableResponse =
270269
catalogApi.loadTableWithAccessDelegation(catalogName, id, "ALL");
271-
assertThat(loadTableResponse.config()).containsKey("s3.endpoint");
272-
assertThat(loadTableResponse.credentials().stream().map(Credential::config))
273-
.allSatisfy(
274-
c ->
275-
assertThat(c)
276-
.containsEntry(
277-
AwsClientProperties.REFRESH_CREDENTIALS_ENABLED, Boolean.TRUE.toString())
278-
.containsEntry(
279-
AwsClientProperties.REFRESH_CREDENTIALS_ENDPOINT,
280-
"v1/" + catalogName + "/namespaces/test-ns/tables/t1/credentials"));
270+
assertThat(loadTableResponse.config())
271+
.containsKey("s3.endpoint")
272+
.containsEntry(AwsClientProperties.REFRESH_CREDENTIALS_ENABLED, Boolean.TRUE.toString())
273+
.containsEntry(
274+
AwsClientProperties.REFRESH_CREDENTIALS_ENDPOINT,
275+
"v1/" + catalogName + "/namespaces/test-ns/tables/t1/credentials");
281276

282277
restCatalog.dropTable(id);
283278
assertThat(restCatalog.tableExists(id)).isFalse();

0 commit comments

Comments
 (0)