-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1529 from dmach/1.6.x-backports
Backport several bugfixes from master to 1.6.x-maint branch
- Loading branch information
Showing
21 changed files
with
389 additions
and
100 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
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
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
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
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
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
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,65 @@ | ||
Feature: `osc branch` command | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch` on an inherited package that has no devel project set | ||
When I execute osc with args "branch test:leap:15.6:update/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:leap:15.6/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:leap:15.6\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch --nodevelproject` on an inherited package that has no devel project set | ||
When I execute osc with args "branch test:leap:15.6:update/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:leap:15.6/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:leap:15.6\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch --new-package` on an inherited package that has no devel project set | ||
When I execute osc with args "branch --new-package test:leap:15.6:update/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:leap:15.6:update/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:leap:15.6:update\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch` on a package that has a devel project set | ||
When I execute osc with args "branch test:factory/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:devel/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:devel\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch --nodevelproject` on a package that has a devel project set | ||
When I execute osc with args "branch --nodevelproject test:factory/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:factory/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:factory\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch` on an inherited package that has a devel project set | ||
When I execute osc with args "branch test:factory:update/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:devel/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:devel\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch --nodevelproject` on an inherited package that has a devel project set | ||
When I execute osc with args "branch --nodevelproject test:factory:update/test-pkgA" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:factory/test-pkgA/_link" | ||
And stdout contains "<link project=\"test:factory\"" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc branch --new-package` on a package that doesn't exist | ||
When I execute osc with args "branch --new-package test:factory/test-pkgNEW" | ||
Then the exit code is 0 | ||
And I execute osc with args "api /source/home:Admin:branches:test:factory/test-pkgNEW/_link" | ||
And stdout contains "<link project=\"test:factory\"" |
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
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
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,11 @@ | ||
Feature: `osc service` command | ||
|
||
|
||
Scenario: Run `osc service manualrun` | ||
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" | ||
And I copy file "{context.fixtures}/pac/_service-set_version-invalid" to "{context.osc.temp}/test:factory/test-pkgA/_service" | ||
When I execute osc with args "service manualrun" | ||
Then stdout contains "Aborting: service call failed" | ||
And the exit code is 255 |
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
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
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,5 @@ | ||
<services> | ||
<service name="set_version" mode="manual"> | ||
<param name="fromfile">invalid</param> | ||
</service> | ||
</services> |
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,25 @@ | ||
<project name="test:factory:update"> | ||
|
||
<title/> | ||
<description/> | ||
|
||
<link project="test:factory"/> | ||
|
||
<person userid="Admin" role="maintainer"/> | ||
|
||
<lock> | ||
<disable/> | ||
</lock> | ||
|
||
<build> | ||
<disable/> | ||
</build> | ||
|
||
<repository name="standard"> | ||
<path project="test:factory" repository="standard"/> | ||
<arch>x86_64</arch> | ||
<arch>i586</arch> | ||
</repository> | ||
|
||
</project> | ||
|
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,24 @@ | ||
<project name="test:leap:15.6"> | ||
|
||
<title/> | ||
<description/> | ||
|
||
<person userid="Admin" role="maintainer"/> | ||
|
||
<lock> | ||
<disable/> | ||
</lock> | ||
|
||
<build> | ||
<disable/> | ||
</build> | ||
|
||
<repository name="standard"> | ||
<!-- it's only for test purposes, let's use the same repo as test:factory --> | ||
<path project="openSUSE.org:openSUSE:Tumbleweed" repository="standard"/> | ||
<arch>x86_64</arch> | ||
<arch>i586</arch> | ||
</repository> | ||
|
||
</project> | ||
|
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,25 @@ | ||
<project name="test:leap:15.6:update"> | ||
|
||
<title/> | ||
<description/> | ||
|
||
<link project="test:leap:15.6"/> | ||
|
||
<person userid="Admin" role="maintainer"/> | ||
|
||
<lock> | ||
<disable/> | ||
</lock> | ||
|
||
<build> | ||
<disable/> | ||
</build> | ||
|
||
<repository name="standard"> | ||
<path project="test:leap:15.6" repository="standard"/> | ||
<arch>x86_64</arch> | ||
<arch>i586</arch> | ||
</repository> | ||
|
||
</project> | ||
|
Oops, something went wrong.