summaryrefslogtreecommitdiffstats
path: root/openecomp-bdd/stepDefinitions/General_Steps.js
diff options
context:
space:
mode:
authorkaty.rotman <katy.rotman@amdocs.com>2018-02-26 11:48:50 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-04 09:28:40 +0000
commit0f75bea8333e50a57df10d2248fce94a5a17b1a2 (patch)
tree06af36de055b0429d5240f2fc594962d8168df0f /openecomp-bdd/stepDefinitions/General_Steps.js
parenta370bbd083a9bcfb74f18f48d3b36be3fb4026c2 (diff)
adding flow tests for vlan tagging validation
Issue-ID: SDC-994 Change-Id: I04c1fd0e10f36681b4a5752900d2e2be67579c4a Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
Diffstat (limited to 'openecomp-bdd/stepDefinitions/General_Steps.js')
-rw-r--r--openecomp-bdd/stepDefinitions/General_Steps.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/openecomp-bdd/stepDefinitions/General_Steps.js b/openecomp-bdd/stepDefinitions/General_Steps.js
index 13c03f7848..b9ea72f78d 100644
--- a/openecomp-bdd/stepDefinitions/General_Steps.js
+++ b/openecomp-bdd/stepDefinitions/General_Steps.js
@@ -86,6 +86,17 @@ Then('I want to check property {string} for value {string}', function(string, st
});
/**
* @module ResponseData
+ * @description Will check the output data for a property and a value. property can be a path
+ * (example: results[0].id). Supports comparison to a long String by allowing a line break
+ * @exampleFile VirtualMachineInterfaceValidationHeatResourceMissingProperties.feature
+ * @step I want to check property {string} for value {string}
+ **/
+
+Then('I want to check property {string} for value:', function(string, docString) {
+ assert.equal(_.get(this.context.responseData, string), docString.trim());
+});
+/**
+ * @module ResponseData
* @description Will check the output data for a property and a integer. property can be a path (example: results[0].id)
* @exampleFile Example_ResponseData_CheckAndManipulation.feature
* @step I want to check property {string} for value {int}