chore(e2e): Wait until worker log shows connection is ready (#6676)

(cherry picked from commit 7a8425212e8de2b716e451828814c6177442084f)
This commit is contained in:
Michael Li authored and GitHub committed 2026-05-06 10:06:27 -04:00
1 parent f19f776234
commit c2eca9ab3d
6 files changed
+49

No files matched your search

@@ -0,0 +1,23 @@
# Copyright IBM Corp. 2020, 2026
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
enos = {
source = "registry.terraform.io/hashicorp-forge/enos"
}
}
}
variable "container_name" {
description = "Name of docker container to inspect"
}
variable "worker_id" {
description = "worker id"
type = string
}
resource "enos_local_exec" "check_log" {
inline = ["timeout 10s bash -c 'until docker logs ${var.container_name} 2>&1 | grep \"new control plane connection saved.*${var.worker_id}\"; do sleep 2; done'"]
}