Skip to content

Commit

Permalink
Disable test for real sever
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Sep 23, 2024
1 parent 561d887 commit f13beac
Showing 1 changed file with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
package io.temporal.testserver.functional;

import static org.junit.Assert.*;
import static org.junit.Assume.assumeFalse;

import io.grpc.Status;
import io.grpc.StatusRuntimeException;
Expand Down Expand Up @@ -51,8 +52,25 @@ public void testDescribeNamespace() {
assertEquals(
RegisterTestNamespace.NAMESPACE, describeNamespaceResponse.getNamespaceInfo().getName());
assertTrue(describeNamespaceResponse.getNamespaceInfo().getId().length() > 0);
assertNotNull(describeNamespaceResponse.getNamespaceInfo().getCapabilities());
assertTrue(describeNamespaceResponse.getNamespaceInfo().getCapabilities().getEagerWorkflowStart());
}

@Test
public void testDescribeNamespaceCapabilities() {
assumeFalse(
"Real Server doesn't support namespace capabilities yet",
SDKTestWorkflowRule.useExternalService);

DescribeNamespaceResponse describeNamespaceResponse =
testWorkflowRule
.getWorkflowServiceStubs()
.blockingStub()
.describeNamespace(
DescribeNamespaceRequest.newBuilder()
.setNamespace(RegisterTestNamespace.NAMESPACE)
.build());

assertTrue(
describeNamespaceResponse.getNamespaceInfo().getCapabilities().getEagerWorkflowStart());
assertTrue(describeNamespaceResponse.getNamespaceInfo().getCapabilities().getSyncUpdate());
assertTrue(describeNamespaceResponse.getNamespaceInfo().getCapabilities().getAsyncUpdate());
}
Expand Down

0 comments on commit f13beac

Please sign in to comment.