chore(e2e): Added support for boundary license to be an env for enos (#5704)
* chore(e2e): Added support for boundary license to be an env for enos
This commit is contained in:
1 parent
5f740b3650
commit
1e8c345126
16 files changed
+32
-2
No files matched your search
@@ -46,6 +46,7 @@ scenario "e2e_aws_base_with_vault" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ scenario "e2e_aws_base" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ scenario "e2e_aws" {
|
||||
|
||||
variables {
|
||||
license_path = local.boundary_license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ scenario "e2e_database" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ scenario "e2e_docker_base_plus" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ scenario "e2e_docker_base_with_gcp" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ scenario "e2e_docker_base_with_vault" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ scenario "e2e_docker_base_with_worker" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ scenario "e2e_docker_base" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ scenario "e2e_docker_worker_registration_controller_led" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ scenario "e2e_docker_worker_registration_worker_led" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ scenario "e2e_ui_aws" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ scenario "e2e_ui_docker" {
|
||||
|
||||
variables {
|
||||
license_path = local.license_path
|
||||
license = var.boundary_license
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -175,6 +175,12 @@ variable "boundary_license_path" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "boundary_license" {
|
||||
description = "Boundary license"
|
||||
type = string
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "vault_license_path" {
|
||||
description = "Vault license path"
|
||||
type = string
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
// ENTERPRISE ONLY
|
||||
// Path to a license file
|
||||
// boundary_license_path = "./support/boundary.hclic"
|
||||
// Directly set the boundary license. Overrides boundary license file.
|
||||
// boundary_license = ""
|
||||
|
||||
// ==============================================================================
|
||||
// OPTIONAL VARIABLES
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
variable "license_path" {}
|
||||
|
||||
# Loads boundary license from file or environment variable
|
||||
# If license is null or not provided, then the license is returned from the file at license_path
|
||||
variable "license_path" {
|
||||
description = "Path to the boundary license file"
|
||||
}
|
||||
variable "license" {
|
||||
description = "Boundary license"
|
||||
default = null
|
||||
}
|
||||
|
||||
output "license" {
|
||||
value = file(var.license_path)
|
||||
value = var.license != null ? var.license : file(var.license_path)
|
||||
}
|
||||
Reference in new issue
Block a user