chore(e2e): Update test attributes for new builds (#3189)
This commit is contained in:
1 parent
b88050a4c4
commit
9a050ec15a
13 files changed
+109
-49
No files matched your search
@@ -11,7 +11,7 @@ module "bats_deps" {
|
||||
|
||||
module "boundary" {
|
||||
source = "app.terraform.io/hashicorp-qti/aws-boundary/enos"
|
||||
version = ">= 0.5.0"
|
||||
version = ">= 0.6.2"
|
||||
|
||||
project_name = "qti-enos-boundary"
|
||||
environment = var.environment
|
||||
@@ -22,8 +22,9 @@ module "boundary" {
|
||||
"Environment" : var.environment
|
||||
}
|
||||
|
||||
ssh_aws_keypair = var.aws_ssh_keypair_name
|
||||
alb_listener_api_port = var.alb_listener_api_port
|
||||
boundary_binary_name = var.boundary_binary_name
|
||||
ssh_aws_keypair = var.aws_ssh_keypair_name
|
||||
}
|
||||
|
||||
module "worker" {
|
||||
@@ -79,6 +80,10 @@ module "infra" {
|
||||
}
|
||||
}
|
||||
|
||||
module "read_license" {
|
||||
source = "./modules/read_license"
|
||||
}
|
||||
|
||||
module "random_stringifier" {
|
||||
source = "./modules/random_stringifier"
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ scenario "e2e_aws" {
|
||||
aws_ssh_private_key_path = abspath(var.aws_ssh_private_key_path)
|
||||
boundary_install_dir = abspath(var.boundary_install_dir)
|
||||
local_boundary_dir = abspath(var.local_boundary_dir)
|
||||
license_path = abspath(var.boundary_license_path != null ? var.boundary_license_path : joinpath(path.root, "./support/boundary.hclic"))
|
||||
build_path = {
|
||||
"local" = "/tmp",
|
||||
"crt" = var.crt_bundle_path == null ? null : abspath(var.crt_bundle_path)
|
||||
@@ -40,6 +41,15 @@ scenario "e2e_aws" {
|
||||
}
|
||||
}
|
||||
|
||||
step "read_license" {
|
||||
skip_step = var.boundary_edition == "oss"
|
||||
module = module.read_license
|
||||
|
||||
variables {
|
||||
file_name = local.license_path
|
||||
}
|
||||
}
|
||||
|
||||
step "create_db_password" {
|
||||
module = module.random_stringifier
|
||||
}
|
||||
@@ -74,6 +84,7 @@ scenario "e2e_aws" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
boundary_license = var.boundary_edition != "oss" ? step.read_license.license : null
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
|
||||
@@ -16,6 +16,7 @@ scenario "e2e_static_with_vault" {
|
||||
locals {
|
||||
aws_ssh_private_key_path = abspath(var.aws_ssh_private_key_path)
|
||||
boundary_install_dir = abspath(var.boundary_install_dir)
|
||||
boundary_license_path = abspath(var.boundary_license_path != null ? var.boundary_license_path : joinpath(path.root, "./support/boundary.hclic"))
|
||||
local_boundary_dir = abspath(var.local_boundary_dir)
|
||||
build_path = {
|
||||
"local" = "/tmp",
|
||||
@@ -39,6 +40,15 @@ scenario "e2e_static_with_vault" {
|
||||
}
|
||||
}
|
||||
|
||||
step "read_license" {
|
||||
skip_step = var.boundary_edition == "oss"
|
||||
module = module.read_license
|
||||
|
||||
variables {
|
||||
file_name = local.license_path
|
||||
}
|
||||
}
|
||||
|
||||
step "create_db_password" {
|
||||
module = module.random_stringifier
|
||||
}
|
||||
@@ -73,6 +83,7 @@ scenario "e2e_static_with_vault" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
boundary_license = var.boundary_edition != "oss" ? step.read_license.license : null
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
|
||||
@@ -16,6 +16,7 @@ scenario "e2e_static" {
|
||||
locals {
|
||||
aws_ssh_private_key_path = abspath(var.aws_ssh_private_key_path)
|
||||
boundary_install_dir = abspath(var.boundary_install_dir)
|
||||
license_path = abspath(var.boundary_license_path != null ? var.boundary_license_path : joinpath(path.root, "./support/boundary.hclic"))
|
||||
local_boundary_dir = abspath(var.local_boundary_dir)
|
||||
build_path = {
|
||||
"local" = "/tmp",
|
||||
@@ -39,6 +40,15 @@ scenario "e2e_static" {
|
||||
}
|
||||
}
|
||||
|
||||
step "read_license" {
|
||||
skip_step = var.boundary_edition == "oss"
|
||||
module = module.read_license
|
||||
|
||||
variables {
|
||||
file_name = local.license_path
|
||||
}
|
||||
}
|
||||
|
||||
step "create_db_password" {
|
||||
module = module.random_stringifier
|
||||
}
|
||||
@@ -73,6 +83,7 @@ scenario "e2e_static" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
boundary_license = var.boundary_edition != "oss" ? step.read_license.license : null
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
|
||||
@@ -16,6 +16,7 @@ scenario "e2e_ui" {
|
||||
locals {
|
||||
aws_ssh_private_key_path = abspath(var.aws_ssh_private_key_path)
|
||||
boundary_install_dir = abspath(var.boundary_install_dir)
|
||||
license_path = abspath(var.boundary_license_path != null ? var.boundary_license_path : joinpath(path.root, "./support/boundary.hclic"))
|
||||
local_boundary_dir = abspath(var.local_boundary_dir)
|
||||
local_boundary_ui_dir = abspath(var.local_boundary_ui_dir)
|
||||
build_path = {
|
||||
@@ -40,6 +41,15 @@ scenario "e2e_ui" {
|
||||
}
|
||||
}
|
||||
|
||||
step "read_license" {
|
||||
skip_step = var.boundary_edition == "oss"
|
||||
module = module.read_license
|
||||
|
||||
variables {
|
||||
file_name = local.license_path
|
||||
}
|
||||
}
|
||||
|
||||
step "create_db_password" {
|
||||
module = module.random_stringifier
|
||||
}
|
||||
@@ -74,6 +84,7 @@ scenario "e2e_ui" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
boundary_license = var.boundary_edition != "oss" ? step.read_license.license : null
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
|
||||
@@ -154,3 +154,21 @@ variable "docker_mirror" {
|
||||
type = string
|
||||
default = "docker.mirror.hashicorp.services"
|
||||
}
|
||||
|
||||
variable "boundary_binary_name" {
|
||||
description = "Boundary binary name"
|
||||
type = string
|
||||
default = "boundary"
|
||||
}
|
||||
|
||||
variable "boundary_edition" {
|
||||
description = "Edition of boundary build"
|
||||
type = string
|
||||
default = "oss"
|
||||
}
|
||||
|
||||
variable "boundary_license_path" {
|
||||
description = "Boundary license path"
|
||||
type = string
|
||||
default = null
|
||||
}
|
||||
@@ -32,6 +32,15 @@
|
||||
// The directory that contains the copy of boundary-ui you want to use for UI tests
|
||||
// local_boundary_ui_dir = "/Users/<user>/Developer/boundary-ui"
|
||||
|
||||
// Path to a license file if required
|
||||
// boundary_license_path = "./support/boundary.hclic"
|
||||
|
||||
// Built binary custom name, if not "boundary"
|
||||
// boundary_binary_name = "boundary"
|
||||
|
||||
// Build edition from CRT
|
||||
// boundary_edition = "oss"
|
||||
|
||||
// The path to the installation bundle for the target machines. The existing
|
||||
// scenarios all use linux/amd64 architecture so bundle ought to match that
|
||||
// architecture. This is only used for variants which use the `crt` builder
|
||||
|
||||
@@ -17,6 +17,10 @@ variable "build_target" {
|
||||
default = "build-ui build"
|
||||
}
|
||||
|
||||
variable "binary_name" {
|
||||
default = "boundary"
|
||||
}
|
||||
|
||||
variable "edition" {
|
||||
default = "oss"
|
||||
}
|
||||
@@ -27,6 +31,7 @@ resource "enos_local_exec" "build" {
|
||||
"GOARCH" = "amd64",
|
||||
"CGO_ENABLED" = 0,
|
||||
"ARTIFACT_PATH" = var.path
|
||||
"BINARY_NAME" = var.binary_name
|
||||
"BUILD_TARGET" = var.build_target
|
||||
"EDITION" = var.edition
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ root_dir="$(git rev-parse --show-toplevel)"
|
||||
pushd "${root_dir}" > /dev/null
|
||||
|
||||
make ${BUILD_TARGET}
|
||||
zip -j ${ARTIFACT_PATH}/boundary.zip bin/boundary
|
||||
zip -j ${ARTIFACT_PATH}/boundary.zip bin/${BINARY_NAME}
|
||||
|
||||
popd > /dev/null
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
variable "file_name" {}
|
||||
|
||||
output "license" {
|
||||
value = file(var.file_name)
|
||||
}
|
||||
@@ -78,7 +78,7 @@ resource "aws_security_group" "default" {
|
||||
from_port = 22
|
||||
to_port = 22
|
||||
protocol = "tcp"
|
||||
cidr_blocks = ["${data.enos_environment.current.public_ip_address}/32"]
|
||||
cidr_blocks = flatten([formatlist("%s/32", data.enos_environment.current.public_ipv4_addresses)])
|
||||
}
|
||||
|
||||
ingress {
|
||||
|
||||
Reference in new issue
Block a user