Skip to content

Commit 62e3d28

Browse files
mco-1595, mco-1596, mco-1597, mco-1598: implement 4/5 origin tests for MachineConfigNode
1 parent b05c002 commit 62e3d28

File tree

9 files changed

+1357
-0
lines changed

9 files changed

+1357
-0
lines changed

test/extended/machine_config/helpers.go

+751
Large diffs are not rendered by default.

test/extended/machine_config/machine_config_node.go

+386
Large diffs are not rendered by default.

test/extended/testdata/bindata.go

+143
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
metadata:
4+
labels:
5+
machineconfiguration.openshift.io/role: master
6+
name: 90-master-testfile
7+
spec:
8+
config:
9+
ignition:
10+
version: 3.2.0
11+
storage:
12+
files:
13+
- contents:
14+
source: data:,hello%20world%0A
15+
mode: 420
16+
path: /home/core/test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
metadata:
4+
labels:
5+
machineconfiguration.openshift.io/role: master
6+
name: 91-master-testfile-invalid
7+
spec:
8+
config:
9+
ignition:
10+
version: 3.2.0
11+
storage:
12+
files:
13+
- contents:
14+
source: data:,hello%20world%0A
15+
mode: 420
16+
path: /home/core
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
metadata:
4+
labels:
5+
machineconfiguration.openshift.io/role: worker
6+
name: 91-worker-testfile-invalid
7+
spec:
8+
config:
9+
ignition:
10+
version: 3.2.0
11+
storage:
12+
files:
13+
- contents:
14+
source: data:,hello%20world%0A
15+
mode: 420
16+
path: /home/core
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfigPool
3+
metadata:
4+
name: infra
5+
spec:
6+
machineConfigSelector:
7+
matchExpressions:
8+
- {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,infra]}
9+
nodeSelector:
10+
matchLabels:
11+
node-role.kubernetes.io/infra: ""

test/extended/util/annotate/generated/zz_generated.annotations.go

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zz_generated.manifests/test-reporting.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ spec:
9898
- testName: '[sig-imageregistry][OCPFeatureGate:ImageStreamImportMode][Serial]
9999
ImageStream API import mode should be PreserveOriginal or Legacy depending
100100
on desired.architecture field in the CV [apigroup:image.openshift.io]'
101+
- featureGate: MachineConfigNodes
102+
tests:
103+
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial]Should have
104+
MCN properties matching associated node properties [apigroup:machineconfiguration.openshift.io]'
105+
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial]Should properly
106+
transition through MCN conditions on node update [apigroup:machineconfiguration.openshift.io]'
107+
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial][Slow]Should
108+
properly create and remove MCN on node creation and deletion [apigroup:machineconfiguration.openshift.io]'
109+
- testName: '[sig-mco][OCPFeatureGate:MachineConfigNodes] [Serial][Slow]Should
110+
properly report MCN conditions on node degrade [apigroup:machineconfiguration.openshift.io]'
101111
- featureGate: ManagedBootImages
102112
tests:
103113
- testName: '[sig-mco][OCPFeatureGate:ManagedBootImages][Serial] Should degrade

0 commit comments

Comments
 (0)