Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public abstract class BasePolarisMetaStoreManagerTest {

protected final MutableClock clock = MutableClock.of(Instant.now(), ZoneOffset.UTC);

private PolarisTestMetaStoreManager polarisTestMetaStoreManager;
protected PolarisTestMetaStoreManager polarisTestMetaStoreManager;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not add an accessible getter/setter instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it an issue for test code?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously this class is meant to be extended. Direct field access is generally harder to refactor later, IMHO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, the scope of this class is probably limited to Polaris' code inside this repo, so it's not a concern


@BeforeEach
public void setupPolarisMetaStoreManager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ public PolarisTestMetaStoreManager(
this.doRetry = false;
}

public PolarisCallContext polarisCallContext() {
return polarisCallContext;
}

public PolarisMetaStoreManager polarisMetaStoreManager() {
return polarisMetaStoreManager;
}

public void forceRetry() {
this.doRetry = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
@ExtendWith(PolarisIntegrationTestExtension.class)
public class PolarisRestCatalogMinIOIT extends PolarisRestCatalogIntegrationBase {

private static final String BUCKET_URI_PREFIX = "/minio-test-polaris";
private static final String MINIO_ACCESS_KEY = "test-ak-123-polaris";
private static final String MINIO_SECRET_KEY = "test-sk-123-polaris";
protected static final String BUCKET_URI_PREFIX = "/minio-test-polaris";
protected static final String MINIO_ACCESS_KEY = "test-ak-123-polaris";
protected static final String MINIO_SECRET_KEY = "test-sk-123-polaris";

public static class Profile implements QuarkusTestProfile {

Expand Down