fix(oci): expose only Glances web port

This commit is contained in:
VAIO73
2026-09-27 13:28:53 +02:00
parent 15692fe031
commit ca9dbba65b
2 changed files with 33 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Glances' Web UI is the only listener used by the native ``-w`` profile."""
from pathlib import Path
import unittest
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")
ports = template["container_contract"]["ports"]
self.assertEqual([item["container_port"] for item in ports], [61208])
self.assertEqual(template["first_run"]["endpoints"], [{
"label": "Web UI",
"scheme": "http",
"port": 61208,
"path": "/",
"source": "compose-metadata",
}])
self.assertEqual(template["proxmox"]["installer_profile"]["startup_healthcheck"]["port"], 61208)