Skip to content

Commit

Permalink
Merge test container (#32871)
Browse files Browse the repository at this point in the history
* Merge ShardingSphereJdbcContainer.

* Merge ShardingSphereProxyContainer.

* Merge MySQLContainer.

* Merge ITContainers.
  • Loading branch information
iamhucong authored Sep 19, 2024
1 parent 14ce350 commit e58cf80
Show file tree
Hide file tree
Showing 25 changed files with 383 additions and 462 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@
/**
* ShardingSphere jdbc container.
*/
// TODO Merge test container: merge with org.apache.shardingsphere.test.e2e.env.container.atomic.adapter.impl.ShardingSphereJdbcContainer
public final class ShardingSphereJdbcContainer extends DockerITContainer {
public final class ShardingSphereJdbcAgentContainer extends DockerITContainer {

private static final String CONFIG_PATH_IN_CONTAINER = "/opt/shardingsphere-jdbc-app/";

private final String plugin;

private final Consumer<OutputFrame> consumer;

public ShardingSphereJdbcContainer(final String image, final String plugin, final Consumer<OutputFrame> consumer) {
super("jdbc", image);
public ShardingSphereJdbcAgentContainer(final String image, final String plugin, final Consumer<OutputFrame> consumer) {
super("jdbc-agent", image);
this.consumer = consumer;
this.plugin = plugin;
}
Expand All @@ -64,6 +63,6 @@ private Map<String, String> createResourceMappingForProxy() {

@Override
public String getAbbreviation() {
return "jdbc";
return "jdbc-agent";
}
}

This file was deleted.

Loading

0 comments on commit e58cf80

Please sign in to comment.