[ 
https://issues.apache.org/jira/browse/GEODE-4316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16330844#comment-16330844
 ] 

ASF GitHub Bot commented on GEODE-4316:
---------------------------------------

jinmeiliao commented on a change in pull request #1303: GEODE-4316: Additional 
function deploy tests
URL: https://github.com/apache/geode/pull/1303#discussion_r162418421
 
 

 ##########
 File path: 
geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/DeployWithGroupsDUnitTest.java
 ##########
 @@ -200,6 +199,67 @@ public void deployJarToAllServers() throws Exception {
     server2.invoke(() -> assertThatCanLoad(jarName1, class1));
   }
 
+  @Test
+  public void deployJarToAllServersWithRestart() throws Exception {
+    // Deploy a jar to all servers
+    gfshConnector.executeAndAssertThat("deploy --jar=" + 
jar1).statusIsSuccess();
+    String resultString = gfshConnector.getGfshOutput();
+
+    assertThat(resultString).contains(server1.getName());
+    assertThat(resultString).contains(server2.getName());
+    assertThat(resultString).contains(jarName1);
+
+    server1.invoke(() -> assertThatCanLoad(jarName1, class1));
+    server2.invoke(() -> assertThatCanLoad(jarName1, class1));
+
+    server1.getVM().bounce();
 
 Review comment:
   does bounce cleans the filesytem as well? can we use server1.stopVM(false)?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Add tests for jar deployment to check for server restarting
> -----------------------------------------------------------
>
>                 Key: GEODE-4316
>                 URL: https://issues.apache.org/jira/browse/GEODE-4316
>             Project: Geode
>          Issue Type: Improvement
>          Components: gfsh
>            Reporter: Jens Deppe
>            Assignee: Jens Deppe
>            Priority: Major
>              Labels: pull-request-available
>
> Check whether a function undeploy works correctly when a server is restarted



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to