Solved alias domain bug for mysql.cymais.cloud, mariadb.cymais.cloud in context of docker-phpmyadmin

This commit is contained in:
Kevin Veen-Birkenbach 2025-06-19 00:57:37 +02:00
parent ada1f84c0b
commit ceab517dfa
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 12 additions and 1 deletions

View File

@ -63,7 +63,7 @@
(current_play_domains |
combine(
current_play_domain_mappings_redirect |
items2dict(key_name='target', value_name='source'),
items2dict(key_name='source', value_name='source'),
recursive=True
)) |
generate_all_domains(

View File

@ -86,6 +86,17 @@ class TestDomainMappings(unittest.TestCase):
]
result = self.filter.domain_mappings(apps, self.primary)
self.assertCountEqual(result, expected)
def test_multiple_aliases(self):
apps = {
'app1': {'domains': {'aliases': ['a1.com','a2.com']}}
}
expected = [
{'source': 'a1.com', 'target': 'app1.example.com'},
{'source': 'a2.com', 'target': 'app1.example.com'}
]
result = self.filter.domain_mappings(apps, self.primary)
self.assertCountEqual(result, expected)
def test_invalid_aliases_type(self):
apps = {