From 705fc2b672d5802696074be94b446a89d228b94d Mon Sep 17 00:00:00 2001 From: ayalaben Date: Thu, 15 Mar 2018 15:59:25 +0200 Subject: Archive Item Change-Id: Idd5eedc3b0ca9e3cc72f7de9fd432cdbbf77631d Issue-ID: SDC-1086 Signed-off-by: ayalaben --- openecomp-bdd/stepDefinitions/Item_steps.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'openecomp-bdd/stepDefinitions/Item_steps.js') diff --git a/openecomp-bdd/stepDefinitions/Item_steps.js b/openecomp-bdd/stepDefinitions/Item_steps.js index 165df6ca30..3ff7f20f73 100644 --- a/openecomp-bdd/stepDefinitions/Item_steps.js +++ b/openecomp-bdd/stepDefinitions/Item_steps.js @@ -65,3 +65,27 @@ Then('I want to revert this Item to the revision with the value from saved prope return util.request(this.context, 'PUT', path, inputData); }); + +/** + * @module Item + * @exampleFile ArchiveItem.feature + * @step I want to archive this item + **/ +Then('I want to archive this item', function() { + let path = '/items/' + this.context.item.id + '/actions' + let inputData = {action: 'ARCHIVE'}; + return util.request(this.context, 'PUT', path, inputData); +}); + + +/** + * @module Item + * @exampleFile ArchiveItem.feature + * @step I want to restore this item + **/ +Then('I want to restore this item', function() { + let path = '/items/' + this.context.item.id + '/actions' + let inputData = {action: 'RESTORE'}; + return util.request(this.context, 'PUT', path, inputData); +}); + -- cgit 1.2.3-korg