Skip to content

test: fix "run healthcheck" bindings test #27118

@Luap99

Description

@Luap99

Fix commented out test case for the healtcheck bindings

// TODO for the life of me, i cannot get this to work. maybe another set
// of eyes will
// successful healthcheck
// 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
// healthcheck on a stopped container should be a 409
// err = containers.Stop(connText, "hc", nil)
// Expect(err).To(BeNil())
// _, err = containers.Wait(connText, "hc")
// Expect(err).To(BeNil())
// _, err = containers.RunHealthCheck(connText, "hc")
// code, _ = bindings.CheckResponseCode(err)
// Expect(code).To(BeNumerically("==", http.StatusConflict))

Metadata

Metadata

Labels

Good First IssueThis issue would be a good issue for a first time contributor to undertake.triagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions