diff --git a/test/service/test_domain_config_service.py b/test/service/test_domain_config_service.py index 500aa3e..15dc55e 100644 --- a/test/service/test_domain_config_service.py +++ b/test/service/test_domain_config_service.py @@ -190,7 +190,7 @@ def test_stat_domain_configs(self, *args): params = { 'domain_id': self.domain_id, 'query': { - 'aggregate': { + 'aggregate': [{ 'group': { 'keys': [{ 'key': 'name', @@ -201,11 +201,12 @@ def test_stat_domain_configs(self, *args): 'name': 'Count' }] } - }, - 'sort': { - 'name': 'Count', - 'desc': True - } + }, { + 'sort': { + 'key': 'Count', + 'desc': True + } + }] } } diff --git a/test/service/test_user_config_service.py b/test/service/test_user_config_service.py index 7711898..0460f15 100644 --- a/test/service/test_user_config_service.py +++ b/test/service/test_user_config_service.py @@ -186,7 +186,7 @@ def test_stat_user_configs(self, *args): params = { 'domain_id': self.domain_id, 'query': { - 'aggregate': { + 'aggregate': [{ 'group': { 'keys': [{ 'key': 'name', @@ -197,11 +197,12 @@ def test_stat_user_configs(self, *args): 'name': 'Count' }] } - }, - 'sort': { - 'name': 'Count', - 'desc': True - } + }, { + 'sort': { + 'key': 'Count', + 'desc': True + } + }] } }