Skip to content

Commit 4fea343

Browse files
committed
crd testing
1 parent d97f225 commit 4fea343

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

config/v1/stable.clusterversion.testsuite.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,49 @@ tests:
416416
additionalEnabledCapabilities:
417417
- marketplace
418418
expectedError: the `marketplace` capability requires the `OperatorLifecycleManager` capability, which is neither explicitly or implicitly enabled in this cluster, please enable the `OperatorLifecycleManager` capability
419+
- name: Should be able to set a custom signature store
420+
initial: |
421+
apiVersion: config.openshift.io/v1
422+
kind: ClusterVersion
423+
spec:
424+
signatureStores: [https://osus.ocp.com]
425+
expected: |
426+
apiVersion: config.openshift.io/v1
427+
kind: ClusterVersion
428+
spec:
429+
signatureStores:
430+
- https://osus.ocp.com
431+
- name: Should be able to set multiple custom signature store
432+
initial: |
433+
apiVersion: config.openshift.io/v1
434+
kind: ClusterVersion
435+
spec:
436+
signatureStores:
437+
- https://osus1.ocp.com
438+
- https://osus2.ocp.com
439+
expected: |
440+
apiVersion: config.openshift.io/v1
441+
kind: ClusterVersion
442+
spec:
443+
signatureStores:
444+
- https://osus1.ocp.com
445+
- https://osus2.ocp.com
446+
- name: Invalid custom signature store should throw error
447+
initial: |
448+
apiVersion: config.openshift.io/v1
449+
kind: ClusterVersion
450+
spec:
451+
signatureStores:
452+
- osus1.ocp.com
453+
expectedError: "signatureStores must contain only valid absolute URLs per the Go net/url standard"
454+
- name: Should be able to unset the signature stores
455+
initial: |
456+
apiVersion: config.openshift.io/v1
457+
kind: ClusterVersion
458+
spec:
459+
signatureStores: []
460+
expected: |
461+
apiVersion: config.openshift.io/v1
462+
kind: ClusterVersion
463+
spec:
464+
signatureStores: []

0 commit comments

Comments
 (0)