Skip to content

Commit

Permalink
[IOPLT-611] Add Load test users (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDore authored Jul 10, 2024
1 parent 6e85b62 commit 656dd72
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/call_code_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
type: string
required: false
description: List of environment variables to set up, given in env=value format.
use_private_agent:
description: Use a private agent to run the Terraform plan.
type: boolean
required: false
default: false

env:
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
Expand All @@ -26,7 +31,7 @@ env:
jobs:
tf_plan:
name: 'Terraform Plan'
runs-on: ubuntu-20.04
runs-on: ${{ inputs.use_private_agent == true && 'self-hosted' || 'ubuntu-20.04' }}
environment: ${{ inputs.environment }}-ci
permissions:
id-token: write
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/call_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
type: string
required: false
description: List of environment variables to set up, given in env=value format.
use_private_agent:
description: Use a private agent to run the Terraform plan.
type: boolean
required: false
default: false

env:
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
Expand All @@ -27,7 +32,7 @@ jobs:

tf_plan:
name: 'Terraform Plan'
runs-on: ubuntu-20.04
runs-on: ${{ inputs.use_private_agent == true && 'self-hosted' || 'ubuntu-20.04' }}
environment: ${{ inputs.environment }}-ci
permissions:
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/elt_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
with:
environment: prod
dir: "src/domains/elt/prod/westeurope"
use_private_agent: true
1 change: 1 addition & 0 deletions .github/workflows/elt_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
with:
environment: prod
dir: "src/domains/elt/prod/westeurope"
use_private_agent: true
6 changes: 4 additions & 2 deletions src/core/test_users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ locals {
]


test_users_fast_login_load_test = [
test_users_fast_login_load_test = concat([
for i in range(0, 1000) : format("LVTEST00A00A%03dX", i)
]
], [
for i in range(0, 1000) : format("LVTEST00A00B%03dX", i)
])

test_users_fast_login_load_test_light = [
for i in range(0, 200) : format("LVTEST00A00A%03dX", i)
Expand Down
1 change: 1 addition & 0 deletions src/domains/citizen-auth-app/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/domains/functions/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/domains/tests/test_users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ locals {
]

# A list of fiscal code to be uset to execute load test for Fast Login initiative on IO
test_users_fast_login_load_test = [
test_users_fast_login_load_test = concat([
for i in range(0, 1000) : format("LVTEST00A00A%03dX", i)
]
], [
for i in range(0, 1000) : format("LVTEST00A00B%03dX", i)
])

# A list of fiscal code to be used to test for Unique Email Enforcement initiative on IO
test_users_unique_email_test = [
Expand Down

0 comments on commit 656dd72

Please sign in to comment.