Skip to content

Commit

Permalink
add workflow base uri
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Jun 19, 2023
1 parent 2f6622b commit a78a8ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ internal class AlertingPlugin : PainlessExtension, ActionPlugin, ScriptPlugin, R
@JvmField val OPEN_SEARCH_DASHBOARDS_USER_AGENT = "OpenSearch-Dashboards"
@JvmField val UI_METADATA_EXCLUDE = arrayOf("monitor.${Monitor.UI_METADATA_FIELD}")
@JvmField val MONITOR_BASE_URI = "/_plugins/_alerting/monitors"
@JvmField val WORKFLOW_BASE_URI = "/_plugins/_alerting/workflows"
@JvmField val DESTINATION_BASE_URI = "/_plugins/_alerting/destinations"
@JvmField val LEGACY_OPENDISTRO_MONITOR_BASE_URI = "/_opendistro/_alerting/monitors"
@JvmField val LEGACY_OPENDISTRO_DESTINATION_BASE_URI = "/_opendistro/_alerting/destinations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ class WorkflowRestApiIT : AlertingRestTestCase() {
assertNotNull("Workflow creation failed", workflowResponse)
assertNotNull(workflow)
assertNotEquals("response is missing Id", Monitor.NO_ID, workflowResponse.id)
assertTrue("incorrect version", workflowResponse.version > 0)

var workflowById = getWorkflow(workflowResponse.id)
assertNotNull(workflowById)
Expand Down

0 comments on commit a78a8ae

Please sign in to comment.