forked from Kuadrant/testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jakub Smolar <[email protected]>
- Loading branch information
Jakub Smolar
committed
Nov 19, 2024
1 parent
d20f01b
commit 41bbc2d
Showing
10 changed files
with
27 additions
and
46 deletions.
There are no files selected for viewing
Empty file.
18 changes: 18 additions & 0 deletions
18
testsuite/tests/singlecluster/identical_hostnames/auth/conftest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def authorization(authorization): | ||
"""2nd Authorization object""" | ||
authorization.authorization.add_opa_policy("rego", "allow = true") | ||
return authorization | ||
|
||
|
||
@pytest.fixture(scope="module", autouse=True) | ||
def commit(request, authorization, authorization2): | ||
"""Ensure Authorization is created. All commits are handled manually in these tests""" | ||
for auth in [authorization, authorization2]: | ||
if auth is not None: | ||
request.addfinalizer(auth.delete) | ||
auth.commit() | ||
auth.wait_for_accepted() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.