Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberCharitos committed Jul 24, 2024
1 parent 3e0a915 commit f4da53a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/integration/test_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,27 @@ async def test_setup_models(ops_test: OpsTest):

lxd_controller = Controller()
await lxd_controller.connect(lxd_controller_name)
lxd_model = await get_or_add_model(ops_test, lxd_controller, lxd_model_name)
lxd_model = await get_or_add_model(
ops_test, lxd_controller, lxd_model_name
)
await lxd_model.set_config(LXD_MODEL_CONFIG)
await deploy_opensearch(lxd_model)

k8s_controller = Controller()
await k8s_controller.connect(k8s_controller_name)
k8s_model = await get_or_add_model(ops_test, k8s_controller, k8s_model_name)
await k8s_model.set_config({"logging-config": "<root>=WARNING; unit=DEBUG"})
k8s_model = await get_or_add_model(
ops_test, k8s_controller, k8s_model_name
)
await k8s_model.set_config(
{"logging-config": "<root>=WARNING; unit=DEBUG"}
)
await deploy_ranger(ops_test, k8s_model)

await integrate_ranger_opensearch(
ops_test, k8s_model, lxd_model, lxd_controller_name
)


async def deploy_opensearch(lxd_model: Model):
"""Deploy OpenSearch and related components.
Expand Down Expand Up @@ -116,6 +123,7 @@ async def deploy_ranger(
timeout=1500,
)


async def integrate_ranger_opensearch(
ops_test: OpsTest,
k8s_model: Model,
Expand Down Expand Up @@ -143,6 +151,7 @@ async def integrate_ranger_opensearch(
timeout=1500,
)


@pytest.mark.abort_on_fail
@pytest.mark.usefixtures("deploy-opensearch")
class TestOpenSearch:
Expand Down

0 comments on commit f4da53a

Please sign in to comment.