Skip to content

Commit 27953f6

Browse files
author
Moritz Clasmeier
committed
Make resource profile for e2e tests parameterizable.
Written by Claude.
1 parent 1fa9b29 commit 27953f6

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
@@ -26,11 +26,19 @@ const (
2626
)
2727

2828
var (
29-
commonDeployArgs = []string{"--resources=small"}
29+
commonDeployArgs = deployArgsFromEnv()
3030

3131
roxieBinary = "roxie"
3232
)
3333

34+
func deployArgsFromEnv() []string {
35+
profile := os.Getenv("ROXIE_RESOURCE_PROFILE")
36+
if profile == "" {
37+
profile = "small"
38+
}
39+
return []string{"--resources=" + profile}
40+
}
41+
3442
func teardownAllDeployments() error {
3543
fmt.Println("=== Tearing down all deployments before running tests ===")
3644

0 commit comments

Comments
 (0)