aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-bdd/stepDefinitions/General_Steps.js
diff options
context:
space:
mode:
authortalig <talig@amdocs.com>2018-07-15 15:41:31 +0300
committertalig <talig@amdocs.com>2018-07-15 15:41:31 +0300
commit39c01dd3ccb69f53d2e9350994e25f6e64412aa4 (patch)
tree35e083da4f89b54aa51c1188a36365096500dfdc /workflow-bdd/stepDefinitions/General_Steps.js
parentdfdaff5a207726a25a1625a4af88eaededd46a7c (diff)
Get and update workflow version state
Remove redundant controller interfaces, rename WorkflowVersionStatus to State Change-Id: I8ddc9cd656fc8bed607c68aa326c7fa7d2980116 Issue-ID: SDC-1503 Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'workflow-bdd/stepDefinitions/General_Steps.js')
-rw-r--r--workflow-bdd/stepDefinitions/General_Steps.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/workflow-bdd/stepDefinitions/General_Steps.js b/workflow-bdd/stepDefinitions/General_Steps.js
index 448c97f8..0550e415 100644
--- a/workflow-bdd/stepDefinitions/General_Steps.js
+++ b/workflow-bdd/stepDefinitions/General_Steps.js
@@ -52,11 +52,11 @@ Given('Response Data:', function (docString) {
/**
* @module ContextData
- * @description Copy a property from the response data to context Item/VLM/VSP data, example: vsp.componentId
+ * @description Copy a property from the response data to context Item data, example: item.componentId
* @step I want to save on the context for {string} property {string} with value {string}
**/
Then('I want to save on the context for {string} property {string} with value {string}', function(string, string1, string2) {
- assert.equal(_.includes(['VLM', 'VSP', 'Item'], string), true);
+ assert.equal(_.includes(['Item'], string), true);
let val = _.get(this.context.responseData, string2);
_.set(this.context, string1, val);
});
@@ -170,6 +170,17 @@ Then('I want the following to fail', function() {
/**
* @module ContextData
+ * @description Set this in order to check that the following Rest call will not have response code 200
+ * @exampleFile Example_Rest_Calls.feature
+ * @step I want the following to fail
+ **/
+Then('I want the following to fail with response status code {int}', function(int) {
+ this.context.shouldFail = true;
+ this.context.responseStatusCode = int;
+});
+
+/**
+ * @module ContextData
* @description Set this in order to check that the following Rest call will have the error code on the return data
* @exampleFile Example_VSP.feature
* @step I want the following to fail with error code {string}