mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-04-09 21:33:24 +00:00
36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
import pytest
|
|
from src.node.wrappers_manager import WrapperManager
|
|
|
|
|
|
@pytest.mark.smoke
|
|
class TestLogosDeliveryLifecycle:
|
|
def test_create_and_start_node(self, node_config):
|
|
result = WrapperManager.create_and_start(config=node_config)
|
|
assert result.is_ok(), f"Failed to create and start node: {result.err()}"
|
|
node = result.ok_value
|
|
|
|
stop_result = node.stop_and_destroy()
|
|
assert stop_result.is_ok(), f"Failed to stop and destroy node: {stop_result.err()}"
|
|
|
|
def test_create_node_without_starting(self, node_config):
|
|
result = WrapperManager.create(config=node_config)
|
|
assert result.is_ok(), f"Failed to create node: {result.err()}"
|
|
node = result.ok_value
|
|
|
|
start_result = node.start_node()
|
|
assert start_result.is_ok(), f"Failed to start node: {start_result.err()}"
|
|
|
|
stop_result = node.stop_and_destroy()
|
|
assert stop_result.is_ok(), f"Failed to stop and destroy node: {stop_result.err()}"
|
|
|
|
def test_stop_node_without_destroy(self, node_config):
|
|
result = WrapperManager.create_and_start(config=node_config)
|
|
assert result.is_ok(), f"Failed to create and start node: {result.err()}"
|
|
node = result.ok_value
|
|
|
|
stop_result = node.stop_node()
|
|
assert stop_result.is_ok(), f"Failed to stop node: {stop_result.err()}"
|
|
|
|
destroy_result = node.destroy()
|
|
assert destroy_result.is_ok(), f"Failed to destroy node: {destroy_result.err()}"
|