Closed wimax-grapl closed 2 years ago
Base: 34.44% // Head: 34.42% // Decreases project coverage by -0.01%
:warning:
Coverage data is based on head (
a3677cc
) compared to base (aa575b2
). Patch coverage: 0.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Which issue does this PR correspond to?
https://github.com/grapl-security/issue-tracker/issues/1063 https://app.zenhub.com/workspaces/grapl-6036cbd36bacff000ef314f2/issues/grapl-security/issue-tracker/1063
What changes does this PR make to Grapl? Why?
The current GetPluginHealth implementation is bad and wrong. It only checks "is the Nomad job running?" and not "is the Consul service healthy?" This is a stab at doing that. It seems to work.
Also added a test utility for checking eventual health (seems to happen in 20-30s after deploying a plugin)
How were these changes tested?
Integrated this RPC into tests. Itactually helped me catch a bug in grapl-web-ui!