File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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"
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 }
Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ requires = [
33 " setuptools"
44]
55build-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+ ]
Original file line number Diff line number Diff line change 88#
99# *****************************************************************************
1010
11+ import pytest
1112from openshift import dynamic
1213from kubernetes import config
1314from kubernetes .client import api_client
1415from kubernetes .dynamic .resource import ResourceInstance
1516
1617from mas .devops import mas
1718
19+ pytestmark = pytest .mark .openshift
20+
1821dynClient = dynamic .DynamicClient (
1922 api_client .ApiClient (configuration = config .load_kube_config ())
2023)
Original file line number Diff line number Diff line change 88#
99# *****************************************************************************
1010
11+ import pytest
1112from openshift import dynamic
1213from kubernetes import config
1314from kubernetes .client import api_client
1415
1516from mas .devops import olm , ocp
1617
18+ pytestmark = pytest .mark .openshift
19+
1720dynClient = dynamic .DynamicClient (
1821 api_client .ApiClient (configuration = config .load_kube_config ())
1922)
You can’t perform that action at this time.
0 commit comments