Skip to content

Commit 5875e5d

Browse files
committed
.github: Add no-idp install tests in Nightly
1 parent 857c143 commit 5875e5d

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.github/actions/bastion-tests/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
description: "The pytest filter to use"
77
required: false
88
default: "post and ci and not multinode and not slow and not registry_ha"
9+
EXTRA_FILTER:
10+
description: "Extra pytest filter to add at the end"
11+
required: false
12+
default: ""
913
CONTROL_PLANE_INGRESS_VIP:
1014
description: "Virtual IP to use to test to reconfigure the Control Plane Ingress"
1115
required: false
@@ -37,4 +41,4 @@ runs:
3741
export BOOTSTRAP_BACKUP_ARCHIVE=\"${{ inputs.BOOTSTRAP_BACKUP_ARCHIVE }}\"
3842
export CONTROL_PLANE_INGRESS_VIP=\"${{ inputs.CONTROL_PLANE_INGRESS_VIP }}\"
3943
export WORKLOAD_PLANE_INGRESS_VIPS=\"${{ inputs.WORKLOAD_PLANE_INGRESS_VIPS }}\"
40-
tox -e tests -- -m \"${{ inputs.PYTEST_FILTERS }}\"
44+
tox -e tests -- -m \"${{ inputs.PYTEST_FILTERS }} ${{ inputs.EXTRA_FILTER }}\"

.github/workflows/nightly.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,15 @@ jobs:
169169
# NOTE: We add rocky-8 here even if it's already tested in pre-merge since
170170
# we also test solution install + upgrade there
171171
- rocky-8
172+
setup-idp: [true]
173+
include:
174+
- os: rocky-8
175+
setup-idp: false
172176
with:
173177
artifacts-url: ${{ needs.retrieve-info.outputs.artifacts-link }}
174178
os: ${{ matrix.os }}
175179
test-solution: true
180+
setup-idp: ${{ matrix.setup-idp }}
176181

177182
write-final-failed-status:
178183
runs-on: ubuntu-22.04

.github/workflows/single-node-test.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ on:
3737
type: boolean
3838
default: false
3939

40+
# Config information
41+
setup-idp:
42+
description: "Whether or not the internal IDP should be configured and tested"
43+
required: false
44+
type: boolean
45+
default: true
46+
4047
# Solution information
4148
solution-name:
4249
description: "The solution name to install"
@@ -65,7 +72,7 @@ on:
6572
default: "1.0.3"
6673

6774
env:
68-
NAME: single-node-${{ inputs.os }}
75+
NAME: single-node-${{ inputs.os }}-${{ inputs.setup-idp && 'idp' || 'no-idp' }}
6976

7077
jobs:
7178
single-node:
@@ -124,6 +131,8 @@ jobs:
124131
SOURCE_FILE: "metalk8s.iso"
125132
- name: Generate Bootstrap config
126133
uses: ./.github/actions/generate-bootstrap
134+
with:
135+
DEX_ENABLED: ${{ inputs.setup-idp }}
127136
- name: Mount MetalK8s ISO
128137
uses: ./.github/actions/mount-iso
129138
- name: Run Bootstrap
@@ -189,15 +198,18 @@ jobs:
189198
- name: Prepare bastion to run tests
190199
uses: ./.github/actions/prepare-bastion
191200
with:
192-
UI_DEPS: "true"
201+
UI_DEPS: ${{ inputs.setup-idp }}
193202
- name: Run Solutions CLI tests from Bastion
194203
if: inputs.test-solution
195204
uses: ./.github/actions/bastion-tests
196205
with:
197206
PYTEST_FILTERS: "solution"
198207
- name: Run tests from Bastion
199208
uses: ./.github/actions/bastion-tests
209+
with:
210+
EXTRA_FILTER: ${{ inputs.setup-idp && ' ' || 'and not authentication' }}
200211
- name: Run UI tests from Bastion
212+
if: inputs.setup-idp
201213
uses: ./.github/actions/bastion-ui-tests
202214
# }}}
203215

0 commit comments

Comments
 (0)