From 0f75bea8333e50a57df10d2248fce94a5a17b1a2 Mon Sep 17 00:00:00 2001 From: "katy.rotman" Date: Mon, 26 Feb 2018 11:48:50 +0200 Subject: adding flow tests for vlan tagging validation Issue-ID: SDC-994 Change-Id: I04c1fd0e10f36681b4a5752900d2e2be67579c4a Signed-off-by: katy.rotman --- openecomp-bdd/stepDefinitions/General_Steps.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openecomp-bdd/stepDefinitions') 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 @@ -84,6 +84,17 @@ Then('I want to set property {string} to value {string}', function(string, strin Then('I want to check property {string} for value {string}', function(string, string2) { assert.equal(_.get(this.context.responseData, string), string2); }); +/** + * @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) -- cgit 1.2.3-korg