2023-01-02 15:49:58 +01:00
|
|
|
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>`
|
2024-04-12 16:49:49 +02:00
|
|
|
Given I execute osc with args "rdelete test:factory:update --recursive -m 'why:delete'"
|
|
|
|
And the exit code is 0
|
|
|
|
When I execute osc with args "undelete test:factory:update -m 'why:undelete'"
|
2023-01-02 15:49:58 +01:00
|
|
|
Then the exit code is 0
|