-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
undelete: Migrate to pop_project_package_from_args()
INCOMPATIBLE CHANGE: It is no longer possible to specify multiple packages at once, because it was inconsistent with the rest of osc. Call osc in a cycle to undelete multiple packages instead.
- Loading branch information
Showing
2 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: `osc undelete` command | ||
|
||
|
||
# common steps for all scenarios | ||
Background: | ||
Given I set working directory to "{context.osc.temp}" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc undelete <project>/<package>` | ||
Given I execute osc with args "rdelete test:factory/test-pkgA -m 'why:delete'" | ||
When I execute osc with args "undelete test:factory/test-pkgA -m 'why:undelete'" | ||
Then the exit code is 0 | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc undelete <project>` | ||
Given I execute osc with args "rdelete test:factory --recursive -m 'why:delete'" | ||
When I execute osc with args "undelete test:factory -m 'why:undelete'" | ||
Then the exit code is 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters