Skip to content

Commit

Permalink
crd testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PratikMahajan committed Nov 27, 2023
1 parent d97f225 commit 4fea343
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions config/v1/stable.clusterversion.testsuite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,3 +416,49 @@ tests:
additionalEnabledCapabilities:
- marketplace
expectedError: the `marketplace` capability requires the `OperatorLifecycleManager` capability, which is neither explicitly or implicitly enabled in this cluster, please enable the `OperatorLifecycleManager` capability
- name: Should be able to set a custom signature store
initial: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores: [https://osus.ocp.com]
expected: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores:
- https://osus.ocp.com
- name: Should be able to set multiple custom signature store
initial: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores:
- https://osus1.ocp.com
- https://osus2.ocp.com
expected: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores:
- https://osus1.ocp.com
- https://osus2.ocp.com
- name: Invalid custom signature store should throw error
initial: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores:
- osus1.ocp.com
expectedError: "signatureStores must contain only valid absolute URLs per the Go net/url standard"
- name: Should be able to unset the signature stores
initial: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores: []
expected: |
apiVersion: config.openshift.io/v1
kind: ClusterVersion
spec:
signatureStores: []

0 comments on commit 4fea343

Please sign in to comment.