SkyeYoung commented on code in PR #3281:
URL: https://github.com/apache/apisix-dashboard/pull/3281#discussion_r2681823943


##########
e2e/tests/ssls.crud-all-fields.spec.ts:
##########
@@ -31,29 +31,30 @@ const snis = [
   'www.full-test.example.com',
   'api.full-test.example.com',
 ];
-const { cert, key } = genTLS();
 
 const initialLabels = {
   env: 'production',
   version: 'v1',
   team: 'backend',
 };
 
-const sslDataAllFields: Partial<APISIXType['SSL']> = {
-  snis,
-  cert,
-  key,
-  labels: initialLabels,
-  status: 1, // Enabled
-};
-
 test.beforeAll(async () => {
   await deleteAllSSLs(e2eReq);
 });
 
 test('should CRUD SSL with all fields', async ({ page }) => {
   test.slow();
 
+  // Generate TLS certificates at runtime
+  const { cert, key } = await genTLS();

Review Comment:
   await



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to