This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 7760193b80c Refactor ShardingSphereProxyClusterContainer (#36637)
7760193b80c is described below
commit 7760193b80ca8ae2fc0c6e9d78d6753aa14a42ec
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Sep 19 19:56:10 2025 +0800
Refactor ShardingSphereProxyClusterContainer (#36637)
* Remove AdapterType.PROXY_RANDOM
* Refactor ShardingSphereProxyClusterContainer
---
.../adapter/impl/ShardingSphereProxyClusterContainer.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/adapter/impl/ShardingSphereProxyClusterContainer.java
b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/adapter/impl/ShardingSphereProxyClusterContainer.java
index 2691304a19f..d43963d7316 100644
---
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/adapter/impl/ShardingSphereProxyClusterContainer.java
+++
b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/adapter/impl/ShardingSphereProxyClusterContainer.java
@@ -18,15 +18,14 @@
package org.apache.shardingsphere.test.e2e.env.container.adapter.impl;
import com.google.common.base.Strings;
-import lombok.Setter;
import
org.apache.shardingsphere.database.connector.core.spi.DatabaseTypedSPILoader;
import org.apache.shardingsphere.database.connector.core.type.DatabaseType;
import org.apache.shardingsphere.test.e2e.env.container.DockerITContainer;
import
org.apache.shardingsphere.test.e2e.env.container.adapter.AdapterContainer;
import
org.apache.shardingsphere.test.e2e.env.container.adapter.config.AdaptorContainerConfiguration;
import
org.apache.shardingsphere.test.e2e.env.container.constants.ProxyContainerConstants;
-import
org.apache.shardingsphere.test.e2e.env.container.util.StorageContainerUtils;
import
org.apache.shardingsphere.test.e2e.env.container.util.JdbcConnectCheckingWaitStrategy;
+import
org.apache.shardingsphere.test.e2e.env.container.util.StorageContainerUtils;
import
org.apache.shardingsphere.test.e2e.env.runtime.datasource.DataSourceEnvironment;
import javax.sql.DataSource;
@@ -46,9 +45,6 @@ public final class ShardingSphereProxyClusterContainer
extends DockerITContainer
private final AtomicReference<DataSource> targetDataSourceProvider = new
AtomicReference<>();
- @Setter
- private String abbreviation =
ProxyContainerConstants.PROXY_CONTAINER_ABBREVIATION;
-
public ShardingSphereProxyClusterContainer(final DatabaseType
databaseType, final AdaptorContainerConfiguration config) {
super(ProxyContainerConstants.PROXY_CONTAINER_NAME_PREFIX,
config.getAdapterContainerImage());
this.config = config;
@@ -83,6 +79,6 @@ public final class ShardingSphereProxyClusterContainer
extends DockerITContainer
@Override
public String getAbbreviation() {
- return abbreviation;
+ return ProxyContainerConstants.PROXY_CONTAINER_ABBREVIATION;
}
}