diff --git a/Conductor/Api/IIntegrationResourceApi.cs b/Conductor/Api/IIntegrationResourceApi.cs index b87c010..8131637 100644 --- a/Conductor/Api/IIntegrationResourceApi.cs +++ b/Conductor/Api/IIntegrationResourceApi.cs @@ -119,16 +119,6 @@ public interface IIntegrationResourceApi : IApiAccessor /// Integration Integration GetIntegrationProvider(string name); - /// - /// Get Integration provider definitions - /// - /// - /// - /// - /// Thrown when fails to make API call - /// List - List GetIntegrationProviderDefs(); - /// /// Get all Integrations Providers /// diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index e5e8f2b..e4875ec 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -382,7 +382,7 @@ public object Deserialize(RestResponse response, Type type) } catch (Exception e) { - throw new ApiException(500, e.Message); + throw new ApiException(500, e.Message, e); } } diff --git a/Tests/Api/IntegrationResourceApiTests.cs b/Tests/Api/IntegrationResourceApiTests.cs index e935065..9ccfa54 100644 --- a/Tests/Api/IntegrationResourceApiTests.cs +++ b/Tests/Api/IntegrationResourceApiTests.cs @@ -235,31 +235,6 @@ public async void DeleteAnIntegrationAsyncTest() Assert.Null(exception); _performCleanup = false; } - - /// - /// Test GetIntegrationProviderDefs - /// - [Fact] - public void GetIntegrationProviderDefs() - { - Setup(); - var response = _integrationResourceApi.GetIntegrationProviderDefs(); - AssertExtensions.AssertModelResponse>(response); - _performCleanup = true; - } - - /// - /// Test GetIntegrationProviderDefsAsync - /// - [Fact] - public async void GetIntegrationProviderDefsAsync() - { - Setup(); - var response = await _integrationResourceApi.GetIntegrationProviderDefsAsync(); - AssertExtensions.AssertModelResponse>(response); - _performCleanup = true; - } - /// /// Test DeleteIntegrationProvider /// diff --git a/Tests/Api/WorkflowResourceApiTest.cs b/Tests/Api/WorkflowResourceApiTest.cs index f8bc370..59b6806 100644 --- a/Tests/Api/WorkflowResourceApiTest.cs +++ b/Tests/Api/WorkflowResourceApiTest.cs @@ -272,13 +272,17 @@ public void TestWorkflowOperations() workflow = _workflowClient.GetWorkflow(workflowId, true); + System.Threading.Thread.Sleep(5000); + // There should be 3 tasks _testOutputHelper.WriteLine( $"Number of tasks in workflow is {workflow.Tasks.Count} and last task is {workflow.Tasks.Last().ReferenceTaskName}"); Assert.Equal(3, workflow.Tasks.Count); + _testOutputHelper.WriteLine("Searching for correlationId " + correlationId); // Search for workflows - var searchResults = _workflowClient.Search(start: 0, size: 100, freeText: "*", + var startTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds() * 1000; + var searchResults = _workflowClient.Search(start: 0, size: 10, freeText: "*", query: $"correlationId = '{correlationId}'"); _testOutputHelper.WriteLine( $"Found {searchResults.Results.Count} execution with correlation_id '{correlationId}'");