Skip to content
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

Merged
merged 34 commits into from
Sep 17, 2024

Conversation

metacoma
Copy link
Contributor

No description provided.

Copy link

filepath function error SUBTOTAL
test_mindwm_context.py test_mindwm_context.py 1 1
TOTAL 1 1

Copy link

filepath function passed failed skipped SUBTOTAL
test_infra.py TestInfra.test_cluster 1 0 0 1
test_infra.py TestInfra.test_argocd_app 1 0 0 1
test_infra.py TestInfra.test_argocd_app_sync_async 1 0 0 1
test_infra.py TestInfra.test_argocd_app_async_wait 1 0 0 1
test_infra.py TestInfra.test_argocd_apps_ensure 1 0 0 1
mindwm.py Test_Crossplane.test_ns 1 0 0 1
mindwm.py Test_Crossplane.test_deployment 1 0 0 1
mindwm.py Test_Crossplane.test_statefulset 1 0 0 1
mindwm.py Test_Crossplane.test_service 1 0 0 1
test_infra.py TestInfra.test_crossplane_rolebinding_workaround 1 0 0 1
mindwm.py Test_Istio.test_ns 1 0 0 1
mindwm.py Test_Istio.test_deployment 1 0 0 1
mindwm.py Test_Istio.test_statefulset 1 0 0 1
mindwm.py Test_Istio.test_service 1 0 0 1
mindwm.py Test_KnativeEventing.test_ns 2 0 0 2
mindwm.py Test_KnativeEventing.test_deployment 2 0 0 2
mindwm.py Test_KnativeEventing.test_statefulset 2 0 0 2
mindwm.py Test_KnativeEventing.test_service 1 1 0 2
test_mindwm_context.py Test_MindwContext.test_context_namespace 1 0 0 1
test_mindwm_context.py Test_MindwContext.test_pong_function 1 0 0 1
test_mindwm_context.py Test_MindwContext.test_kafka_cdc_function 1 0 0 1
test_mindwm_context.py Test_MindwContext.test_iocontext_function 1 0 0 1
mindwm.py Test_Monitoring.test_ns 1 0 0 1
mindwm.py Test_Monitoring.test_deployment 1 0 0 1
mindwm.py Test_Monitoring.test_statefulset 1 0 0 1
mindwm.py Test_Monitoring.test_service 1 0 0 1
mindwm.py Test_Nats.test_ns 1 0 0 1
mindwm.py Test_Nats.test_deployment 1 0 0 1
mindwm.py Test_Nats.test_statefulset 1 0 0 1
mindwm.py Test_Nats.test_service 1 0 0 1
mindwm.py Test_Redpanda.test_ns 1 0 0 1
mindwm.py Test_Redpanda.test_deployment 1 0 0 1
mindwm.py Test_Redpanda.test_statefulset 1 0 0 1
mindwm.py Test_Redpanda.test_service 1 0 0 1
test_mindwm_context.py Test_MindwContext.test_crd_status 0 1 0 1
test_mindwm_context.py Test_MindwContext.test_context_broker 0 1 0 1
test_mindwm_context.py Test_MindwContext.test_kafka_source 0 1 0 1
test_ping_pong.py Test_PingPong.test_send_ping_context_broker 0 0 1 1
test_ping_pong.py Test_PingPong.test_tracesql 0 0 1 1
TOTAL 37 4 2 43

Copy link

filepath function passed failed skipped SUBTOTAL
test_infra.py TestInfra.test_cluster 1 0 0 1
test_infra.py TestInfra.test_argocd_app 1 0 0 1
test_infra.py TestInfra.test_argocd_app_sync_async 1 0 0 1
test_infra.py TestInfra.test_argocd_app_async_wait 1 0 0 1
test_infra.py TestInfra.test_argocd_apps_ensure 1 0 0 1
mindwm.py Test_Crossplane.test_ns 1 0 0 1
mindwm.py Test_Crossplane.test_deployment 1 0 0 1
mindwm.py Test_Crossplane.test_statefulset 1 0 0 1
mindwm.py Test_Crossplane.test_service 1 0 0 1
test_infra.py TestInfra.test_crossplane_rolebinding_workaround 1 0 0 1
mindwm.py Test_Istio.test_ns 1 0 0 1
mindwm.py Test_Istio.test_deployment 1 0 0 1
mindwm.py Test_Istio.test_statefulset 1 0 0 1
mindwm.py Test_Istio.test_service 1 0 0 1
mindwm.py Test_KnativeEventing.test_ns 2 0 0 2
mindwm.py Test_KnativeEventing.test_deployment 2 0 0 2
mindwm.py Test_KnativeEventing.test_statefulset 2 0 0 2
mindwm.py Test_KnativeEventing.test_service 1 1 0 2
test_mindwm_context.py Test_MindwmContext.test_context_namespace 1 0 0 1
test_mindwm_context.py Test_MindwmContext.test_pong_function 1 0 0 1
test_mindwm_context.py Test_MindwmContext.test_kafka_cdc_function 1 0 0 1
test_mindwm_context.py Test_MindwmContext.test_iocontext_function 1 0 0 1
mindwm.py Test_Monitoring.test_ns 1 0 0 1
mindwm.py Test_Monitoring.test_deployment 1 0 0 1
mindwm.py Test_Monitoring.test_statefulset 1 0 0 1
mindwm.py Test_Monitoring.test_service 1 0 0 1
mindwm.py Test_Nats.test_ns 1 0 0 1
mindwm.py Test_Nats.test_deployment 1 0 0 1
mindwm.py Test_Nats.test_statefulset 1 0 0 1
mindwm.py Test_Nats.test_service 1 0 0 1
mindwm.py Test_Redpanda.test_ns 1 0 0 1
test_mindwm_context.py Test_MindwmContext.test_crd_status 0 1 0 1
test_mindwm_context.py Test_MindwmContext.test_context_broker 0 1 0 1
test_mindwm_context.py Test_MindwmContext.test_kafka_source 0 1 0 1
mindwm.py Test_Redpanda.test_deployment 0 1 0 1
mindwm.py Test_Redpanda.test_statefulset 0 1 0 1
mindwm.py Test_Redpanda.test_service 0 1 0 1
test_ping_pong.py Test_PingPong.test_send_ping_context_broker 0 0 1 1
test_ping_pong.py Test_PingPong.test_tracesql 0 0 1 1
TOTAL 34 7 2 43

Copy link

filepath function failed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function failed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function passed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function failed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function failed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function passed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 1 1
TOTAL 1 1

Copy link

filepath function passed SUBTOTAL
.venv/lib/python3.12/site-packages/pytest_bdd/scenario.py test_scenarios 2 2
TOTAL 2 2

Copy link

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.3.3, pluggy-1.5.0 -- /home/ci/mindwm-gitops/tests/mindwm_bdd/.venv/bin/python3
cachedir: .pytest_cache
kubetest config file: /home/ci/.kube/config
kubetest context: current context
rootdir: /home/ci/mindwm-gitops/tests/mindwm_bdd
configfile: pytest.ini
plugins: allure-pytest-2.13.5, md-report-0.6.2, dependency-0.6.0, order-1.3.0, bdd-ng-2.1.4, kubetest-1.30.0
collecting ... collected 4 items

features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py
Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

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': "
"'2024-09-16T19:33:57Z', 'reason': 'ReconcileSuccess', 'status': 'True', "
"'type': 'Synced'}, {'lastTransitionTime': '2024-09-16T19:33:57Z', 'message': "
"'Claim is waiting for composite resource to become Ready', 'reason': "
"'Waiting', 'status': 'False', 'type': 'Ready'}]}")

Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (PASSED)
PASSED

=============================== warnings summary ===============================
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context]
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User]
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host]
/home/ci/mindwm-gitops/tests/mindwm_bdd/.venv/lib/python3.12/site-packages/kubernetes/client/rest.py:44: DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.
return self.urllib3_response.getheaders()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 4 passed, 3 warnings in 23.27s ========================

Copy link

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.3.3, pluggy-1.5.0 -- /home/ci/mindwm-gitops/tests/mindwm_bdd/.venv/bin/python3
cachedir: .pytest_cache
kubetest config file: /home/ci/.kube/config
kubetest context: current context
rootdir: /home/ci/mindwm-gitops/tests/mindwm_bdd
configfile: pytest.ini
plugins: allure-pytest-2.13.5, md-report-0.6.2, dependency-0.6.0, order-1.3.0, bdd-ng-2.1.4, kubetest-1.30.0
collecting ... collected 4 items

features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py
Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

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': "
"'2024-09-16T19:56:31Z', 'reason': 'ReconcileSuccess', 'status': 'True', "
"'type': 'Synced'}, {'lastTransitionTime': '2024-09-16T19:56:31Z', 'message': "
"'Claim is waiting for composite resource to become Ready', 'reason': "
"'Waiting', 'status': 'False', 'type': 'Ready'}]}")

Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (FAILED)
FAILED

=================================== FAILURES ===================================
_ test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] _

self = <pytest_bdd.runner.ScenarioRunner object at 0x7a5d3d9db830>
item = <Function test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host]>

def pytest_runtest_call(self, item: Item):
    if "pytest_bdd_scenario" in list(map(attrgetter("name"), item.iter_markers())):
        self.request = item._request
        self.feature = self.request.getfixturevalue("feature")
        self.scenario = self.request.getfixturevalue("scenario")
        self.plugin_manager = self.request.config.hook
        self.plugin_manager.pytest_bdd_before_scenario(
            request=self.request, feature=self.feature, scenario=self.scenario
        )
        try:
          self.plugin_manager.pytest_bdd_run_scenario(
                request=self.request,
                feature=self.feature,
                scenario=self.scenario,
            )

.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
return step_dispatcher(steps)
.venv/lib/python3.12/site-packages/pytest_bdd/runner.py:69: in dispatcher
self.plugin_manager.pytest_bdd_run_step(
.venv/lib/python3.12/site-packages/pytest_bdd/runner.py:128: in pytest_bdd_run_step
step_result = step_caller()
conftest.py:82: in mindwm_host_validate
host.validate()


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'}}

def validate(self):
    try:
        self.wait_for_ready()
    except TimeoutError as e:
        pass

    status = self.status()
    for condition in status.get('conditions'):
        if condition.get('type') == 'Ready':
            ready_condition = condition
        if condition.get('type') == 'Synced':
            synced_condition = condition

    is_ready = ready_condition and ready_condition.get('status') == 'True'
    is_synced = synced_condition and synced_condition.get('status') == 'True'
    assert(is_synced), f"Host {self.name} is not synced"
  assert(is_ready), f"Host {self.name} is not ready"

E AssertionError: Host laptop is not ready

custom_objects/host.py:79: AssertionError
=============================== warnings summary ===============================
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Context]
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create User]
features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host]
/home/ci/mindwm-gitops/tests/mindwm_bdd/.venv/lib/python3.12/site-packages/kubernetes/client/rest.py:44: DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.
return self.urllib3_response.getheaders()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED features/mindwm_crd.feature::test_scenarios[file:features/mindwm_crd.feature-MindWM Custom Resource Definition-Create Host] - AssertionError: Host laptop is not ready
=================== 1 failed, 3 passed, 3 warnings in 23.35s ===================

Copy link

allure report
============================= test session starts ==============================
collecting ... collected 4 items

features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py
Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

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': "
"'2024-09-17T08:28:55Z', 'reason': 'ReconcileSuccess', 'status': 'True', "
"'type': 'Synced'}, {'lastTransitionTime': '2024-09-17T08:28:55Z', 'message': "
"'Claim is waiting for composite resource to become Ready', 'reason': "
"'Waiting', 'status': 'False', 'type': 'Ready'}]}")

Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (PASSED)
PASSED

======================== 4 passed, 3 warnings in 23.28s ========================

Copy link

allure report
============================= test session starts ==============================
collecting ... collected 4 items

features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py
Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

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': "
"'2024-09-17T10:51:41Z', 'reason': 'ReconcileSuccess', 'status': 'True', "
"'type': 'Synced'}, {'lastTransitionTime': '2024-09-17T10:51:41Z', 'message': "
"'Claim is waiting for composite resource to become Ready', 'reason': "
"'Waiting', 'status': 'False', 'type': 'Ready'}]}")

Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (PASSED)
PASSED

======================== 4 passed, 3 warnings in 23.28s ========================

Copy link

allure report
============================= test session starts ==============================
collecting ... collected 5 items

features/kubernetes.feature::test_scenarios[file:features/kubernetes.feature-Kubernetes cluster-] <- .venv/lib/python3.12/site-packages/pytest_bdd/scenario.py
Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (PASSED)
PASSED

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
Feature: MindWM Custom Resource Definition
Scenario: Delete Resources and Verify Cleanup
Given a MindWM environment (PASSED)
When God deletes the MindWM host resource "laptop" (PASSED)
Then the host "laptop" should be deleted (PASSED)
When God deletes the MindWM user resource "alice" (PASSED)
Then the user "alice" should be deleted (PASSED)
When God deletes the MindWM context resource "xxx3" (PASSED)
Then the context "xxx3" should be deleted (PASSED)
PASSED

======================== 5 passed, 6 warnings in 26.45s ========================

Copy link

allure report
============================= test session starts ==============================
collecting ... collected 5 items

Feature: Kubernetes cluster
Scenario:
Given a kubernetes cluster (PASSED)
Then all nodes in the kubernetes are ready (PASSED)
PASSED

Feature: MindWM Custom Resource Definition
Scenario: Create Context
Given a MindWM environment (PASSED)
When God creates a MindWM context with the name "xxx3" (PASSED)
Then the context should be ready and operable (PASSED)
PASSED

Feature: MindWM Custom Resource Definition
Scenario: Create User
Given a MindWM environment (PASSED)
When God creates a MindWM user resource with the name "alice" and connects it to the context "xxx3" (PASSED)
Then the user resource should be ready and operable (PASSED)
PASSED

Feature: MindWM Custom Resource Definition
Scenario: Create Host
Given a MindWM environment (PASSED)
When God creates a MindWM host resource with the name "laptop" and connects it to the user "alice" (PASSED)
Then the host resource should be ready and operable (PASSED)
PASSED

Feature: MindWM Custom Resource Definition
Scenario: Delete Resources and Verify Cleanup
Given a MindWM environment (PASSED)
When God deletes the MindWM host resource "laptop" (PASSED)
Then the host "laptop" should be deleted (PASSED)
When God deletes the MindWM user resource "alice" (PASSED)
Then the user "alice" should be deleted (PASSED)
When God deletes the MindWM context resource "xxx3" (PASSED)
Then the context "xxx3" should be deleted (PASSED)
PASSED

======================== 5 passed, 6 warnings in 26.48s ========================

@metacoma metacoma merged commit 0914b7f into master Sep 17, 2024
1 check passed
@metacoma metacoma mentioned this pull request Oct 3, 2024
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant