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 @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -83,6 +79,6 @@ public DataSource getTargetDataSource(final String serverLists) {

@Override
public String getAbbreviation() {
return abbreviation;
return ProxyContainerConstants.PROXY_CONTAINER_ABBREVIATION;
}
}
2 changes: 1 addition & 1 deletion test/e2e/sql/src/test/resources/env/it-env.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ it.scenarios=db,tbl,readwrite_splitting,encrypt,shadow,dbtbl_with_readwrite_spli
# it.cluster.env.type=DOCKER,NATIVE
it.cluster.env.type=DOCKER

# it.cluster.adapters=jdbc,proxy,proxy_random
# it.cluster.adapters=jdbc,proxy
it.cluster.adapters=proxy

# it.cluster.databases=MySQL,PostgreSQL,openGauss,Hive
Expand Down