-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: basic pytest checks for mindwm context crd #111
Conversation
|
Use ssh instead of http2.0 for git push More details here: https://cpina.github.io/push-to-another-repository-docs/troubleshooting.html
|
|
|
|
|
|
|
|
|
============================= test session starts ============================== features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ("context_validate == {'conditions': [{'lastTransitionTime': " Feature: MindWM Custom Resource Definition features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py =============================== warnings summary =============================== -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
This reverts commit 72727c9.
============================= test session starts ============================== features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ("context_validate == {'conditions': [{'lastTransitionTime': " Feature: MindWM Custom Resource Definition features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py =================================== FAILURES =================================== self = <pytest_bdd.runner.ScenarioRunner object at 0x7a5d3d9db830>
.venv/lib/python3.12/site-packages/pytest_bdd/runner.py:37: .venv/lib/python3.12/site-packages/pytest_bdd/runner.py:59: in pytest_bdd_run_scenario self = {'apiVersion': 'mindwm.io/v1beta1', 'kind': 'Host', 'metadata': {'creationTimestamp': '2024-09-16T19:56:43Z', 'generat...-770e-4506-a4ec-8800da916ed0'}, 'spec': {'compositeDeletePolicy': 'Background', 'name': 'laptop', 'username': 'alice'}}
E AssertionError: Host laptop is not ready custom_objects/host.py:79: AssertionError -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
allure report features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ("context_validate == {'conditions': [{'lastTransitionTime': " Feature: MindWM Custom Resource Definition features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ======================== 4 passed, 3 warnings in 23.28s ======================== |
allure report features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ("context_validate == {'conditions': [{'lastTransitionTime': " Feature: MindWM Custom Resource Definition features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ======================== 4 passed, 3 warnings in 23.28s ======================== |
allure report features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Delete Resources and Verify Cleanup] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py ======================== 5 passed, 6 warnings in 26.45s ======================== |
allure report Feature: Kubernetes cluster Feature: MindWM Custom Resource Definition Feature: MindWM Custom Resource Definition Feature: MindWM Custom Resource Definition Feature: MindWM Custom Resource Definition ======================== 5 passed, 6 warnings in 26.48s ======================== |
No description provided.