Skip to content

Commit

Permalink
Stabilize IT
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Apr 30, 2024
1 parent 57e1c79 commit 6770be9
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,6 @@ public void testCreateProvisionDeprovisionWorkflowWithFullAccess() throws Except
// Invoke status API with failure
ResponseException exception = expectThrows(ResponseException.class, () -> getWorkflowStatus(fullAccessClient(), workflowId, false));
assertEquals(RestStatus.NOT_FOUND.getStatus(), exception.getResponse().getStatusLine().getStatusCode());

// Recreate the template
response = createWorkflow(fullAccessClient(), template);
assertEquals(RestStatus.CREATED, TestHelpers.restStatus(response));

// Retrieve workflow ID
responseMap = entityAsMap(response);
String newWorkflowId = (String) responseMap.get(WORKFLOW_ID);

// Invoke status API
response = getWorkflowStatus(fullAccessClient(), newWorkflowId, false);
assertEquals(RestStatus.OK, TestHelpers.restStatus(response));

// Invoke delete API while state is NOT_STARTED
response = deleteWorkflow(fullAccessClient(), workflowId);
assertEquals(RestStatus.OK, TestHelpers.restStatus(response));

// Invoke status API with failure
exception = expectThrows(ResponseException.class, () -> getWorkflowStatus(fullAccessClient(), newWorkflowId, false));
assertEquals(RestStatus.NOT_FOUND.getStatus(), exception.getResponse().getStatusLine().getStatusCode());
}

public void testGetWorkflowStepWithFullAccess() throws Exception {
Expand Down

0 comments on commit 6770be9

Please sign in to comment.