| |
@@ -8,9 +8,21 @@
|
| |
from lib389.paths import Paths
|
| |
from enum import Enum
|
| |
|
| |
+
|
| |
pkgs = ['389-ds-base', 'nss', 'nspr', 'openldap', 'cyrus-sasl']
|
| |
p = Paths()
|
| |
|
| |
+
|
| |
+ def pytest_configure(config):
|
| |
+ """Auto add custom markers we use to reference upstream/bugzilla tickets."""
|
| |
+ prefix = '@pytest.mark.'
|
| |
+ cmd = ['grep', '-rh', f'^{prefix}\\(ds\\|bz\\)[0-9]\\+']
|
| |
+ p = subprocess.run(cmd, check=True, stdout=subprocess.PIPE)
|
| |
+ markers = {x[len(prefix):] for x in p.stdout.decode().splitlines()}
|
| |
+ for m in markers:
|
| |
+ config.addinivalue_line('markers', m)
|
| |
+
|
| |
+
|
| |
class FIPSState(Enum):
|
| |
ENABLED = 'enabled'
|
| |
DISABLED = 'disabled'
|
| |
@@ -22,6 +34,7 @@
|
| |
def __str__(self):
|
| |
return self.value
|
| |
|
| |
+
|
| |
def get_rpm_version(pkg):
|
| |
try:
|
| |
result = subprocess.check_output(['rpm', '-q', '--queryformat',
|
| |
Bug Description:
Our unique markers for tickets cause a lot pytest warnings
PytestUnknownMarkWarning.
Fix Description:
On each run, go through all test files and the correctly prefixed markers for
the runtime being.
Fixes: https://pagure.io/389-ds-base/issue/51017
Author: Matus Honek mhonek@redhat.com
Review by: ???