mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Solved alias domain bug for mysql.cymais.cloud, mariadb.cymais.cloud in context of docker-phpmyadmin
This commit is contained in:
		| @@ -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( | ||||
|   | ||||
| @@ -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 = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user