fix: include git tag context in startup banners
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user