@@ -125,8 +125,8 @@ describe("cert", () => {
125125 const { certificate : caCert } = generateRootCaCert ( ) ;
126126
127127 // Generate filenames for concurrent e2e test environment
128- const mtlsCertName = `mtls_cert_ ${ randomUUID ( ) } ` ;
129- const caCertName = `ca_cert_ ${ randomUUID ( ) } ` ;
128+ const mtlsCertName = `tmp-e2e-mtls-cert- ${ randomUUID ( ) } ` ;
129+ const caCertName = `tmp-e2e-ca-cert- ${ randomUUID ( ) } ` ;
130130
131131 it ( "upload mtls-certificate" , async ( ) => {
132132 // locally generated certs/key
@@ -137,8 +137,8 @@ describe("cert", () => {
137137 `wrangler cert upload mtls-certificate --name ${ mtlsCertName } --cert mtls_client_cert_file.pem --key mtls_client_private_key_file.pem`
138138 ) ;
139139 expect ( normalize ( output . stdout ) ) . toMatchInlineSnapshot ( `
140- "Uploading mTLS Certificate mtls_cert_00000000 -0000-0000-0000-000000000000...
141- Success! Uploaded mTLS Certificate mtls_cert_00000000 -0000-0000-0000-000000000000
140+ "Uploading mTLS Certificate tmp-e2e-mtls-cert-00000000 -0000-0000-0000-000000000000...
141+ Success! Uploaded mTLS Certificate tmp-e2e-mtls-cert-00000000 -0000-0000-0000-000000000000
142142 ID: 00000000-0000-0000-0000-000000000000
143143 Issuer: CN=Root CA,O=Localhost Root CA,ST=California,C=US
144144 Expires on 11/18/2034"
@@ -152,8 +152,8 @@ describe("cert", () => {
152152 `wrangler cert upload certificate-authority --name ${ caCertName } --ca-cert ca_chain_cert.pem`
153153 ) ;
154154 expect ( normalize ( output . stdout ) ) . toMatchInlineSnapshot ( `
155- "Uploading CA Certificate ca_cert_00000000 -0000-0000-0000-000000000000...
156- Success! Uploaded CA Certificate ca_cert_00000000 -0000-0000-0000-000000000000
155+ "Uploading CA Certificate tmp-e2e-ca-cert-00000000 -0000-0000-0000-000000000000...
156+ Success! Uploaded CA Certificate tmp-e2e-ca-cert-00000000 -0000-0000-0000-000000000000
157157 ID: 00000000-0000-0000-0000-000000000000
158158 Issuer: CN=Localhost CA,OU=SSL Department,O=Localhost,L=San Francisco,ST=California,C=US
159159 Expires on 11/18/2034"
@@ -164,10 +164,10 @@ describe("cert", () => {
164164 const output = await helper . run ( `wrangler cert list` ) ;
165165 const result = normalize ( output . stdout ) ;
166166 expect ( result ) . toContain (
167- `Name: mtls_cert_00000000 -0000-0000-0000-000000000000`
167+ `Name: tmp-e2e-mtls-cert-00000000 -0000-0000-0000-000000000000`
168168 ) ;
169169 expect ( result ) . toContain (
170- `Name: ca_cert_00000000 -0000-0000-0000-000000000000`
170+ `Name: tmp-e2e-ca-cert-00000000 -0000-0000-0000-000000000000`
171171 ) ;
172172 } ) ;
173173
@@ -177,9 +177,9 @@ describe("cert", () => {
177177 ) ;
178178 expect ( normalize ( delete_mtls_cert_output . stdout ) ) . toMatchInlineSnapshot (
179179 `
180- "? Are you sure you want to delete certificate 00000000-0000-0000-0000-000000000000 (mtls_cert_00000000 -0000-0000-0000-000000000000)?
180+ "? Are you sure you want to delete certificate 00000000-0000-0000-0000-000000000000 (tmp-e2e-mtls-cert-00000000 -0000-0000-0000-000000000000)?
181181 🤖 Using fallback value in non-interactive context: yes
182- Deleted certificate 00000000-0000-0000-0000-000000000000 (mtls_cert_00000000 -0000-0000-0000-000000000000) successfully"
182+ Deleted certificate 00000000-0000-0000-0000-000000000000 (tmp-e2e-mtls-cert-00000000 -0000-0000-0000-000000000000) successfully"
183183 `
184184 ) ;
185185 } ) ;
@@ -190,9 +190,9 @@ describe("cert", () => {
190190 ) ;
191191 expect ( normalize ( delete_ca_cert_output . stdout ) ) . toMatchInlineSnapshot (
192192 `
193- "? Are you sure you want to delete certificate 00000000-0000-0000-0000-000000000000 (ca_cert_00000000 -0000-0000-0000-000000000000)?
193+ "? Are you sure you want to delete certificate 00000000-0000-0000-0000-000000000000 (tmp-e2e-ca-cert-00000000 -0000-0000-0000-000000000000)?
194194 🤖 Using fallback value in non-interactive context: yes
195- Deleted certificate 00000000-0000-0000-0000-000000000000 (ca_cert_00000000 -0000-0000-0000-000000000000) successfully"
195+ Deleted certificate 00000000-0000-0000-0000-000000000000 (tmp-e2e-ca-cert-00000000 -0000-0000-0000-000000000000) successfully"
196196 `
197197 ) ;
198198 } ) ;
0 commit comments