Skip to content

Commit

Permalink
testing synchronized it tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Jan 24, 2024
1 parent a9219eb commit cef912d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

public class FlowFrameworkRestApiIT extends FlowFrameworkRestTestCase {

public void testSearchWorkflows() throws Exception {
public synchronized void testSearchWorkflows() throws Exception {

// Create a Workflow that has a credential 12345
Template template = TestHelpers.createTemplateFromFile("createconnector-registerremotemodel-deploymodel.json");
Expand Down Expand Up @@ -68,7 +68,7 @@ public void testSearchWorkflows() throws Exception {
}
}

public void testFailedUpdateWorkflow() throws Exception {
public synchronized void testFailedUpdateWorkflow() throws Exception {
Template templateCreation = TestHelpers.createTemplateFromFile("createconnector-registerremotemodel-deploymodel.json");
Response responseCreate = createWorkflow(client(), templateCreation);
assertEquals(RestStatus.CREATED, TestHelpers.restStatus(responseCreate));
Expand Down Expand Up @@ -104,7 +104,7 @@ public void testFailedUpdateWorkflow() throws Exception {

}

public void testCreateAndProvisionLocalModelWorkflow() throws Exception {
public synchronized void testCreateAndProvisionLocalModelWorkflow() throws Exception {
// Using a 1 step template to register a local model and deploy model
Template template = TestHelpers.createTemplateFromFile("register-deploylocalsparseencodingmodel.json");

Expand Down Expand Up @@ -171,7 +171,7 @@ public void testCreateAndProvisionLocalModelWorkflow() throws Exception {
assertNotNull(resourcesCreated.get(1).resourceId());
}

public void testCreateAndProvisionCyclicalTemplate() throws Exception {
public synchronized void testCreateAndProvisionCyclicalTemplate() throws Exception {

// Using a 3 step template to create a connector, register remote model and deploy model
Template template = TestHelpers.createTemplateFromFile("createconnector-registerremotemodel-deploymodel.json");
Expand Down Expand Up @@ -202,7 +202,7 @@ public void testCreateAndProvisionCyclicalTemplate() throws Exception {
assertTrue(exception.getMessage().contains("workflow_step_3->workflow_step_2"));
}

public void testCreateAndProvisionRemoteModelWorkflow() throws Exception {
public synchronized void testCreateAndProvisionRemoteModelWorkflow() throws Exception {

// Using a 3 step template to create a connector, register remote model and deploy model
Template template = TestHelpers.createTemplateFromFile("createconnector-registerremotemodel-deploymodel.json");
Expand Down Expand Up @@ -239,7 +239,7 @@ public void testCreateAndProvisionRemoteModelWorkflow() throws Exception {
assertNotNull(resourcesCreated.get(2).resourceId());
}

public void testCreateAndProvisionAgentFrameworkWorkflow() throws Exception {
public synchronized void testCreateAndProvisionAgentFrameworkWorkflow() throws Exception {
Template template = TestHelpers.createTemplateFromFile("agent-framework.json");

// Hit Create Workflow API to create agent-framework template, with template validation check and provision parameter
Expand Down

0 comments on commit cef912d

Please sign in to comment.