fix: include git tag context in startup banners

This commit is contained in:
3252a8
2026-05-17 22:20:45 +03:00
parent e2038085ca
commit 820548cb2d
4 changed files with 78 additions and 7 deletions
+22
View File
@@ -22,6 +22,7 @@ class StartupBannerTests(unittest.TestCase):
service,
{
"IMAGE_TAG": "test-tag",
"REMNAWAVE_MINISHOP_TAG": "v3.4.0",
"REMNAWAVE_MINISHOP_COMMIT": "abc1234",
"POSTGRES_HOST": "postgres",
"POSTGRES_DB": "postgres",
@@ -35,6 +36,27 @@ class StartupBannerTests(unittest.TestCase):
self.assertIn("███", output)
self.assertNotIn("в", output)
def test_startup_banner_expands_latest_and_dev_tags(self):
latest_output = _render(
"backend",
{
"IMAGE_TAG": "latest",
"REMNAWAVE_MINISHOP_TAG": "v3.4.0",
"REMNAWAVE_MINISHOP_COMMIT": "abc1234",
},
)
self.assertIn("image tag :: latest-v3.4.0", latest_output)
dev_output = _render(
"backend",
{
"IMAGE_TAG": "dev",
"REMNAWAVE_MINISHOP_TAG": "v3.4.0",
"REMNAWAVE_MINISHOP_COMMIT": "abc1234",
},
)
self.assertIn("image tag :: dev-v3.4.0+abc1234", dev_output)
class StartupBannerServiceDetailsTests(unittest.TestCase):
def test_backend_lists_ports_postgres_and_redis(self):