Skip to content
Snippets Groups Projects
Verified Commit 86465ec8 authored by Arie Peterson's avatar Arie Peterson
Browse files

Remove extra CI variable substitution

parent 9400ff53
No related branches found
No related tags found
No related merge requests found
......@@ -104,8 +104,6 @@ testinfra:
certs:
stage: health-test
variables:
OAS_DOMAIN: "$ADDRESS"
allow_failure: true
script:
- mkdir ~/.ssh
......
......@@ -10,7 +10,7 @@ Specify host manually:
Run cert test manually using the ansible inventory file:
OAS_DOMAIN='example.openappstack.net' py.test -v -m 'certs' \
ADDRESS='example.openappstack.net' py.test -v -m 'certs' \
--connection=ansible \
--ansible-inventory=../ansible/inventory.yml \
--hosts='ansible://*'
......@@ -18,11 +18,11 @@ Run cert test manually using the ansible inventory file:
Run cert test manually against a different cluster, not configured in any
ansible inventory file, either by using pytest:
OAS_DOMAIN='example.openappstack.net' py.test -v -m 'certs'
ADDRESS='example.openappstack.net' py.test -v -m 'certs'
or directly (allows better debugging since pytest won't eat stdout):
OAS_DOMAIN='example.openappstack.net' pytest/test_certs.py
ADDRESS='example.openappstack.net' pytest/test_certs.py
## Issues
......
......@@ -97,8 +97,8 @@ def valid_cert(domain: str, ca_file: str = '/tmp/custom_ca_bundle.crt'):
@pytest.mark.certs
def test_cert_validation(host):
domain = os.environ.get("OAS_DOMAIN")
assert domain, "Please export OAS_DOMAIN as environment variable."
domain = os.environ.get("ADDRESS")
assert domain, "Please export ADDRESS as environment variable."
add_custom_cert_authorities(certifi.where(),
['pytest/le-staging-bundle.pem'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment