-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from orkes-io/tests/api-clients
Integration test updates
- Loading branch information
Showing
5 changed files
with
169 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,36 @@ | |
*/ | ||
package io.orkes.conductor.client.util; | ||
|
||
import com.netflix.conductor.common.metadata.tasks.TaskDef; | ||
|
||
import io.orkes.conductor.client.model.TagObject; | ||
import io.orkes.conductor.client.model.TagString; | ||
|
||
public class Commons { | ||
public static String WORKFLOW_NAME = "test-sdk-java-workflow"; | ||
public static String TASK_NAME = "test-sdk-java-workflow"; | ||
public static String TASK_NAME = "test-sdk-java-task"; | ||
public static String OWNER_EMAIL = "[email protected]"; | ||
public static int WORKFLOW_VERSION = 1; | ||
|
||
public static TagObject getTagObject() { | ||
TagObject tagObject = new TagObject(); | ||
tagObject.setType(TagObject.TypeEnum.METADATA); | ||
tagObject.setKey("a"); | ||
tagObject.setValue("b"); | ||
return tagObject; | ||
} | ||
|
||
public static TagString getTagString() { | ||
TagString tagString = new TagString(); | ||
tagString.setType(TagString.TypeEnum.METADATA); | ||
tagString.setKey("a"); | ||
tagString.setValue("b"); | ||
return tagString; | ||
} | ||
|
||
public static TaskDef getTaskDef() { | ||
TaskDef taskDef = new TaskDef(); | ||
taskDef.setName(Commons.TASK_NAME); | ||
return taskDef; | ||
} | ||
} |