-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Machine API test files for FeatureGates
- Loading branch information
Showing
14 changed files
with
1,091 additions
and
52 deletions.
There are no files selected for viewing
488 changes: 488 additions & 0 deletions
488
machine/v1/custom.controlplanemachineset.testsuite.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
machine/v1/stable.controlplanemachineset.openstack.testsuite.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
machine/v1/stable.controlplanemachineset.vsphere.testsuite.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "[Stable] ControlPlaneMachineSet" | ||
crd: 0000_10_control-plane-machine-set_01_controlplanemachinesets-Default.crd.yaml | ||
tests: | ||
onCreate: | ||
- name: Should reject an VSphere platform failure domain without any VSphere config | ||
initial: | | ||
apiVersion: machine.openshift.io/v1 | ||
kind: ControlPlaneMachineSet | ||
spec: | ||
selector: | ||
matchLabels: | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
template: | ||
machineType: machines_v1beta1_machine_openshift_io | ||
machines_v1beta1_machine_openshift_io: | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
machine.openshift.io/cluster-api-cluster: cluster | ||
spec: | ||
providerSpec: {} | ||
failureDomains: | ||
platform: VSphere | ||
expectedError: "spec.template.machines_v1beta1_machine_openshift_io.failureDomains: Invalid value: \"object\": vsphere configuration is required when platform is VSphere" | ||
- name: Should reject an VSphere configured failure domain without a platform type | ||
initial: | | ||
apiVersion: machine.openshift.io/v1 | ||
kind: ControlPlaneMachineSet | ||
spec: | ||
selector: | ||
matchLabels: | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
template: | ||
machineType: machines_v1beta1_machine_openshift_io | ||
machines_v1beta1_machine_openshift_io: | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-machine-role: master | ||
machine.openshift.io/cluster-api-machine-type: master | ||
machine.openshift.io/cluster-api-cluster: cluster | ||
spec: | ||
providerSpec: {} | ||
failureDomains: | ||
vsphere: | ||
- name: foo | ||
expectedError: "spec.template.machines_v1beta1_machine_openshift_io.failureDomains.platform: Required value" |
Oops, something went wrong.