chore(e2e): Wait until worker log shows connection is ready (#6676)
(cherry picked from commit 7a8425212e8de2b716e451828814c6177442084f)
This commit is contained in:
1 parent
f19f776234
commit
c2eca9ab3d
6 files changed
+49
No files matched your search
@@ -33,6 +33,11 @@ variable "script" {
|
||||
description = "Filename of a script in the module directory to run"
|
||||
type = string
|
||||
}
|
||||
variable "worker_name" {
|
||||
description = "Name of worker to look up"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
variable "worker_token" {
|
||||
description = "Worker generated auth token"
|
||||
type = string
|
||||
@@ -69,6 +74,7 @@ resource "enos_local_exec" "run_script" {
|
||||
SCRIPT = "${abspath(path.module)}/${var.script}"
|
||||
BOUNDARY_TOKEN = local.auth_token
|
||||
WORKER_TOKEN = var.worker_token
|
||||
WORKER_NAME = var.worker_name
|
||||
}
|
||||
inline = ["bash ./${path.module}/script_runner.sh"]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user