Skip to content

Commit 9b7c054

Browse files
authored
Rename 00-common-init-authority.sql and 99-common-check-ready.sql (#36512)
* Rename 00-common-init-authority.sql and 99-common-check-ready.sql * Rename 00-common-init-authority.sql and 99-common-check-ready.sql
1 parent f035a0e commit 9b7c054

File tree

9 files changed

+4
-4
lines changed

9 files changed

+4
-4
lines changed

test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/storage/DockerStorageContainer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
@Getter
4545
public abstract class DockerStorageContainer extends DockerITContainer implements StorageContainer {
4646

47-
private static final String READY_USER = "ready_user";
47+
private static final Collection<String> TO_BE_MOUNTED_COMMON_SQL_FILES = Arrays.asList("00-common-init-authority.sql", "99-common-check-ready.sql");
4848

49-
private static final String READY_USER_PASSWORD = "Ready@123";
49+
private static final String CHECK_READY_USER = "ready_user";
5050

51-
private static final Collection<String> TO_BE_MOUNTED_COMMON_SQL_FILES = Arrays.asList("00-init-authority.sql", "99-be-ready.sql");
51+
private static final String CHECK_READY_PASSWORD = "Ready@123";
5252

5353
private final DatabaseType databaseType;
5454

@@ -67,7 +67,7 @@ protected void configure() {
6767
findToBeMountedCommonSQLFile(each).ifPresent(optional -> withClasspathResourceMapping(optional, "/docker-entrypoint-initdb.d/" + each, BindMode.READ_ONLY));
6868
}
6969
withExposedPorts(getExposedPort());
70-
setWaitStrategy(new JdbcConnectionWaitStrategy(() -> DriverManager.getConnection(getURL(), READY_USER, READY_USER_PASSWORD)));
70+
setWaitStrategy(new JdbcConnectionWaitStrategy(() -> DriverManager.getConnection(getURL(), CHECK_READY_USER, CHECK_READY_PASSWORD)));
7171
}
7272

7373
private Optional<String> findToBeMountedCommonSQLFile(final String toBeMountedSQLFile) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)