From 327847306803d5559054a25a0f15fbbba67b8e74 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Tue, 9 Feb 2021 16:13:08 +0900 Subject: [PATCH] Change stat api's test cases Signed-off-by: Jongmin Kim --- test/service/test_domain_config_service.py | 13 +++++++------ test/service/test_user_config_service.py | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) 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 + } + }] } }