You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/09/12 12:28:15 UTC

(shardingsphere) branch master updated: Remove useless ShardingSphereProxyStandaloneContainer.withAgent() (#36543)

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 0b424832aec Remove useless ShardingSphereProxyStandaloneContainer.withAgent() (#36543)
0b424832aec is described below

commit 0b424832aeca0523092be765414b1e0656500785
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Sep 12 20:28:09 2025 +0800

    Remove useless ShardingSphereProxyStandaloneContainer.withAgent() (#36543)
---
 .../impl/ShardingSphereProxyStandaloneContainer.java       | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/adapter/impl/ShardingSphereProxyStandaloneContainer.java b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/adapter/impl/ShardingSphereProxyStandaloneContainer.java
index a4f0e115105..4ff7745ceea 100644
--- a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/adapter/impl/ShardingSphereProxyStandaloneContainer.java
+++ b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/adapter/impl/ShardingSphereProxyStandaloneContainer.java
@@ -36,8 +36,6 @@ import java.util.concurrent.atomic.AtomicReference;
  */
 public final class ShardingSphereProxyStandaloneContainer extends DockerITContainer implements AdapterContainer {
     
-    private static final String PROPERTY_AGENT_HOME = "AGENT_HOME";
-    
     private final DatabaseType databaseType;
     
     private final AdaptorContainerConfiguration config;
@@ -50,18 +48,6 @@ public final class ShardingSphereProxyStandaloneContainer extends DockerITContai
         this.config = config;
     }
     
-    /**
-     * Mount the agent into container.
-     *
-     * @param agentHome agent home
-     * @return self
-     */
-    public ShardingSphereProxyStandaloneContainer withAgent(final String agentHome) {
-        withEnv(PROPERTY_AGENT_HOME, ProxyContainerConstants.AGENT_HOME_IN_CONTAINER);
-        withFileSystemBind(agentHome, ProxyContainerConstants.AGENT_HOME_IN_CONTAINER, BindMode.READ_ONLY);
-        return this;
-    }
-    
     @Override
     protected void configure() {
         withExposedPorts(3307, 3308);