@@ -582,7 +582,7 @@ func TestAuthoritiesValidation(t *testing.T) {
582
582
policy ClusterImagePolicy
583
583
}{{
584
584
name : "Should fail when authority is empty" ,
585
- errorString : "expected exactly one, got neither: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].rfc3161timestamp, spec.authorities[0]. static" ,
585
+ errorString : "expected exactly one, got neither: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].static" ,
586
586
policy : ClusterImagePolicy {
587
587
Spec : ClusterImagePolicySpec {
588
588
Images : []ImagePattern {
@@ -597,7 +597,7 @@ func TestAuthoritiesValidation(t *testing.T) {
597
597
},
598
598
}, {
599
599
name : "Should fail when key/keyless specified" ,
600
- errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].rfc3161timestamp, spec.authorities[0]. static" ,
600
+ errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].static" ,
601
601
policy : ClusterImagePolicy {
602
602
Spec : ClusterImagePolicySpec {
603
603
Images : []ImagePattern {
@@ -615,7 +615,7 @@ func TestAuthoritiesValidation(t *testing.T) {
615
615
},
616
616
}, {
617
617
name : "Should fail when key/static specified" ,
618
- errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].rfc3161timestamp, spec.authorities[0]. static" ,
618
+ errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].static" ,
619
619
policy : ClusterImagePolicy {
620
620
Spec : ClusterImagePolicySpec {
621
621
Images : []ImagePattern {
@@ -633,7 +633,7 @@ func TestAuthoritiesValidation(t *testing.T) {
633
633
},
634
634
}, {
635
635
name : "Should fail when keyless/static specified" ,
636
- errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].rfc3161timestamp, spec.authorities[0]. static" ,
636
+ errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].static" ,
637
637
policy : ClusterImagePolicy {
638
638
Spec : ClusterImagePolicySpec {
639
639
Images : []ImagePattern {
@@ -651,7 +651,7 @@ func TestAuthoritiesValidation(t *testing.T) {
651
651
},
652
652
}, {
653
653
name : "Should fail when key/keyless/static specified" ,
654
- errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].rfc3161timestamp, spec.authorities[0]. static" ,
654
+ errorString : "expected exactly one, got both: spec.authorities[0].key, spec.authorities[0].keyless, spec.authorities[0].static" ,
655
655
policy : ClusterImagePolicy {
656
656
Spec : ClusterImagePolicySpec {
657
657
Images : []ImagePattern {
@@ -711,7 +711,7 @@ func TestAuthoritiesValidation(t *testing.T) {
711
711
},
712
712
}, {
713
713
name : "Should fail when static and sources,attestations, and rfc3161timestamp is specified" ,
714
- errorString : "expected exactly one, got both: spec.authorities[0].key , spec.authorities[0].keyless , spec.authorities[0].rfc3161timestamp , spec.authorities[0].static" ,
714
+ errorString : "expected exactly one, got both: spec.authorities[0].attestations , spec.authorities[0].rfc3161timestamp , spec.authorities[0].source , spec.authorities[0].static" ,
715
715
policy : ClusterImagePolicy {
716
716
Spec : ClusterImagePolicySpec {
717
717
Images : []ImagePattern {
0 commit comments