Skip to content

Commit adbb9b8

Browse files
committed
fix(tests): update test environments
1 parent 559cefe commit adbb9b8

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

.github/config/environments.tf

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,26 @@ module "keyfactor_github_test_environment_ad_10_5_0" {
88
keyfactor_password = var.keyfactor_password_10_5_0
99
}
1010

11-
module "keyfactor_github_test_environment_11_5_0_kc" {
12-
source = "git::ssh://[email protected]/Keyfactor/terraform-module-keyfactor-github-test-environment-kc.git?ref=main"
11+
# module "keyfactor_github_test_environment_11_5_0_kc" {
12+
# source = "git::ssh://[email protected]/Keyfactor/terraform-module-keyfactor-github-test-environment-kc.git?ref=main"
13+
#
14+
# gh_environment_name = "KFC_11_5_0_KC"
15+
# gh_repo_name = data.github_repository.repo.name
16+
# keyfactor_hostname = var.keyfactor_hostname_11_5_0_KC
17+
# keyfactor_client_id = var.keyfactor_client_id_11_5_0
18+
# keyfactor_client_secret = var.keyfactor_client_secret_11_5_0
19+
# keyfactor_auth_hostname = var.keyfactor_auth_hostname_11_5_0_KC
20+
# keyfactor_tls_skip_verify = true
21+
# }
1322

14-
gh_environment_name = "KFC_11_5_0_KC"
23+
module "keyfactor_github_test_environment_12_3_0_kc" {
24+
source = "git::ssh://[email protected]/Keyfactor/terraform-module-keyfactor-github-test-environment-ad.git?ref=main"
25+
26+
gh_environment_name = "KFC_12_3_0_KC"
1527
gh_repo_name = data.github_repository.repo.name
16-
keyfactor_hostname = var.keyfactor_hostname_11_5_0_KC
17-
keyfactor_client_id = var.keyfactor_client_id_11_5_0
18-
keyfactor_client_secret = var.keyfactor_client_secret_11_5_0
19-
keyfactor_auth_hostname = var.keyfactor_auth_hostname_11_5_0_KC
28+
keyfactor_hostname = var.keyfactor_hostname_12_3_0_KC
29+
keyfactor_auth_token_url = var.keyfactor_auth_token_url_12_3_0_KC
30+
keyfactor_client_id = var.keyfactor_client_id_12_3_0
31+
keyfactor_client_secret = var.keyfactor_client_secret_12_3_0
2032
keyfactor_tls_skip_verify = true
2133
}
22-

.github/config/variables.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ variable "keyfactor_password_10_5_0" {
1414
type = string
1515
}
1616

17-
variable "keyfactor_client_id_11_5_0" {
17+
variable "keyfactor_client_id_12_3_0" {
1818
description = "The client ID to authenticate with the Keyfactor instance using Keycloak client credentials"
1919
type = string
2020
}
2121

22-
variable "keyfactor_client_secret_11_5_0" {
22+
variable "keyfactor_client_secret_12_3_0" {
2323
description = "The client secret to authenticate with the Keyfactor instance using Keycloak client credentials"
2424
type = string
2525
}
2626

27-
variable "keyfactor_hostname_11_5_0_KC" {
27+
variable "keyfactor_hostname_12_3_0_KC" {
2828
description = "The hostname of the Keyfactor instance"
2929
type = string
3030
default = "int-oidc-lab.eastus2.cloudapp.azure.com"
3131
}
3232

33-
variable "keyfactor_auth_hostname_11_5_0_KC" {
33+
variable "keyfactor_auth_token_url_12_3_0_KC" {
3434
description = "The hostname of the KeyCloak instance to authenticate to for a Keyfactor Command access token"
3535
type = string
36-
default = "int-oidc-lab.eastus2.cloudapp.azure.com"
36+
default = "https://int-oidc-lab.eastus2.cloudapp.azure.com:8444/realms/Keyfactor/protocol/openid-connect/token"
3737
}
3838

.github/workflows/go_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: Go Test Workflow
22

3-
on: [ push ]
3+
on:
4+
push:
5+
workflow_dispatch:
46

57
jobs:
68
test:
79
name: Run tests
810
runs-on: ubuntu-latest
911
strategy:
1012
matrix:
11-
environment: [ "KFC_10_5_0", "KFC_11_5_0_KC"]
13+
environment: [ "KFC_10_5_0", "KFC_12_3_0_KC"]
1214
environment: ${{ matrix.environment }}
1315
steps:
1416
- name: Check out code

0 commit comments

Comments
 (0)