@@ -315,6 +315,34 @@ func (ts *IntegrationTestSuite) TestConsistentQuery() {
315315 var queryResult string
316316 ts .NoError (value .QueryResult .Get (& queryResult ))
317317 ts .Equal ("signal-input" , queryResult )
318+
319+ // Test DescribeWorkflowExecutionWithOptions with QueryConsistencyLevel
320+ descResp , err := ts .libClient .DescribeWorkflowExecutionWithOptions (ctx , & client.DescribeWorkflowExecutionWithOptionsRequest {
321+ WorkflowID : "test-consistent-query" ,
322+ RunID : run .GetRunID (),
323+ QueryConsistencyLevel : shared .QueryConsistencyLevelStrong .Ptr (),
324+ })
325+ ts .Nil (err )
326+ ts .NotNil (descResp )
327+ ts .NotNil (descResp .WorkflowExecutionInfo )
328+ ts .Equal ("test-consistent-query" , descResp .WorkflowExecutionInfo .GetExecution ().GetWorkflowId ())
329+ ts .Equal (run .GetRunID (), descResp .WorkflowExecutionInfo .GetExecution ().GetRunId ())
330+
331+ // Test GetWorkflowHistoryWithOptions with QueryConsistencyLevel
332+ histIter , err := ts .libClient .GetWorkflowHistoryWithOptions (ctx , & client.GetWorkflowHistoryWithOptionsRequest {
333+ WorkflowID : "test-consistent-query" ,
334+ RunID : run .GetRunID (),
335+ IsLongPoll : false ,
336+ FilterType : shared .HistoryEventFilterTypeAllEvent ,
337+ QueryConsistencyLevel : shared .QueryConsistencyLevelStrong .Ptr (),
338+ })
339+ ts .Nil (err )
340+ ts .NotNil (histIter )
341+ ts .True (histIter .HasNext ())
342+ firstEvent , err := histIter .Next ()
343+ ts .Nil (err )
344+ ts .NotNil (firstEvent )
345+ ts .Equal (shared .EventTypeWorkflowExecutionStarted , firstEvent .GetEventType ())
318346}
319347
320348func (ts * IntegrationTestSuite ) TestWorkflowIDReuseRejectDuplicate () {
0 commit comments