Skip to content

Commit

Permalink
Add ServiceTags to the health check endpoint (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammychinedu2ky authored Oct 13, 2023
1 parent eef23dc commit d3b7040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Consul.Test/HealthTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public async Task Health_Checks()
var checks = await _client.Health.Checks(svcID);
Assert.NotEqual((ulong)0, checks.LastIndex);
Assert.NotEmpty(checks.Response);
Assert.Equal(checks.Response[0].ServiceTags, registration.Tags);
}
finally
{
Expand Down
1 change: 1 addition & 0 deletions Consul/Health.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public class HealthCheck
public string Output { get; set; }
public string ServiceID { get; set; }
public string ServiceName { get; set; }
public string[] ServiceTags { get; set; }
public string Type { get; set; }
}

Expand Down

0 comments on commit d3b7040

Please sign in to comment.