Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Override oauth token for different namespace
Browse files Browse the repository at this point in the history
Different namespace must use different oath token

Signed-off-by: Martin Bašti <mbasti@redhat.com>
  • Loading branch information
MartinBasti committed Jan 29, 2020
1 parent 5d11eaa commit 79b20d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example.test.env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ replace_registry:
# Config of the instance tested to alter package names.
alter_package_name:
# namespace in which package names should be altered
namespace: integration-tests
namespace: integration-tests-with-suffix
# oauth token for integration-tests-with-suffix namespace
quay_oauth_token: <quay application token>
# robot account credentials with access to the namespace
user: <robot account>
password: <robot token>
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def suffix_quay():
if config:
quay = QuayAppRegistry(test_env["quay_app_registry_api"],
test_env["quay_api"],
test_env["quay_oauth_token"])
config["quay_oauth_token"])
quay.login_to_cnr(config["user"],
config["password"])

Expand Down

0 comments on commit 79b20d8

Please sign in to comment.