Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[consul] more accurate nodes_* and services_* gauges #2130

Merged
merged 6 commits into from
Dec 7, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the mock to reflect the new API call
Mike Tougeron authored and talwai committed Dec 4, 2015

Verified

This commit was signed with the committer’s verified signature.
addaleax Anna Henningsen
commit 25037d8c16a16e4e5fb81a0c6fb359dd56126a99
34 changes: 25 additions & 9 deletions tests/checks/mock/test_consul.py
Original file line number Diff line number Diff line change
@@ -121,15 +121,31 @@ def _get_random_ip():

return [
{
"Address": _get_random_ip(),
"Node": "node-1",
"ServiceAddress": "",
"ServiceID": service,
"ServiceName": service,
"ServicePort": 80,
"ServiceTags": [
"az-us-east-1a"
]
"Checks": [
{
"CheckID": "serfHealth",
"Name": "Serf Health Status",
"Node": "node-1",
"Notes": "",
"Output": "Agent alive and reachable",
"ServiceID": "",
"ServiceName": "",
"Status": "passing"
}
],
"Node": {
"Address": _get_random_ip(),
"Node": "node-1"
},
"Service": {
"Address": "",
"ID": service,
"Port": 80,
"Service": service,
"Tags": [
"az-us-east-1a"
]
}
}
]