Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCO-1520: Add MachineConfigNode e2e tests #29596

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/extended/machine_config/OWNERS
Original file line number Diff line number Diff line change
@@ -3,8 +3,18 @@ approvers:
- dkhater-redhat
- yuqi-zhang
- cheesesashimi
- umohnani8
- LorbusChris
- RishabhSaini
- isabella-janssen
- pablintino
reviewers:
- djoshy
- dkhater-redhat
- yuqi-zhang
- cheesesashimi
- umohnani8
- LorbusChris
- RishabhSaini
- isabella-janssen
- pablintino
837 changes: 837 additions & 0 deletions test/extended/machine_config/helpers.go

Large diffs are not rendered by default.

522 changes: 522 additions & 0 deletions test/extended/machine_config/machine_config_node.go

Large diffs are not rendered by default.

179 changes: 179 additions & 0 deletions test/extended/testdata/bindata.go

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: infra
name: 90-infra-testfile
spec:
config:
ignition:
version: 3.2.0
storage:
files:
- contents:
source: data:,hello%20world%0A
mode: 420
path: /home/core/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 90-master-testfile
spec:
config:
ignition:
version: 3.2.0
storage:
files:
- contents:
source: data:,hello%20world%0A
mode: 420
path: /home/core/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 91-master-testfile-invalid
spec:
config:
ignition:
version: 3.2.0
storage:
files:
- contents:
source: data:,hello%20world%0A
mode: 420
path: /home/core
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 91-worker-testfile-invalid
spec:
config:
ignition:
version: 3.2.0
storage:
files:
- contents:
source: data:,hello%20world%0A
mode: 420
path: /home/core
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfigPool
metadata:
name: infra
spec:
machineConfigSelector:
matchExpressions:
- {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,infra]}
nodeSelector:
matchLabels:
node-role.kubernetes.io/infra: ""
14 changes: 14 additions & 0 deletions test/extended/util/annotate/generated/zz_generated.annotations.go

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

16 changes: 16 additions & 0 deletions zz_generated.manifests/test-reporting.yaml
Original file line number Diff line number Diff line change
@@ -98,6 +98,22 @@ spec:
- testName: '[sig-imageregistry][OCPFeatureGate:ImageStreamImportMode][Serial]
ImageStream API import mode should be PreserveOriginal or Legacy depending
on desired.architecture field in the CV [apigroup:image.openshift.io]'
- featureGate: MachineConfigNodes
tests:
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] Should properly block
MCN updates by impersonation of the MCD SA [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] Should properly block
MCN updates from a MCD that is not the associated one [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] Should properly update
the MCN from the associated MCD [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial]Should have
MCN properties matching associated node properties [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial]Should properly
transition through MCN conditions on node update [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial][Slow]Should
properly create and remove MCN on node creation and deletion [apigroup:machineconfiguration.openshift.io]'
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial][Slow]Should
properly report MCN conditions on node degrade [apigroup:machineconfiguration.openshift.io]'
- featureGate: ManagedBootImages
tests:
- testName: '[sig-mco][OCPFeatureGate:ManagedBootImages][Serial] Should degrade