Skip to content

Commit 5d42e2b

Browse files
committed
Refactor
1 parent 002796b commit 5d42e2b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

testing/benchmark/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ output "moxy_ip" {
4848
}
4949

5050
output "admin_console_url" {
51-
value = var.run_standalone ? "https://cloud.elastic.co/deployments" : module.ec_deployment[0].admin_console_url
51+
value = var.run_standalone ? (lower(var.ec_target) == "qa" ? "https://admin.qa.cld.elstc.co/deployments" : "https://admin.found.no/deployments") : module.ec_deployment[0].admin_console_url
5252
description = "The admin console URL"
5353
}

testing/infra/terraform/modules/ec_deployment/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
22
admin_console_urls = {
33
qa = "https://admin.qa.cld.elstc.co"
4-
pro = "https://cloud.elastic.co"
4+
pro = "https://admin.found.no"
55
}
66
}
77

testing/smoke/lib.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ ec_api_base_url() {
77
local ec_target="${EC_TARGET:-pro}"
88
case "${ec_target}" in
99
qa)
10-
echo "https://public-api.qa.cld.elstc.co/api/v1"
10+
echo "https://public-api.qa.cld.elstc.co"
1111
;;
1212
pro)
13-
echo "https://api.elastic-cloud.com/api/v1"
13+
echo "https://api.elastic-cloud.com"
1414
;;
1515
*)
1616
echo "-> Unsupported EC_TARGET: ${ec_target}. Valid values are: qa, pro." >&2
@@ -28,7 +28,7 @@ get_versions() {
2828
terraform_init
2929

3030
local REGION=$(echo var.region | terraform console | tr -d '"')
31-
local EC_VERSION_ENDPOINT="$(ec_api_base_url)/regions/${REGION}/stack/versions?show_deleted=false&show_unusable=false"
31+
local EC_VERSION_ENDPOINT="$(ec_api_base_url)/api/v1/regions/${REGION}/stack/versions?show_deleted=false&show_unusable=false"
3232
local RES
3333
local RC=0
3434
RES=$(curl_fail -H "Authorization: ApiKey ${EC_API_KEY}" ${EC_VERSION_ENDPOINT}) || RC=$?
@@ -64,7 +64,7 @@ get_latest_snapshot() {
6464
terraform_init
6565

6666
local REGION=$(echo var.region | terraform console | tr -d '"')
67-
local EC_VERSION_ENDPOINT="$(ec_api_base_url)/regions/${REGION}/stack/versions?show_deleted=false&show_unusable=true"
67+
local EC_VERSION_ENDPOINT="$(ec_api_base_url)/api/v1/regions/${REGION}/stack/versions?show_deleted=false&show_unusable=true"
6868
local RES
6969
local RC=0
7070
RES=$(curl_fail -H "Authorization: ApiKey ${EC_API_KEY}" ${EC_VERSION_ENDPOINT}) || RC=$?

0 commit comments

Comments
 (0)