Flow Tests - delete item and Toggle
[sdc.git] / openecomp-bdd / stepDefinitions / VSP_steps.js
index b957e6f..bed8921 100644 (file)
@@ -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