From 79b20d813d5b811926a0143237255f05502b8f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ba=C5=A1ti?= Date: Wed, 29 Jan 2020 22:34:25 +0100 Subject: [PATCH] Override oauth token for different namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Different namespace must use different oath token Signed-off-by: Martin Bašti --- example.test.env.yaml | 4 +++- tests/integration/conftest.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example.test.env.yaml b/example.test.env.yaml index e775a02..0a5ea63 100644 --- a/example.test.env.yaml +++ b/example.test.env.yaml @@ -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: # robot account credentials with access to the namespace user: password: diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 23709a0..413c837 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -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"])