1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 13:48:43 +02:00

Merge pull request #1324 from dmach/repo-commands-for-managing-repositories-in-meta

Add 'repo' command and subcommands for managing repositories in project meta
This commit is contained in:
2023-07-14 10:57:40 +02:00
committed by GitHub
13 changed files with 669 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
Feature: `osc repo` command
Scenario: Run `osc repo` with no arguments
When I execute osc with args "repo"
Then stdout is
"""
"""
Scenario: Run `osc repo list` on a project
When I execute osc with args "repo list test:factory"
Then stdout is
"""
Repository : standard
Architectures : x86_64, i586
Paths : openSUSE.org:openSUSE:Tumbleweed/standard
Flags
build : disable: x86_64, i586
"""
@destructive
Scenario: Run `osc repo add` on a project
When I execute osc with args "repo add --yes test:factory --repo=new-repo --arch=x86_64 --arch=aarch64 --path=test:factory/standard --path=test:devel/standard"
And I execute osc with args "repo list test:factory"
Then stdout is
"""
Repository : standard
Architectures : x86_64, i586
Paths : openSUSE.org:openSUSE:Tumbleweed/standard
Flags
build : disable: x86_64, i586
Repository : new-repo
Architectures : x86_64, aarch64
Paths : test:factory/standard
test:devel/standard
Flags
build : disable: x86_64, aarch64
"""
@destructive
Scenario: Run `osc repo remove` on a project
When I execute osc with args "repo remove --yes test:factory --repo=standard --repo=does-not-exist"
And I execute osc with args "repo list test:factory"
Then stdout is
"""
"""