apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
name: "[Stable] Authentication"
crd: 0000_10_config-operator_01_authentication.crd-Default.yaml
tests:
  onCreate:
  - name: Should be able to create a minimal Authentication
    initial: |
      apiVersion: config.openshift.io/v1
      kind: Authentication
      spec: {} # No spec is required for a Authentication
    expected: |
      apiVersion: config.openshift.io/v1
      kind: Authentication
      spec: {}
  - name: Shouldn't be able to use the OIDC type in a stable version of the resource
    initial: |
      apiVersion: config.openshift.io/v1
      kind: Authentication
      spec:
        type: OIDC
    expectedError: "spec.type: Unsupported value: \"OIDC\": supported values: \"\", \"None\", \"IntegratedOAuth\""