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 2024/09/18 01:49:00 UTC

(shardingsphere) branch master updated: Add more test cases on QualifiedDataSourceStatePersistService (#32915)

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 cd267ae3b7b Add more test cases on QualifiedDataSourceStatePersistService (#32915)
cd267ae3b7b is described below

commit cd267ae3b7b83f23f6e478707cbbb08ce0f61370
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Sep 18 09:48:53 2024 +0800

    Add more test cases on QualifiedDataSourceStatePersistService (#32915)
---
 .../persist/service/QualifiedDataSourceStatePersistServiceTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mode/core/src/test/java/org/apache/shardingsphere/mode/persist/service/QualifiedDataSourceStatePersistServiceTest.java b/mode/core/src/test/java/org/apache/shardingsphere/mode/persist/service/QualifiedDataSourceStatePersistServiceTest.java
index 3719093359e..d48f237a3cf 100644
--- a/mode/core/src/test/java/org/apache/shardingsphere/mode/persist/service/QualifiedDataSourceStatePersistServiceTest.java
+++ b/mode/core/src/test/java/org/apache/shardingsphere/mode/persist/service/QualifiedDataSourceStatePersistServiceTest.java
@@ -48,7 +48,7 @@ class QualifiedDataSourceStatePersistServiceTest {
     }
     
     @Test
-    void assertLoadStatus() {
+    void assertLoad() {
         when(repository.getChildrenKeys("/nodes/qualified_data_sources")).thenReturn(Arrays.asList("foo_db.foo_group.foo_ds", "bar_db.bar_group.bar_ds"));
         when(repository.query("/nodes/qualified_data_sources/foo_db.foo_group.foo_ds")).thenReturn("state: ENABLED");
         Map<String, QualifiedDataSourceState> actual = qualifiedDataSourceStatePersistService.load();
@@ -57,7 +57,7 @@ class QualifiedDataSourceStatePersistServiceTest {
     }
     
     @Test
-    void assertUpdateStatus() {
+    void assertUpdate() {
         qualifiedDataSourceStatePersistService.update("foo_db", "foo_group", "foo_ds", DataSourceState.ENABLED);
         verify(repository).persist("/nodes/qualified_data_sources/foo_db.foo_group.foo_ds", "state: ENABLED\n");
     }