Skip to content

Commit 663bcda

Browse files
committed
behave: Fix failing tests due to missing metadata
1 parent d1c573a commit 663bcda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

behave/features/git-osc-precommit-hook.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Background:
88
And I execute git-obs with args "repo clone Admin/test-GitPkgA --no-ssh-strict-host-key-checking"
99
And I set working directory to "{context.osc.temp}/test-GitPkgA"
1010
And I execute "sed -i 's@^\(Version: *\) .*@\1 v1.1@' *.spec"
11-
# running precommit services has a hard coded query, so openSUSE:Factory needs to exist
12-
And I execute osc with args "api -X PUT '/source/openSUSE:Factory/_meta' -d '<project name="openSUSE:Factory"><title></title><description></description></project>'"
11+
And I execute git-obs with args "meta set --apiurl='https://localhost:{context.podman.container.ports[obs_https]}' --project=test:factory"
1312

1413

1514
@destructive

behave/features/git-repo-clone.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Scenario: Clone and build with non-default origin
3333
Then the exit code is 0
3434
When I set working directory to "{context.osc.temp}/test-GitPkgA"
3535
And I execute "git remote rename origin myorigin"
36+
And I execute git-obs with args "meta set --apiurl='https://localhost:{context.podman.container.ports[obs_https]}' --project=foo"
3637
And I execute osc with args "build --just-print-buildroot --alternative-project test:factory"
3738
Then the exit code is 0
3839

0 commit comments

Comments
 (0)