You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2019/04/22 19:26:53 UTC

[geode] branch develop updated: GEODE-6629: Add additional test assertions for disk store creation

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

jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new ca36754  GEODE-6629: Add additional test assertions for disk store creation
ca36754 is described below

commit ca3675433b12ad8ea65b332fc81f612b085511c4
Author: Jens Deppe <jd...@pivotal.io>
AuthorDate: Mon Apr 22 12:22:58 2019 -0700

    GEODE-6629: Add additional test assertions for disk store creation
    
    Authored-by: Jens Deppe <jd...@pivotal.io>
---
 .../client/CreateRegionWithDiskstoreAndSecurityDUnitTest.java    | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/geode-assembly/src/distributedTest/java/org/apache/geode/management/client/CreateRegionWithDiskstoreAndSecurityDUnitTest.java b/geode-assembly/src/distributedTest/java/org/apache/geode/management/client/CreateRegionWithDiskstoreAndSecurityDUnitTest.java
index 7a77124..7d672c9 100644
--- a/geode-assembly/src/distributedTest/java/org/apache/geode/management/client/CreateRegionWithDiskstoreAndSecurityDUnitTest.java
+++ b/geode-assembly/src/distributedTest/java/org/apache/geode/management/client/CreateRegionWithDiskstoreAndSecurityDUnitTest.java
@@ -57,6 +57,7 @@ public class CreateRegionWithDiskstoreAndSecurityDUnitTest {
     int locatorPort = locator.getPort();
     server = cluster.startServerVM(1,
         s -> s.withConnectionToLocator(locatorPort)
+            .withProperty("groups", "group-1")
             .withCredential("cluster", "cluster"));
 
     gfsh.secureConnectAndVerify(locator.getPort(), GfshCommandRule.PortType.locator,
@@ -117,9 +118,11 @@ public class CreateRegionWithDiskstoreAndSecurityDUnitTest {
     RegionConfig regionConfig = new RegionConfig();
     regionConfig.setName("REGION1");
     regionConfig.setType(RegionType.REPLICATE_PERSISTENT);
+    regionConfig.setGroup("group-1");
 
     RegionAttributesType attributes = new RegionAttributesType();
     attributes.setDiskStoreName("DISKSTORE");
+    attributes.setDiskSynchronous(false);
     regionConfig.setRegionAttributes(attributes);
 
     ClusterManagementService client =
@@ -127,6 +130,12 @@ public class CreateRegionWithDiskstoreAndSecurityDUnitTest {
             "data,cluster", "data,cluster");
     ClusterManagementResult result = client.create(regionConfig);
     assertThat(result.isSuccessful()).isTrue();
+
+    gfsh.executeAndAssertThat("describe disk-store --name=DISKSTORE --member=server-1")
+        .statusIsSuccess();
+
+    gfsh.executeAndAssertThat("describe region --name=REGION1").statusIsSuccess()
+        .hasTableSection().hasColumn("Value").contains("DISKSTORE");
   }
 
 }