From 5cae36341ba7ccb50a7b3b3343200394affb3ae1 Mon Sep 17 00:00:00 2001 From: "Sebastien Georget (charmkeeper)" Date: Thu, 16 Apr 2026 13:12:43 +0200 Subject: [PATCH] Disable jubilant logging for juju.deploy, juju.config and juju.exec Add log=False to all juju.deploy(), juju.config() and juju.exec() calls in integration tests to disable jubilant logging for security reasons. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/integration/conftest.py | 6 ++++-- tests/integration/tinyproxy.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 338c24d..2dfd673 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -103,8 +103,10 @@ def deploy_charms_fixture( pytestconfig: Pytest configuration object. """ base = pytestconfig.getoption("--base", default="24.04") - juju.deploy("ubuntu", base=f"ubuntu@{base}", constraints={"virt-type": "virtual-machine"}) - juju.deploy(aproxy_charm_file) + juju.deploy( + "ubuntu", base=f"ubuntu@{base}", constraints={"virt-type": "virtual-machine"}, log=False + ) + juju.deploy(aproxy_charm_file, log=False) juju.integrate("ubuntu", "aproxy") juju.cli("config", "aproxy", f"proxy-address={tinyproxy_url}:8888") juju.wait(jubilant.all_active, timeout=20 * 60) diff --git a/tests/integration/tinyproxy.py b/tests/integration/tinyproxy.py index 5114181..3845231 100644 --- a/tests/integration/tinyproxy.py +++ b/tests/integration/tinyproxy.py @@ -71,6 +71,7 @@ def _on_install(self, _): base=base, config={"src-overwrite": json.dumps({"any_charm.py": any_charm_py})}, constraints={"virt-type": "virtual-machine"}, + log=False, ) # Wait until the service is up