Skip to content

Commit

Permalink
Change stat api's test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Jongmin Kim <[email protected]>
  • Loading branch information
whdalsrnt committed Feb 9, 2021
1 parent 30375d0 commit 3278473
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions test/service/test_domain_config_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_stat_domain_configs(self, *args):
params = {
'domain_id': self.domain_id,
'query': {
'aggregate': {
'aggregate': [{
'group': {
'keys': [{
'key': 'name',
Expand All @@ -201,11 +201,12 @@ def test_stat_domain_configs(self, *args):
'name': 'Count'
}]
}
},
'sort': {
'name': 'Count',
'desc': True
}
}, {
'sort': {
'key': 'Count',
'desc': True
}
}]
}
}

Expand Down
13 changes: 7 additions & 6 deletions test/service/test_user_config_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_stat_user_configs(self, *args):
params = {
'domain_id': self.domain_id,
'query': {
'aggregate': {
'aggregate': [{
'group': {
'keys': [{
'key': 'name',
Expand All @@ -197,11 +197,12 @@ def test_stat_user_configs(self, *args):
'name': 'Count'
}]
}
},
'sort': {
'name': 'Count',
'desc': True
}
}, {
'sort': {
'key': 'Count',
'desc': True
}
}]
}
}

Expand Down

0 comments on commit 3278473

Please sign in to comment.