@@ -54,7 +54,9 @@ module('Integration | Component | pki | Page::PkiIssuerEditPage::PkiIssuerEdit',
5454 usage : 'read-only,issuing-certificates,ocsp-signing' ,
5555 manual_chain : 'issuer_ref' ,
5656 issuing_certificates : [ 'http://localhost' , 'http://localhost:8200' ] ,
57- crl_distribution_points : 'http://localhost' ,
57+ crl_distribution_points : [
58+ 'ldap://MYSERVER1/CN=Office,OU=Sales,OU=Fabrikam,O=Contoso Sales,C=US?certificateRevocationList' ,
59+ ] ,
5860 ocsp_servers : 'http://localhost' ,
5961 } ,
6062 } ) ;
@@ -86,11 +88,11 @@ module('Integration | Component | pki | Page::PkiIssuerEditPage::PkiIssuerEdit',
8688 assert . dom ( selectors . usageCrl ) . isNotChecked ( 'Usage signing crls is not checked' ) ;
8789 assert . dom ( selectors . usageOcsp ) . isChecked ( 'Usage signing ocsps is checked' ) ;
8890 assert . dom ( selectors . manualChain ) . hasValue ( this . model . manualChain , 'Manual chain field populates' ) ;
89- const certUrls = this . model . issuingCertificates . split ( ',' ) ;
91+ const certUrls = this . model . issuingCertificates ;
9092 assert . dom ( selectors . certUrl1 ) . hasValue ( certUrls [ 0 ] , 'Issuing certificate populates' ) ;
9193 assert . dom ( selectors . certUrl2 ) . hasValue ( certUrls [ 1 ] , 'Issuing certificate populates' ) ;
92- const crlDistributionPoints = this . model . crlDistributionPoints . split ( ',' ) ;
93- assert . dom ( selectors . crlDist ) . hasValue ( crlDistributionPoints [ 0 ] , 'Crl distribution points populate' ) ;
94+ const [ crlDistributionPoints ] = this . model . crlDistributionPoints ;
95+ assert . dom ( selectors . crlDist ) . hasValue ( crlDistributionPoints , 'Crl distribution points populate' ) ;
9496 const ocspServers = this . model . ocspServers . split ( ',' ) ;
9597 assert . dom ( selectors . ocspServers ) . hasValue ( ocspServers [ 0 ] , 'Ocsp servers populate' ) ;
9698 } ) ;
@@ -104,9 +106,9 @@ module('Integration | Component | pki | Page::PkiIssuerEditPage::PkiIssuerEdit',
104106 assert . ok ( this . transitionCalled ( ) , 'Transitions to details route on cancel' ) ;
105107 assert . strictEqual ( this . model . issuerName , 'foo-bar' , 'Issuer name rolled back' ) ;
106108 assert . strictEqual ( this . model . usage , 'read-only,issuing-certificates,ocsp-signing' , 'Usage rolled back' ) ;
107- assert . strictEqual (
109+ assert . propEqual (
108110 this . model . issuingCertificates ,
109- 'http://localhost, http://localhost:8200' ,
111+ [ 'http://localhost' , ' http://localhost:8200'] ,
110112 'Issuing certificates rolled back'
111113 ) ;
112114 } ) ;
@@ -122,9 +124,9 @@ module('Integration | Component | pki | Page::PkiIssuerEditPage::PkiIssuerEdit',
122124 'read-only,issuing-certificates,ocsp-signing,crl-signing' ,
123125 'Updated usage sent in POST request'
124126 ) ;
125- assert . strictEqual (
127+ assert . propEqual (
126128 data . issuing_certificates ,
127- 'http://localhost:8200' ,
129+ [ 'http://localhost:8200' ] ,
128130 'Updated issuing certificates sent in POST request'
129131 ) ;
130132 return { issuer_id : 'test' , data } ;
0 commit comments