Ensure that we don't add balancees with no health check runs if there is a health check defined on it

Change test behavior
This commit is contained in:
Bruce Lee 2017-01-28 08:01:37 -05:00
parent 29059b77a8
commit ad12a7264e
2 changed files with 4 additions and 1 deletions

View file

@ -264,6 +264,9 @@ func (provider *Marathon) taskFilter(task marathon.Task, applications *marathon.
return false
}
}
} else {
log.Debugf("Filtering marathon task %s with defined healthcheck as no healthcheck has run yet", task.AppID)
return false
}
}
return true

View file

@ -629,7 +629,7 @@ func TestMarathonTaskFilter(t *testing.T) {
},
},
},
expected: true,
expected: false,
exposedByDefault: true,
},
{