Skip to content

Commit de68d23

Browse files
author
Moritz Clasmeier
committed
Make resource profile for e2e tests parameterizable.
Written by Claude.
1 parent 2c7fcae commit de68d23

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/e2e-tests-kind.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
env:
1818
SKIP_OLM_TESTS: "true"
19+
# TODO: Once the config-file-first approach lands, this will be changed from an
20+
# environment variable to configuring a YAML configuration file, which will be
21+
# used by the e2e tests.
22+
ROXIE_RESOURCE_PROFILE: "tiny"
1923
steps:
2024
- name: Checkout
2125
uses: actions/checkout@v6

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
KUBECONFIG: /github/home/artifacts/kubeconfig
3232
INFRA_TOKEN: ${{ secrets.INFRA_CI_TOKEN }}
3333
INFRACTL: bin/infractl -k -e localhost:8443
34+
# TODO: Once the config-file-first approach lands, this will be changed from an
35+
# environment variable to configuring a YAML configuration file, which will be
36+
# used by the e2e tests.
37+
ROXIE_RESOURCE_PROFILE: "small"
3438
steps:
3539
- name: Checkout
3640
uses: actions/checkout@v6

tests/e2e/helpers.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,19 @@ const (
2929
)
3030

3131
var (
32-
commonDeployArgs = []string{"--resources=small"}
32+
commonDeployArgs = deployArgsFromEnv()
3333

3434
roxieBinary = "roxie"
3535
)
3636

37+
func deployArgsFromEnv() []string {
38+
profile := os.Getenv("ROXIE_RESOURCE_PROFILE")
39+
if profile == "" {
40+
profile = "small"
41+
}
42+
return []string{"--resources=" + profile}
43+
}
44+
3745
func teardownAllDeployments() error {
3846
fmt.Println("=== Tearing down all deployments before running tests ===")
3947

0 commit comments

Comments
 (0)