mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-06-25 03:38:59 +02:00
Solved alias domain bug for mysql.cymais.cloud, mariadb.cymais.cloud in context of docker-phpmyadmin
This commit is contained in:
parent
ada1f84c0b
commit
ceab517dfa
@ -63,7 +63,7 @@
|
|||||||
(current_play_domains |
|
(current_play_domains |
|
||||||
combine(
|
combine(
|
||||||
current_play_domain_mappings_redirect |
|
current_play_domain_mappings_redirect |
|
||||||
items2dict(key_name='target', value_name='source'),
|
items2dict(key_name='source', value_name='source'),
|
||||||
recursive=True
|
recursive=True
|
||||||
)) |
|
)) |
|
||||||
generate_all_domains(
|
generate_all_domains(
|
||||||
|
@ -87,6 +87,17 @@ class TestDomainMappings(unittest.TestCase):
|
|||||||
result = self.filter.domain_mappings(apps, self.primary)
|
result = self.filter.domain_mappings(apps, self.primary)
|
||||||
self.assertCountEqual(result, expected)
|
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):
|
def test_invalid_aliases_type(self):
|
||||||
apps = {
|
apps = {
|
||||||
'app1': {'domains': {'aliases': 123}}
|
'app1': {'domains': {'aliases': 123}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user