summaryrefslogtreecommitdiffstats
path: root/openecomp-bdd/stepDefinitions/VSP_steps.js
diff options
context:
space:
mode:
authorayalaben <Ayala.Benzvi@Amdocs.Com>2018-02-18 10:03:22 +0200
committerayalaben <ayala.benzvi@amdocs.com>2018-02-18 10:03:22 +0200
commitaad2781298db9c48ef4be167709b905af39bf9e4 (patch)
tree76d1e2ea2c6827d8d31de7bc5faaded2a2cf62f6 /openecomp-bdd/stepDefinitions/VSP_steps.js
parent7866faac17505ef230f4e01c487a0b72621ee409 (diff)
Flow Tests - delete item and Toggle
Change-Id: I73ed5fdc13891b3ad56ab5c8f00083bf8f7d13f3 Issue-ID: SDC-1034 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'openecomp-bdd/stepDefinitions/VSP_steps.js')
-rw-r--r--openecomp-bdd/stepDefinitions/VSP_steps.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/openecomp-bdd/stepDefinitions/VSP_steps.js b/openecomp-bdd/stepDefinitions/VSP_steps.js
index b957e6f723..bed8921a3c 100644
--- a/openecomp-bdd/stepDefinitions/VSP_steps.js
+++ b/openecomp-bdd/stepDefinitions/VSP_steps.js
@@ -107,4 +107,15 @@ Then('I want to add a component', function () {
When('I want to get the package for this Item to path {string}', function (string, callback) {
let path = '/vendor-software-products/packages/' + this.context.item.id;
return [util.download(this.context, path, string, callback)];
+});
+
+
+/**
+ * @module VSP
+ * @exampleFile DeleteVSPDraft.feature
+ * @step I want to delete this VSP
+ **/
+Then('I want to delete this VSP', function() {
+ let path = '/vendor-software-products/' + this.context.item.id ;
+ return util.request(this.context, 'DELETE', path);
}); \ No newline at end of file