-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust tests to account for required fields
- Loading branch information
Showing
5 changed files
with
107 additions
and
19 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
machineconfiguration/v1/stable.containerruntimeconfig.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
94 changes: 90 additions & 4 deletions
94
machineconfiguration/v1/stable.controllerconfig.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 |
---|---|---|
@@ -1,15 +1,101 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "[Stable] ControllerConfig" | ||
crd: 0000_10_controllerconfig.crd.yaml | ||
crd: 0000_80_controllerconfig.crd.yaml | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ControllerConfig | ||
initial: | | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: ControllerConfig | ||
spec: {} # No spec is required for a ControllerConfig | ||
spec: | ||
additionalTrustBundle: Y2VydGlmaWNhdGUK | ||
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e | ||
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e | ||
cloudProviderCAData: null | ||
cloudProviderConfig: "" | ||
clusterDNSIP: fd02::a | ||
dns: | ||
apiVersion: config.openshift.io/v1 | ||
kind: DNS | ||
spec: | ||
baseDomain: fake.redhat.com | ||
images: | ||
machineConfigOperator: rexample.com/example/openshift-release-dev@sha256:2c3ea52ac3a41c6d58e85977c3149413e3fa4b70eb2397426456863adbf43306 | ||
infra: | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
name: "" | ||
platformSpec: | ||
type: None | ||
status: | ||
apiServerInternalURI: https://api-int.cnfde4.sno.ptp.lab.eng.bos.redhat.com:6443 | ||
apiServerURL: https://api.cnfde4.sno.ptp.lab.eng.bos.redhat.com:6443 | ||
controlPlaneTopology: SingleReplica | ||
etcdDiscoveryDomain: "" | ||
infrastructureName: cnfde4-sxhr7 | ||
infrastructureTopology: SingleReplica | ||
platform: None | ||
platformStatus: | ||
type: None | ||
ipFamilies: IPv6 | ||
kubeAPIServerServingCAData: Y2VydGlmaWNhdGUK | ||
network: null | ||
networkType: OVNKubernetes | ||
osImageURL: example.com/example/openshift-release-dev@sha256:eacdc37aec78fdbf8caa9601e4012ab31453cf59b086474901900e853e803ea8 | ||
platform: none | ||
proxy: null | ||
pullSecret: | ||
name: pull-secret | ||
namespace: openshift-config | ||
releaseImage: "" | ||
rootCAData: Y2VydGlmaWNhdGUK | ||
expected: | | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: ControllerConfig | ||
spec: {} | ||
spec: | ||
additionalTrustBundle: Y2VydGlmaWNhdGUK | ||
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e | ||
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e | ||
cloudProviderCAData: null | ||
cloudProviderConfig: "" | ||
clusterDNSIP: fd02::a | ||
dns: | ||
apiVersion: config.openshift.io/v1 | ||
kind: DNS | ||
spec: | ||
baseDomain: fake.redhat.com | ||
images: | ||
machineConfigOperator: rexample.com/example/openshift-release-dev@sha256:2c3ea52ac3a41c6d58e85977c3149413e3fa4b70eb2397426456863adbf43306 | ||
infra: | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
spec: | ||
cloudConfig: | ||
name: "" | ||
platformSpec: | ||
type: None | ||
status: | ||
apiServerInternalURI: https://api-int.cnfde4.sno.ptp.lab.eng.bos.redhat.com:6443 | ||
apiServerURL: https://api.cnfde4.sno.ptp.lab.eng.bos.redhat.com:6443 | ||
controlPlaneTopology: SingleReplica | ||
etcdDiscoveryDomain: "" | ||
infrastructureName: cnfde4-sxhr7 | ||
infrastructureTopology: SingleReplica | ||
platform: None | ||
platformStatus: | ||
type: None | ||
ipFamilies: IPv6 | ||
kubeAPIServerServingCAData: Y2VydGlmaWNhdGUK | ||
network: null | ||
networkType: OVNKubernetes | ||
osImageURL: example.com/example/openshift-release-dev@sha256:eacdc37aec78fdbf8caa9601e4012ab31453cf59b086474901900e853e803ea8 | ||
platform: none | ||
proxy: null | ||
pullSecret: | ||
name: pull-secret | ||
namespace: openshift-config | ||
releaseImage: "" | ||
rootCAData: Y2VydGlmaWNhdGUK | ||
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
13 changes: 7 additions & 6 deletions
13
machineconfiguration/v1/stable.machineconfig.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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "[Stable] MachineConfigPool" | ||
crd: 0000_10_machineconfigpool.crd.yaml | ||
name: "[Stable] MachineConfig" | ||
crd: 0000_80_machineconfig.crd.yaml | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal MachineConfigPool | ||
- name: Should be able to create a minimal MachineConfig | ||
initial: | | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfigPool | ||
spec: {} # No spec is required for a MachineConfigPool | ||
kind: MachineConfig | ||
spec: {} # No spec is required for a MachineConfig | ||
expected: | | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfigPool | ||
kind: MachineConfig | ||
spec: {} | ||
15 changes: 8 additions & 7 deletions
15
machineconfiguration/v1/stable.machineconfigpool.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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "[Stable] ControllerConfig" | ||
crd: 0000_10_controllerconfig.crd.yaml | ||
name: "[Stable] MachineConfigPool" | ||
crd: 0000_80_machineconfigpool.crd.yaml | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ControllerConfig | ||
- name: Should be able to create a minimal MachineConfigPool | ||
initial: | | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: ControllerConfig | ||
spec: {} # No spec is required for a ControllerConfig | ||
kind: MachineConfigPool | ||
spec: {} # No spec is required for a MachineConfigPool | ||
expected: | | ||
apiVersion: apiserver.openshift.io/v1 | ||
kind: ControllerConfig | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfigPool | ||
spec: {} | ||