demo nomad problem

This commit is contained in:
Hans Hasselberg 2019-01-24 16:45:54 +01:00
parent 28b94ccd3e
commit fc2f2b6bd7
1 changed files with 9 additions and 0 deletions

View File

@ -640,6 +640,15 @@ func TestStructs_HealthCheck_IsSame(t *testing.T) {
checkStringField(&other.ServiceName)
}
func TestStructs_HealthCheck_Unmarshalling(t *testing.T) {
d := &HealthCheckDefinition{}
buf, err := d.MarshalJSON()
require.NoError(t, err)
require.NotContains(t, string(buf), `"Interval":""`)
require.NotContains(t, string(buf), `"Timeout":""`)
require.NotContains(t, string(buf), `"DeregisterCriticalServiceAfter":""`)
}
func TestStructs_HealthCheck_Clone(t *testing.T) {
hc := &HealthCheck{
Node: "node1",