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:25:46 UTC

[geode] branch WIPPY created (now ca36754)

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

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


      at ca36754  GEODE-6629: Add additional test assertions for disk store creation

This branch includes the following new commits:

     new ca36754  GEODE-6629: Add additional test assertions for disk store creation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[geode] 01/01: GEODE-6629: Add additional test assertions for disk store creation

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

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");
   }
 
 }