From d45da0742dfd7c9d2985c6d6d17140a513a9140b Mon Sep 17 00:00:00 2001 From: VAIO73 <50487331+Vaso73@users.noreply.github.com> Date: Sun, 27 Sep 2026 20:22:55 +0200 Subject: [PATCH] test(oci): run Glances port contract in isolation --- oci/tests/test_glances_ports.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/oci/tests/test_glances_ports.py b/oci/tests/test_glances_ports.py index 00a8ff33..a89edbbb 100644 --- a/oci/tests/test_glances_ports.py +++ b/oci/tests/test_glances_ports.py @@ -1,15 +1,18 @@ """Glances' Web UI is the only listener used by the native ``-w`` profile.""" from pathlib import Path +import sys import unittest +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / "src")) + from proxmenux_oci.catalog import Catalog class GlancesPortContractTests(unittest.TestCase): def test_web_profile_exposes_only_the_web_ui_port(self): - root = Path(__file__).resolve().parents[1] - template = Catalog(root).compose("glances") + template = Catalog(ROOT).compose("glances") ports = template["container_contract"]["ports"] self.assertEqual([item["container_port"] for item in ports], [61208])