Skip to content

Commit

Permalink
Merge pull request #57 from pehala/clusterwide_fix
Browse files Browse the repository at this point in the history
Fix clusterwide setup
  • Loading branch information
pehala authored Aug 24, 2022
2 parents 4cf3f7c + 5df0970 commit 7c5e1bb
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ def authorization2(hostname2, blame, openshift2, module_label, rhsso_service_inf


@pytest.fixture(scope="module")
def client2(hostname2, authorization2, envoy):
def client2(hostname2, envoy):
"""Client for second AuthConfig"""
client = envoy.client()
client.base_url = f"http://{hostname2}"
authorization2.commit()
yield client
client.close()


# pylint: disable=unused-argument
@pytest.fixture(scope="module", autouse=True)
def commit(commit, authorization2):
"""Commits all important stuff before tests"""
authorization2.commit()
yield
authorization2.delete()

0 comments on commit 7c5e1bb

Please sign in to comment.