refact(e2e): Enable token to be passed into methods (#6248)

* ce: chore(e2e): Address setup flakiness when getting hostname
* ce: refact(e2e): Enable token to be passed into methods
Co-authored-by: Michael Li <michael.li@hashicorp.com>
This commit is contained in:
dillanb-hashi authored and GitHub committed 2025-11-13 13:19:33 -07:00
1 parent 1a135dd711
commit d0050ad881
49 files changed
+195 -151

No files matched your search

+3 -3
View File
@@ -249,9 +249,9 @@ locals {
private_key = abspath(var.domain_controller_private_key)
}
resource "time_sleep" "wait_2_minutes" {
resource "time_sleep" "wait_5_minutes" {
depends_on = [aws_instance.member_server]
create_duration = "2m"
create_duration = "5m"
}
# wait for the SSH service to be available on the instance. We specifically use
@@ -259,7 +259,7 @@ resource "time_sleep" "wait_2_minutes" {
# can just SSH using the private key
resource "enos_local_exec" "wait_for_ssh" {
count = var.server_version != "2016" ? 1 : 0
depends_on = [time_sleep.wait_2_minutes]
depends_on = [time_sleep.wait_5_minutes]
inline = ["timeout 600s bash -c 'until ssh -i ${local.private_key} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no Administrator@${aws_instance.member_server.public_ip} \"echo ready\"; do sleep 10; done'"]
}