File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
main/java/io/temporal/internal/testservice
test/java/io/temporal/testserver/functional Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1362,6 +1362,11 @@ public void describeNamespace(
1362
1362
.setName (request .getNamespace ())
1363
1363
.setState (NamespaceState .NAMESPACE_STATE_REGISTERED )
1364
1364
.setId (namespaceId )
1365
+ .setCapabilities (
1366
+ NamespaceInfo .Capabilities .newBuilder ()
1367
+ .setEagerWorkflowStart (true )
1368
+ .setAsyncUpdate (true )
1369
+ .setSyncUpdate (true ))
1365
1370
.build ())
1366
1371
.build ();
1367
1372
responseObserver .onNext (result );
Original file line number Diff line number Diff line change 21
21
package io .temporal .testserver .functional ;
22
22
23
23
import static org .junit .Assert .*;
24
+ import static org .junit .Assume .assumeFalse ;
24
25
25
26
import io .grpc .Status ;
26
27
import io .grpc .StatusRuntimeException ;
@@ -53,6 +54,27 @@ public void testDescribeNamespace() {
53
54
assertTrue (describeNamespaceResponse .getNamespaceInfo ().getId ().length () > 0 );
54
55
}
55
56
57
+ @ Test
58
+ public void testDescribeNamespaceCapabilities () {
59
+ assumeFalse (
60
+ "Real Server doesn't support namespace capabilities yet" ,
61
+ SDKTestWorkflowRule .useExternalService );
62
+
63
+ DescribeNamespaceResponse describeNamespaceResponse =
64
+ testWorkflowRule
65
+ .getWorkflowServiceStubs ()
66
+ .blockingStub ()
67
+ .describeNamespace (
68
+ DescribeNamespaceRequest .newBuilder ()
69
+ .setNamespace (RegisterTestNamespace .NAMESPACE )
70
+ .build ());
71
+
72
+ assertTrue (
73
+ describeNamespaceResponse .getNamespaceInfo ().getCapabilities ().getEagerWorkflowStart ());
74
+ assertTrue (describeNamespaceResponse .getNamespaceInfo ().getCapabilities ().getSyncUpdate ());
75
+ assertTrue (describeNamespaceResponse .getNamespaceInfo ().getCapabilities ().getAsyncUpdate ());
76
+ }
77
+
56
78
@ Test
57
79
public void noNamespaceSet () {
58
80
StatusRuntimeException ex =
You can’t perform that action at this time.
0 commit comments