This is an automated email from the ASF dual-hosted git repository.

terrymanu 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 d25b3bb0dd0 Remove unsupported native mode from MCP E2E (#39342)
d25b3bb0dd0 is described below

commit d25b3bb0dd022dacdb36a3227ac115f245b7c4af
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Aug 5 02:24:27 2026 +0800

    Remove unsupported native mode from MCP E2E (#39342)
---
 .../shardingsphere/test/e2e/mcp/env/MCPE2ECondition.java     | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git 
a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/env/MCPE2ECondition.java
 
b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/env/MCPE2ECondition.java
index bd39a0a7ff5..b2ee05c2c5d 100644
--- 
a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/env/MCPE2ECondition.java
+++ 
b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/env/MCPE2ECondition.java
@@ -21,6 +21,7 @@ import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
 import 
org.apache.shardingsphere.test.e2e.env.runtime.EnvironmentPropertiesLoader;
 
+import java.util.Collection;
 import java.util.Locale;
 import java.util.Properties;
 
@@ -36,16 +37,13 @@ public final class MCPE2ECondition {
      * @throws IllegalStateException when run type is unsupported
      */
     public static boolean isDockerEnabled() {
-        boolean result = false;
-        for (String each : EnvironmentPropertiesLoader.getListValue(PROPS, 
"e2e.run.type")) {
+        Collection<String> runTypes = 
EnvironmentPropertiesLoader.getListValue(PROPS, "e2e.run.type");
+        for (String each : runTypes) {
             String runType = each.toUpperCase(Locale.ENGLISH);
-            if (!"DOCKER".equals(runType) && !"NATIVE".equals(runType)) {
+            if (!"DOCKER".equals(runType)) {
                 throw new IllegalStateException(String.format("Unsupported MCP 
E2E run type `%s`.", each));
             }
-            if ("DOCKER".equals(runType)) {
-                result = true;
-            }
         }
-        return result;
+        return !runTypes.isEmpty();
     }
 }

Reply via email to