Skip to content

Commit

Permalink
GQL Changes for /health endpoint's Enterprise features info. (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
parasssh authored Apr 28, 2020
1 parent 31f0f08 commit b339a21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graphql/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ const (
List of predicates for which indexes are built in the background.
"""
indexing: [String]
"""
List of Enterprise Features that are enabled.
"""
ee_features: [String]
}
type MembershipState {
Expand Down
2 changes: 2 additions & 0 deletions graphql/e2e/common/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ func health(t *testing.T) {
version
uptime
lastEcho
ee_features
}
}`,
}
Expand All @@ -421,6 +422,7 @@ func health(t *testing.T) {
opts := []cmp.Option{
cmpopts.IgnoreFields(pb.HealthInfo{}, "Uptime"),
cmpopts.IgnoreFields(pb.HealthInfo{}, "LastEcho"),
cmpopts.EquateEmpty(),
}
if diff := cmp.Diff(health, result.Health, opts...); diff != "" {
t.Errorf("result mismatch (-want +got):\n%s", diff)
Expand Down

0 comments on commit b339a21

Please sign in to comment.