Skip to content

Commit 627fc08

Browse files
committed
crd testing
1 parent d97f225 commit 627fc08

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

config/v1/stable.clusterversion.testsuite.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,50 @@ 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:
425+
- https://osus.ocp.com
426+
expected: |
427+
apiVersion: config.openshift.io/v1
428+
kind: ClusterVersion
429+
spec:
430+
signatureStores:
431+
- https://osus.ocp.com
432+
- name: Should be able to set multiple custom signature store
433+
initial: |
434+
apiVersion: config.openshift.io/v1
435+
kind: ClusterVersion
436+
spec:
437+
signatureStores:
438+
- https://osus1.ocp.com
439+
- https://osus2.ocp.com
440+
expected: |
441+
apiVersion: config.openshift.io/v1
442+
kind: ClusterVersion
443+
spec:
444+
signatureStores:
445+
- https://osus1.ocp.com
446+
- https://osus2.ocp.com
447+
- name: Invalid custom signature store should throw error
448+
initial: |
449+
apiVersion: config.openshift.io/v1
450+
kind: ClusterVersion
451+
spec:
452+
signatureStores:
453+
- osus1.ocp.com
454+
expectedError: "signatureStores must contain only valid absolute URLs per the Go net/url standard"
455+
- name: Should be able to unset the signature stores
456+
initial: |
457+
apiVersion: config.openshift.io/v1
458+
kind: ClusterVersion
459+
spec:
460+
signatureStores: []
461+
expected: |
462+
apiVersion: config.openshift.io/v1
463+
kind: ClusterVersion
464+
spec:
465+
signatureStores: []

0 commit comments

Comments
 (0)