diff options
Diffstat (limited to 'workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java')
-rw-r--r-- | workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java index 6c825f9d..9821d510 100644 --- a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java +++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java @@ -12,6 +12,7 @@ public class RestPath { private static final String WORKFLOWS_URL = "/wf/workflows"; private static final String WORKFLOW_URL_FORMATTER = WORKFLOWS_URL + "/%s"; + private static final String ARCHIVE_URL_FORMATTER = WORKFLOWS_URL + "/%s/archiving"; private static final String VERSIONS_URL_FORMATTER = WORKFLOWS_URL + "/%s/versions"; private static final String VERSION_URL_FORMATTER = WORKFLOWS_URL + "/%s/versions/%s"; private static final String SORT_QUERY_STRING_FORMATTER = SORT + "=%s"; @@ -25,15 +26,15 @@ public class RestPath { private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_OFFSET = WORKFLOWS_URL + "?" + LIMIT_QUERY_STRING_FORMATTER; - public static String getWorkflowsPathAllQueryParams(String sort, String limit, String offset){ + public static String getWorkflowsPathAllQueryParams(String sort, String limit, String offset) { return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_ALL, sort, limit, offset); } - public static String getWorkflowsPathNoSortAndLimit(String offset){ + public static String getWorkflowsPathNoSortAndLimit(String offset) { return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_LIMIT, offset); } - public static String getWorkflowsPathNoSortAndOffset(String limit){ + public static String getWorkflowsPathNoSortAndOffset(String limit) { return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_OFFSET, limit); } @@ -45,6 +46,10 @@ public class RestPath { return String.format(WORKFLOW_URL_FORMATTER, workflowId); } + public static String getArchiveWorkflowPath(String workflowId) { + return String.format(ARCHIVE_URL_FORMATTER, workflowId); + } + public static String getWorkflowVersions(String workflowId) { return String.format(VERSIONS_URL_FORMATTER, workflowId); } |