chore(e2e): Update go mod download to run on the correct user (#6227)

* chore(e2e): Ensure go modules are downloaded for test user

* chore(e2e): Add additional debug lines in script

* chore(e2e): Exclude boundary-ui clone when zipping boundary src
This commit is contained in:
Michael Li authored and GitHub committed 2025-11-07 12:03:27 -05:00
1 parent 4a7342b074
commit 89c577ddd7
2 files changed
+9 -2

No files matched your search

+4 -2
View File
@@ -325,7 +325,7 @@ resource "archive_file" "boundary_src_zip" {
type = "zip"
source_dir = var.boundary_src_path
output_path = "${path.root}/.terraform/tmp/boundary-src.zip"
excludes = ["**/enos/**", "**/node_modules/**", "bin/**", "**/.git/**", "plugins/**/*.gz", "website/**"]
excludes = ["**/enos/**", "**/node_modules/**", "bin/**", "**/.git/**", "plugins/**/*.gz", "website/**", "**/ui/.tmp/**"]
}
resource "enos_local_exec" "add_boundary_src" {
@@ -375,7 +375,9 @@ resource "enos_local_exec" "run_powershell_script" {
enos_local_exec.wait_for_ssh,
]
inline = ["ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no Administrator@${aws_instance.client.public_ip} ${local.test_dir}/${basename(local_file.powershell_script[0].filename)}"]
# running this script as test_username so that go modules will be set up for
# the user used for RDP tests
inline = ["ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${local.test_username}@${aws_instance.client.public_ip} ${local.test_dir}/${basename(local_file.powershell_script[0].filename)}"]
}
# used for debug