mirror of
https://github.com/containers/podman.git
synced 2025-10-14 17:55:51 +08:00
Merge pull request #27195 from nimdrak/27118-2
test: fix "run healthcheck" bindings test
This commit is contained in:
@ -330,22 +330,9 @@ var _ = Describe("Podman containers ", func() {
|
|||||||
code, _ = bindings.CheckResponseCode(err)
|
code, _ = bindings.CheckResponseCode(err)
|
||||||
Expect(code).To(BeNumerically("==", http.StatusConflict))
|
Expect(code).To(BeNumerically("==", http.StatusConflict))
|
||||||
|
|
||||||
// TODO for the life of me, i cannot get this to work. maybe another set
|
result, err := containers.RunHealthCheck(bt.conn, "hc", nil)
|
||||||
// of eyes will
|
Expect(err).ToNot(HaveOccurred())
|
||||||
// successful healthcheck
|
Expect(result.Status).To(Equal(define.HealthCheckHealthy))
|
||||||
// status := define.HealthCheckHealthy
|
|
||||||
// for i:=0; i < 10; i++ {
|
|
||||||
// result, err := containers.RunHealthCheck(connText, "hc")
|
|
||||||
// Expect(err).To(BeNil())
|
|
||||||
// if result.Status != define.HealthCheckHealthy {
|
|
||||||
// fmt.Println("Healthcheck container still starting, retrying in 1 second")
|
|
||||||
// time.Sleep(1 * time.Second)
|
|
||||||
// continue
|
|
||||||
// }
|
|
||||||
// status = result.Status
|
|
||||||
// break
|
|
||||||
// }
|
|
||||||
// Expect(status).To(Equal(define.HealthCheckHealthy))
|
|
||||||
|
|
||||||
// TODO enable this when wait is working
|
// TODO enable this when wait is working
|
||||||
// healthcheck on a stopped container should be a 409
|
// healthcheck on a stopped container should be a 409
|
||||||
|
Reference in New Issue
Block a user