1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 08:36:13 +01:00
github.com_openSUSE_osc/behave/features/release.feature

44 lines
2.8 KiB
Gherkin
Raw Normal View History

2024-04-18 09:59:47 +02:00
Feature: `osc release` command
Scenario: Run `osc log` on a project
When I execute osc with args "release test:factory --repo=standard --target-project=test:release --target-repository=distro-1-ga"
# release target is not properly configured in the testing container, but we're currently testing only the command-line options
Then the exit code is 1
And stdout contains "Releasing project 'test:factory' repository 'standard' to project 'test:release' repository 'distro-1-ga' options: delayed"
Scenario: Run `osc log` on a package
When I execute osc with args "release test:factory/test-pkgA --repo=standard --target-project=test:release --target-repository=distro-1-ga"
Then the exit code is 0
And stdout contains "Releasing package 'test:factory/test-pkgA' repository 'standard' to project 'test:release' repository 'distro-1-ga' options: delayed"
Scenario: Run `osc log` from a project checkout
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout test:factory"
And I set working directory to "{context.osc.temp}/test:factory"
When I execute osc with args "release --repo=standard --target-project=test:release --target-repository=distro-1-ga"
# release target is not properly configured in the testing container, but we're currently testing only the command-line options
Then the exit code is 1
And stdout contains "Releasing project 'test:factory' repository 'standard' to project 'test:release' repository 'distro-1-ga' options: delayed"
Scenario: Run `osc log` from a package checkout
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout test:factory test-pkgA"
And I set working directory to "{context.osc.temp}/test:factory/test-pkgA"
When I execute osc with args "release --repo=standard --target-project=test:release --target-repository=distro-1-ga"
Then the exit code is 0
And stdout contains "Releasing package 'test:factory/test-pkgA' repository 'standard' to project 'test:release' repository 'distro-1-ga' options: delayed"
Scenario: Run `osc log` from a package checkout with a given project
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout test:factory test-pkgA"
And I set working directory to "{context.osc.temp}/test:factory/test-pkgA"
When I execute osc with args "release test:factory --repo=standard --target-project=test:release --target-repository=distro-1-ga"
# release target is not properly configured in the testing container, but we're currently testing only the command-line options
Then the exit code is 1
And stdout contains "Releasing project 'test:factory' repository 'standard' to project 'test:release' repository 'distro-1-ga' options: delayed"