Skip to content

Commit 3692862

Browse files
committed
[patch] Mark and temp disable tests that need OCP
1 parent 0f81ab3 commit 3692862

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
cat ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4747
python -m pip install --upgrade pip
4848
pip install .[dev]
49-
python -m pytest
49+
python -m pytest -m "not openshift"
5050
5151
- name: Lint with flake8
5252
run: |

.secrets.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2026-05-21T00:23:08Z",
6+
"generated_at": "2026-05-21T00:44:44Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -178,15 +178,15 @@
178178
"hashed_secret": "94f5ed592906089c107208b29e178ddf1f9f5143",
179179
"is_secret": false,
180180
"is_verified": false,
181-
"line_number": 35,
181+
"line_number": 38,
182182
"type": "Secret Keyword",
183183
"verified_result": null
184184
},
185185
{
186186
"hashed_secret": "a9410d9785f49750b9f8672794fc288558c1611c",
187187
"is_secret": false,
188188
"is_verified": false,
189-
"line_number": 48,
189+
"line_number": 51,
190190
"type": "Secret Keyword",
191191
"verified_result": null
192192
}

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ requires = [
33
"setuptools"
44
]
55
build-backend = "setuptools.build_meta"
6+
7+
[tool.pytest.ini_options]
8+
markers = [
9+
"openshift: marks tests as requiring an OpenShift cluster (deselect with '-m \"not openshift\"')",
10+
]

test/src/test_mas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
#
99
# *****************************************************************************
1010

11+
import pytest
1112
from openshift import dynamic
1213
from kubernetes import config
1314
from kubernetes.client import api_client
1415
from kubernetes.dynamic.resource import ResourceInstance
1516

1617
from mas.devops import mas
1718

19+
pytestmark = pytest.mark.openshift
20+
1821
dynClient = dynamic.DynamicClient(
1922
api_client.ApiClient(configuration=config.load_kube_config())
2023
)

test/src/test_olm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
#
99
# *****************************************************************************
1010

11+
import pytest
1112
from openshift import dynamic
1213
from kubernetes import config
1314
from kubernetes.client import api_client
1415

1516
from mas.devops import olm, ocp
1617

18+
pytestmark = pytest.mark.openshift
19+
1720
dynClient = dynamic.DynamicClient(
1821
api_client.ApiClient(configuration=config.load_kube_config())
1922
)

0 commit comments

Comments
 (0)