in dstester/dstester.go [428:454]
func (o Operation) Do(tf Terraform) (bool, error) {
i := o.Interval
a := o.Attempts
if a == 0 {
a = 50
}
if i == 0 {
i = 5
}
val, err := tf.Output(o.Output)
if err != nil {
return false, err
}
switch o.Type {
case "httpPoll":
return httpPoll(val, o.Query, a, i)
case "sleep":
return sleep(i)
case "customCheck":
return customCheck(o.Custom)
}
return false, ErrorCheckFail
}