Skip to content

Commit

Permalink
Add feature test
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Sep 17, 2024
1 parent 20eb2cc commit f630a59
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/feature/features/coordinator_show.feature
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,31 @@ Feature: Coordinator show clients, pools and backend_connections
]
"""

Scenario: show backend_connections works
When I run SQL on host "coordinator"
"""
SHOW backend_connections GROUP BY hostname
"""
Then command return code should be "0"
And SQL result should match json
"""
[
{
"hostname":"spqr_shard_2:6432",
"connections count": 2
}
]
"""
And SQL result should match json
"""
[
{
"hostname":"spqr_shard_1:6432",
"connections count": 2
}
]
"""

Scenario: show backend_connections collects data from 2 routers
When I run SQL on host "coordinator"
"""
Expand Down

0 comments on commit f630a59

Please sign in to comment.