diff options
author | ayalaben <ayala.benzvi@amdocs.com> | 2018-03-15 15:59:25 +0200 |
---|---|---|
committer | ayalaben <ayala.benzvi@amdocs.com> | 2018-03-19 10:45:48 +0200 |
commit | 705fc2b672d5802696074be94b446a89d228b94d (patch) | |
tree | 135b0d30b36eaf0180314d68531186648ac29882 /openecomp-bdd/stepDefinitions/Item_steps.js | |
parent | 3c24190cca30ee77c8c81d1738d7d5cbf454d647 (diff) |
Archive Item
Change-Id: Idd5eedc3b0ca9e3cc72f7de9fd432cdbbf77631d
Issue-ID: SDC-1086
Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'openecomp-bdd/stepDefinitions/Item_steps.js')
-rw-r--r-- | openecomp-bdd/stepDefinitions/Item_steps.js | 24 |
1 files changed, 24 insertions, 0 deletions
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); +}); + |