@itentialopensource/adapter-digicert_pki 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CALLS.md +1245 -0
  2. package/CHANGELOG.md +8 -1
  3. package/adapter.js +13519 -0
  4. package/entities/ACME/action.json +166 -0
  5. package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
  6. package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
  7. package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
  8. package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
  9. package/entities/ACME/schema.json +125 -0
  10. package/entities/AuthenticationCACertificates/action.json +107 -0
  11. package/entities/AuthenticationCACertificates/schema.json +155 -0
  12. package/entities/AuthenticationCATemplates/action.json +187 -0
  13. package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
  14. package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
  15. package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
  16. package/entities/AuthenticationCATemplates/schema.json +137 -0
  17. package/entities/AuthenticationCertificates/action.json +166 -0
  18. package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
  19. package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
  20. package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
  21. package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
  22. package/entities/AuthenticationCertificates/schema.json +202 -0
  23. package/entities/BatchCertificateEnrollment/action.json +268 -0
  24. package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
  25. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
  26. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
  27. package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
  28. package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
  29. package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
  30. package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
  31. package/entities/BatchCertificateEnrollment/schema.json +284 -0
  32. package/entities/CertificateProfiles/action.json +206 -0
  33. package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
  34. package/entities/CertificateProfiles/schema.json +116 -0
  35. package/entities/CertificateRequests/action.json +25 -0
  36. package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
  37. package/entities/CertificateRequests/schema.json +30 -0
  38. package/entities/CertificateTemplates/action.json +186 -0
  39. package/entities/CertificateTemplates/schema.json +104 -0
  40. package/entities/Certificates/action.json +312 -0
  41. package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
  42. package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
  43. package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
  44. package/entities/Certificates/schema.json +462 -0
  45. package/entities/DeviceProfiles/action.json +126 -0
  46. package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
  47. package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
  48. package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
  49. package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
  50. package/entities/DeviceProfiles/schema.json +57 -0
  51. package/entities/Devices/action.json +166 -0
  52. package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
  53. package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
  54. package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
  55. package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
  56. package/entities/Devices/schema.json +103 -0
  57. package/entities/DevicesV2/action.json +186 -0
  58. package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
  59. package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
  60. package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
  61. package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
  62. package/entities/DevicesV2/schema.json +115 -0
  63. package/entities/Divisions/action.json +288 -0
  64. package/entities/Divisions/schema.json +164 -0
  65. package/entities/EnrollmentProfilePasscodes/action.json +186 -0
  66. package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
  67. package/entities/EnrollmentProfiles/action.json +191 -0
  68. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
  69. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
  70. package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
  71. package/entities/EnrollmentProfiles/schema.json +148 -0
  72. package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
  73. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
  74. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
  75. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
  76. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
  77. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
  78. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
  79. package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
  80. package/entities/Gateways/action.json +187 -0
  81. package/entities/Gateways/schema.json +126 -0
  82. package/entities/ICAs/action.json +46 -0
  83. package/entities/ICAs/schema.json +163 -0
  84. package/entities/OCSPGroups/action.json +167 -0
  85. package/entities/OCSPGroups/schema.json +466 -0
  86. package/package.json +1 -1
  87. package/pronghorn.json +22589 -32
  88. package/refs?service=git-upload-pack +0 -0
  89. package/report/adapterInfo.json +7 -7
  90. package/sampleProperties.json +3 -3
  91. package/test/integration/adapterTestIntegration.js +4544 -0
  92. package/test/unit/adapterTestUnit.js +4866 -0
@@ -2274,5 +2274,4871 @@ describe('[unit] Digicert Adapter Test', () => {
2274
2274
  }
2275
2275
  }).timeout(attemptTimeout);
2276
2276
  });
2277
+
2278
+ describe('#listCertificates - errors', () => {
2279
+ it('should have a listCertificates function', (done) => {
2280
+ try {
2281
+ assert.equal(true, typeof a.listCertificates === 'function');
2282
+ done();
2283
+ } catch (error) {
2284
+ log.error(`Test Failure: ${error}`);
2285
+ done(error);
2286
+ }
2287
+ }).timeout(attemptTimeout);
2288
+ });
2289
+
2290
+ describe('#getExampleCertificateRequestCertificateID - errors', () => {
2291
+ it('should have a getExampleCertificateRequestCertificateID function', (done) => {
2292
+ try {
2293
+ assert.equal(true, typeof a.getExampleCertificateRequestCertificateID === 'function');
2294
+ done();
2295
+ } catch (error) {
2296
+ log.error(`Test Failure: ${error}`);
2297
+ done(error);
2298
+ }
2299
+ }).timeout(attemptTimeout);
2300
+ it('should error if - missing certificateId', (done) => {
2301
+ try {
2302
+ a.getExampleCertificateRequestCertificateID(null, (data, error) => {
2303
+ try {
2304
+ const displayE = 'certificateId is required';
2305
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getExampleCertificateRequestCertificateID', displayE);
2306
+ done();
2307
+ } catch (err) {
2308
+ log.error(`Test Failure: ${err}`);
2309
+ done(err);
2310
+ }
2311
+ });
2312
+ } catch (error) {
2313
+ log.error(`Adapter Exception: ${error}`);
2314
+ done(error);
2315
+ }
2316
+ }).timeout(attemptTimeout);
2317
+ });
2318
+
2319
+ describe('#renewCertificate - errors', () => {
2320
+ it('should have a renewCertificate function', (done) => {
2321
+ try {
2322
+ assert.equal(true, typeof a.renewCertificate === 'function');
2323
+ done();
2324
+ } catch (error) {
2325
+ log.error(`Test Failure: ${error}`);
2326
+ done(error);
2327
+ }
2328
+ }).timeout(attemptTimeout);
2329
+ it('should error if - missing certificateId', (done) => {
2330
+ try {
2331
+ a.renewCertificate(null, null, (data, error) => {
2332
+ try {
2333
+ const displayE = 'certificateId is required';
2334
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-renewCertificate', displayE);
2335
+ done();
2336
+ } catch (err) {
2337
+ log.error(`Test Failure: ${err}`);
2338
+ done(err);
2339
+ }
2340
+ });
2341
+ } catch (error) {
2342
+ log.error(`Adapter Exception: ${error}`);
2343
+ done(error);
2344
+ }
2345
+ }).timeout(attemptTimeout);
2346
+ });
2347
+
2348
+ describe('#renewBySerial - errors', () => {
2349
+ it('should have a renewBySerial function', (done) => {
2350
+ try {
2351
+ assert.equal(true, typeof a.renewBySerial === 'function');
2352
+ done();
2353
+ } catch (error) {
2354
+ log.error(`Test Failure: ${error}`);
2355
+ done(error);
2356
+ }
2357
+ }).timeout(attemptTimeout);
2358
+ it('should error if - missing certificateSerialNumber', (done) => {
2359
+ try {
2360
+ a.renewBySerial(null, null, (data, error) => {
2361
+ try {
2362
+ const displayE = 'certificateSerialNumber is required';
2363
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-renewBySerial', displayE);
2364
+ done();
2365
+ } catch (err) {
2366
+ log.error(`Test Failure: ${err}`);
2367
+ done(err);
2368
+ }
2369
+ });
2370
+ } catch (error) {
2371
+ log.error(`Adapter Exception: ${error}`);
2372
+ done(error);
2373
+ }
2374
+ }).timeout(attemptTimeout);
2375
+ });
2376
+
2377
+ describe('#revokeCertificate - errors', () => {
2378
+ it('should have a revokeCertificate function', (done) => {
2379
+ try {
2380
+ assert.equal(true, typeof a.revokeCertificate === 'function');
2381
+ done();
2382
+ } catch (error) {
2383
+ log.error(`Test Failure: ${error}`);
2384
+ done(error);
2385
+ }
2386
+ }).timeout(attemptTimeout);
2387
+ it('should error if - missing certificateId', (done) => {
2388
+ try {
2389
+ a.revokeCertificate(null, null, (data, error) => {
2390
+ try {
2391
+ const displayE = 'certificateId is required';
2392
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-revokeCertificate', displayE);
2393
+ done();
2394
+ } catch (err) {
2395
+ log.error(`Test Failure: ${err}`);
2396
+ done(err);
2397
+ }
2398
+ });
2399
+ } catch (error) {
2400
+ log.error(`Adapter Exception: ${error}`);
2401
+ done(error);
2402
+ }
2403
+ }).timeout(attemptTimeout);
2404
+ });
2405
+
2406
+ describe('#updateNote - errors', () => {
2407
+ it('should have a updateNote function', (done) => {
2408
+ try {
2409
+ assert.equal(true, typeof a.updateNote === 'function');
2410
+ done();
2411
+ } catch (error) {
2412
+ log.error(`Test Failure: ${error}`);
2413
+ done(error);
2414
+ }
2415
+ }).timeout(attemptTimeout);
2416
+ it('should error if - missing certificateId', (done) => {
2417
+ try {
2418
+ a.updateNote(null, null, (data, error) => {
2419
+ try {
2420
+ const displayE = 'certificateId is required';
2421
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateNote', displayE);
2422
+ done();
2423
+ } catch (err) {
2424
+ log.error(`Test Failure: ${err}`);
2425
+ done(err);
2426
+ }
2427
+ });
2428
+ } catch (error) {
2429
+ log.error(`Adapter Exception: ${error}`);
2430
+ done(error);
2431
+ }
2432
+ }).timeout(attemptTimeout);
2433
+ });
2434
+
2435
+ describe('#revokeCertificateBySerialNumber - errors', () => {
2436
+ it('should have a revokeCertificateBySerialNumber function', (done) => {
2437
+ try {
2438
+ assert.equal(true, typeof a.revokeCertificateBySerialNumber === 'function');
2439
+ done();
2440
+ } catch (error) {
2441
+ log.error(`Test Failure: ${error}`);
2442
+ done(error);
2443
+ }
2444
+ }).timeout(attemptTimeout);
2445
+ it('should error if - missing certificateSerialNumber', (done) => {
2446
+ try {
2447
+ a.revokeCertificateBySerialNumber(null, null, (data, error) => {
2448
+ try {
2449
+ const displayE = 'certificateSerialNumber is required';
2450
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-revokeCertificateBySerialNumber', displayE);
2451
+ done();
2452
+ } catch (err) {
2453
+ log.error(`Test Failure: ${err}`);
2454
+ done(err);
2455
+ }
2456
+ });
2457
+ } catch (error) {
2458
+ log.error(`Adapter Exception: ${error}`);
2459
+ done(error);
2460
+ }
2461
+ }).timeout(attemptTimeout);
2462
+ });
2463
+
2464
+ describe('#downloadCertificate - errors', () => {
2465
+ it('should have a downloadCertificate function', (done) => {
2466
+ try {
2467
+ assert.equal(true, typeof a.downloadCertificate === 'function');
2468
+ done();
2469
+ } catch (error) {
2470
+ log.error(`Test Failure: ${error}`);
2471
+ done(error);
2472
+ }
2473
+ }).timeout(attemptTimeout);
2474
+ it('should error if - missing certificateId', (done) => {
2475
+ try {
2476
+ a.downloadCertificate(null, null, (data, error) => {
2477
+ try {
2478
+ const displayE = 'certificateId is required';
2479
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadCertificate', displayE);
2480
+ done();
2481
+ } catch (err) {
2482
+ log.error(`Test Failure: ${err}`);
2483
+ done(err);
2484
+ }
2485
+ });
2486
+ } catch (error) {
2487
+ log.error(`Adapter Exception: ${error}`);
2488
+ done(error);
2489
+ }
2490
+ }).timeout(attemptTimeout);
2491
+ it('should error if - missing format', (done) => {
2492
+ try {
2493
+ a.downloadCertificate('fakeparam', null, (data, error) => {
2494
+ try {
2495
+ const displayE = 'format is required';
2496
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadCertificate', displayE);
2497
+ done();
2498
+ } catch (err) {
2499
+ log.error(`Test Failure: ${err}`);
2500
+ done(err);
2501
+ }
2502
+ });
2503
+ } catch (error) {
2504
+ log.error(`Adapter Exception: ${error}`);
2505
+ done(error);
2506
+ }
2507
+ }).timeout(attemptTimeout);
2508
+ });
2509
+
2510
+ describe('#downloadCertificateBySerialNumber - errors', () => {
2511
+ it('should have a downloadCertificateBySerialNumber function', (done) => {
2512
+ try {
2513
+ assert.equal(true, typeof a.downloadCertificateBySerialNumber === 'function');
2514
+ done();
2515
+ } catch (error) {
2516
+ log.error(`Test Failure: ${error}`);
2517
+ done(error);
2518
+ }
2519
+ }).timeout(attemptTimeout);
2520
+ it('should error if - missing certificateSerialNumber', (done) => {
2521
+ try {
2522
+ a.downloadCertificateBySerialNumber(null, null, (data, error) => {
2523
+ try {
2524
+ const displayE = 'certificateSerialNumber is required';
2525
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadCertificateBySerialNumber', displayE);
2526
+ done();
2527
+ } catch (err) {
2528
+ log.error(`Test Failure: ${err}`);
2529
+ done(err);
2530
+ }
2531
+ });
2532
+ } catch (error) {
2533
+ log.error(`Adapter Exception: ${error}`);
2534
+ done(error);
2535
+ }
2536
+ }).timeout(attemptTimeout);
2537
+ it('should error if - missing format', (done) => {
2538
+ try {
2539
+ a.downloadCertificateBySerialNumber('fakeparam', null, (data, error) => {
2540
+ try {
2541
+ const displayE = 'format is required';
2542
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadCertificateBySerialNumber', displayE);
2543
+ done();
2544
+ } catch (err) {
2545
+ log.error(`Test Failure: ${err}`);
2546
+ done(err);
2547
+ }
2548
+ });
2549
+ } catch (error) {
2550
+ log.error(`Adapter Exception: ${error}`);
2551
+ done(error);
2552
+ }
2553
+ }).timeout(attemptTimeout);
2554
+ });
2555
+
2556
+ describe('#importCertificate - errors', () => {
2557
+ it('should have a importCertificate function', (done) => {
2558
+ try {
2559
+ assert.equal(true, typeof a.importCertificate === 'function');
2560
+ done();
2561
+ } catch (error) {
2562
+ log.error(`Test Failure: ${error}`);
2563
+ done(error);
2564
+ }
2565
+ }).timeout(attemptTimeout);
2566
+ it('should error if - missing enrollmentProfileId', (done) => {
2567
+ try {
2568
+ a.importCertificate(null, null, (data, error) => {
2569
+ try {
2570
+ const displayE = 'enrollmentProfileId is required';
2571
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-importCertificate', displayE);
2572
+ done();
2573
+ } catch (err) {
2574
+ log.error(`Test Failure: ${err}`);
2575
+ done(err);
2576
+ }
2577
+ });
2578
+ } catch (error) {
2579
+ log.error(`Adapter Exception: ${error}`);
2580
+ done(error);
2581
+ }
2582
+ }).timeout(attemptTimeout);
2583
+ });
2584
+
2585
+ describe('#getImportDetails - errors', () => {
2586
+ it('should have a getImportDetails function', (done) => {
2587
+ try {
2588
+ assert.equal(true, typeof a.getImportDetails === 'function');
2589
+ done();
2590
+ } catch (error) {
2591
+ log.error(`Test Failure: ${error}`);
2592
+ done(error);
2593
+ }
2594
+ }).timeout(attemptTimeout);
2595
+ it('should error if - missing jobId', (done) => {
2596
+ try {
2597
+ a.getImportDetails(null, (data, error) => {
2598
+ try {
2599
+ const displayE = 'jobId is required';
2600
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getImportDetails', displayE);
2601
+ done();
2602
+ } catch (err) {
2603
+ log.error(`Test Failure: ${err}`);
2604
+ done(err);
2605
+ }
2606
+ });
2607
+ } catch (error) {
2608
+ log.error(`Adapter Exception: ${error}`);
2609
+ done(error);
2610
+ }
2611
+ }).timeout(attemptTimeout);
2612
+ });
2613
+
2614
+ describe('#getCertificateStatus - errors', () => {
2615
+ it('should have a getCertificateStatus function', (done) => {
2616
+ try {
2617
+ assert.equal(true, typeof a.getCertificateStatus === 'function');
2618
+ done();
2619
+ } catch (error) {
2620
+ log.error(`Test Failure: ${error}`);
2621
+ done(error);
2622
+ }
2623
+ }).timeout(attemptTimeout);
2624
+ it('should error if - missing certificateSerialNumber', (done) => {
2625
+ try {
2626
+ a.getCertificateStatus(null, (data, error) => {
2627
+ try {
2628
+ const displayE = 'certificateSerialNumber is required';
2629
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getCertificateStatus', displayE);
2630
+ done();
2631
+ } catch (err) {
2632
+ log.error(`Test Failure: ${err}`);
2633
+ done(err);
2634
+ }
2635
+ });
2636
+ } catch (error) {
2637
+ log.error(`Adapter Exception: ${error}`);
2638
+ done(error);
2639
+ }
2640
+ }).timeout(attemptTimeout);
2641
+ });
2642
+
2643
+ describe('#getCertificateStatusById - errors', () => {
2644
+ it('should have a getCertificateStatusById function', (done) => {
2645
+ try {
2646
+ assert.equal(true, typeof a.getCertificateStatusById === 'function');
2647
+ done();
2648
+ } catch (error) {
2649
+ log.error(`Test Failure: ${error}`);
2650
+ done(error);
2651
+ }
2652
+ }).timeout(attemptTimeout);
2653
+ it('should error if - missing certificateId', (done) => {
2654
+ try {
2655
+ a.getCertificateStatusById(null, (data, error) => {
2656
+ try {
2657
+ const displayE = 'certificateId is required';
2658
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getCertificateStatusById', displayE);
2659
+ done();
2660
+ } catch (err) {
2661
+ log.error(`Test Failure: ${err}`);
2662
+ done(err);
2663
+ }
2664
+ });
2665
+ } catch (error) {
2666
+ log.error(`Adapter Exception: ${error}`);
2667
+ done(error);
2668
+ }
2669
+ }).timeout(attemptTimeout);
2670
+ });
2671
+
2672
+ describe('#listCertificatesByCertificateValue - errors', () => {
2673
+ it('should have a listCertificatesByCertificateValue function', (done) => {
2674
+ try {
2675
+ assert.equal(true, typeof a.listCertificatesByCertificateValue === 'function');
2676
+ done();
2677
+ } catch (error) {
2678
+ log.error(`Test Failure: ${error}`);
2679
+ done(error);
2680
+ }
2681
+ }).timeout(attemptTimeout);
2682
+ it('should error if - missing certificateValue', (done) => {
2683
+ try {
2684
+ a.listCertificatesByCertificateValue(null, null, null, (data, error) => {
2685
+ try {
2686
+ const displayE = 'certificateValue is required';
2687
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listCertificatesByCertificateValue', displayE);
2688
+ done();
2689
+ } catch (err) {
2690
+ log.error(`Test Failure: ${err}`);
2691
+ done(err);
2692
+ }
2693
+ });
2694
+ } catch (error) {
2695
+ log.error(`Adapter Exception: ${error}`);
2696
+ done(error);
2697
+ }
2698
+ }).timeout(attemptTimeout);
2699
+ });
2700
+
2701
+ describe('#downloadApprovedCertificate - errors', () => {
2702
+ it('should have a downloadApprovedCertificate function', (done) => {
2703
+ try {
2704
+ assert.equal(true, typeof a.downloadApprovedCertificate === 'function');
2705
+ done();
2706
+ } catch (error) {
2707
+ log.error(`Test Failure: ${error}`);
2708
+ done(error);
2709
+ }
2710
+ }).timeout(attemptTimeout);
2711
+ it('should error if - missing certificateId', (done) => {
2712
+ try {
2713
+ a.downloadApprovedCertificate(null, null, (data, error) => {
2714
+ try {
2715
+ const displayE = 'certificateId is required';
2716
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadApprovedCertificate', displayE);
2717
+ done();
2718
+ } catch (err) {
2719
+ log.error(`Test Failure: ${err}`);
2720
+ done(err);
2721
+ }
2722
+ });
2723
+ } catch (error) {
2724
+ log.error(`Adapter Exception: ${error}`);
2725
+ done(error);
2726
+ }
2727
+ }).timeout(attemptTimeout);
2728
+ it('should error if - missing body', (done) => {
2729
+ try {
2730
+ a.downloadApprovedCertificate('fakeparam', null, (data, error) => {
2731
+ try {
2732
+ const displayE = 'body is required';
2733
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadApprovedCertificate', displayE);
2734
+ done();
2735
+ } catch (err) {
2736
+ log.error(`Test Failure: ${err}`);
2737
+ done(err);
2738
+ }
2739
+ });
2740
+ } catch (error) {
2741
+ log.error(`Adapter Exception: ${error}`);
2742
+ done(error);
2743
+ }
2744
+ }).timeout(attemptTimeout);
2745
+ });
2746
+
2747
+ describe('#listAuthenticationCACertificates - errors', () => {
2748
+ it('should have a listAuthenticationCACertificates function', (done) => {
2749
+ try {
2750
+ assert.equal(true, typeof a.listAuthenticationCACertificates === 'function');
2751
+ done();
2752
+ } catch (error) {
2753
+ log.error(`Test Failure: ${error}`);
2754
+ done(error);
2755
+ }
2756
+ }).timeout(attemptTimeout);
2757
+ });
2758
+
2759
+ describe('#listAuthenticationCACertificatesByAccount - errors', () => {
2760
+ it('should have a listAuthenticationCACertificatesByAccount function', (done) => {
2761
+ try {
2762
+ assert.equal(true, typeof a.listAuthenticationCACertificatesByAccount === 'function');
2763
+ done();
2764
+ } catch (error) {
2765
+ log.error(`Test Failure: ${error}`);
2766
+ done(error);
2767
+ }
2768
+ }).timeout(attemptTimeout);
2769
+ it('should error if - missing accountId', (done) => {
2770
+ try {
2771
+ a.listAuthenticationCACertificatesByAccount(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
2772
+ try {
2773
+ const displayE = 'accountId is required';
2774
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listAuthenticationCACertificatesByAccount', displayE);
2775
+ done();
2776
+ } catch (err) {
2777
+ log.error(`Test Failure: ${err}`);
2778
+ done(err);
2779
+ }
2780
+ });
2781
+ } catch (error) {
2782
+ log.error(`Adapter Exception: ${error}`);
2783
+ done(error);
2784
+ }
2785
+ }).timeout(attemptTimeout);
2786
+ });
2787
+
2788
+ describe('#uploadAuthenticationCACertificate - errors', () => {
2789
+ it('should have a uploadAuthenticationCACertificate function', (done) => {
2790
+ try {
2791
+ assert.equal(true, typeof a.uploadAuthenticationCACertificate === 'function');
2792
+ done();
2793
+ } catch (error) {
2794
+ log.error(`Test Failure: ${error}`);
2795
+ done(error);
2796
+ }
2797
+ }).timeout(attemptTimeout);
2798
+ it('should error if - missing accountId', (done) => {
2799
+ try {
2800
+ a.uploadAuthenticationCACertificate(null, null, (data, error) => {
2801
+ try {
2802
+ const displayE = 'accountId is required';
2803
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-uploadAuthenticationCACertificate', displayE);
2804
+ done();
2805
+ } catch (err) {
2806
+ log.error(`Test Failure: ${err}`);
2807
+ done(err);
2808
+ }
2809
+ });
2810
+ } catch (error) {
2811
+ log.error(`Adapter Exception: ${error}`);
2812
+ done(error);
2813
+ }
2814
+ }).timeout(attemptTimeout);
2815
+ });
2816
+
2817
+ describe('#getAuthenticationCACertificate - errors', () => {
2818
+ it('should have a getAuthenticationCACertificate function', (done) => {
2819
+ try {
2820
+ assert.equal(true, typeof a.getAuthenticationCACertificate === 'function');
2821
+ done();
2822
+ } catch (error) {
2823
+ log.error(`Test Failure: ${error}`);
2824
+ done(error);
2825
+ }
2826
+ }).timeout(attemptTimeout);
2827
+ it('should error if - missing accountId', (done) => {
2828
+ try {
2829
+ a.getAuthenticationCACertificate(null, null, (data, error) => {
2830
+ try {
2831
+ const displayE = 'accountId is required';
2832
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getAuthenticationCACertificate', displayE);
2833
+ done();
2834
+ } catch (err) {
2835
+ log.error(`Test Failure: ${err}`);
2836
+ done(err);
2837
+ }
2838
+ });
2839
+ } catch (error) {
2840
+ log.error(`Adapter Exception: ${error}`);
2841
+ done(error);
2842
+ }
2843
+ }).timeout(attemptTimeout);
2844
+ it('should error if - missing authenticationCaId', (done) => {
2845
+ try {
2846
+ a.getAuthenticationCACertificate('fakeparam', null, (data, error) => {
2847
+ try {
2848
+ const displayE = 'authenticationCaId is required';
2849
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getAuthenticationCACertificate', displayE);
2850
+ done();
2851
+ } catch (err) {
2852
+ log.error(`Test Failure: ${err}`);
2853
+ done(err);
2854
+ }
2855
+ });
2856
+ } catch (error) {
2857
+ log.error(`Adapter Exception: ${error}`);
2858
+ done(error);
2859
+ }
2860
+ }).timeout(attemptTimeout);
2861
+ });
2862
+
2863
+ describe('#deleteAuthenticationCACertificate - errors', () => {
2864
+ it('should have a deleteAuthenticationCACertificate function', (done) => {
2865
+ try {
2866
+ assert.equal(true, typeof a.deleteAuthenticationCACertificate === 'function');
2867
+ done();
2868
+ } catch (error) {
2869
+ log.error(`Test Failure: ${error}`);
2870
+ done(error);
2871
+ }
2872
+ }).timeout(attemptTimeout);
2873
+ it('should error if - missing accountId', (done) => {
2874
+ try {
2875
+ a.deleteAuthenticationCACertificate(null, null, (data, error) => {
2876
+ try {
2877
+ const displayE = 'accountId is required';
2878
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteAuthenticationCACertificate', displayE);
2879
+ done();
2880
+ } catch (err) {
2881
+ log.error(`Test Failure: ${err}`);
2882
+ done(err);
2883
+ }
2884
+ });
2885
+ } catch (error) {
2886
+ log.error(`Adapter Exception: ${error}`);
2887
+ done(error);
2888
+ }
2889
+ }).timeout(attemptTimeout);
2890
+ it('should error if - missing authenticationCaId', (done) => {
2891
+ try {
2892
+ a.deleteAuthenticationCACertificate('fakeparam', null, (data, error) => {
2893
+ try {
2894
+ const displayE = 'authenticationCaId is required';
2895
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteAuthenticationCACertificate', displayE);
2896
+ done();
2897
+ } catch (err) {
2898
+ log.error(`Test Failure: ${err}`);
2899
+ done(err);
2900
+ }
2901
+ });
2902
+ } catch (error) {
2903
+ log.error(`Adapter Exception: ${error}`);
2904
+ done(error);
2905
+ }
2906
+ }).timeout(attemptTimeout);
2907
+ });
2908
+
2909
+ describe('#createAuthenticationCATemplate - errors', () => {
2910
+ it('should have a createAuthenticationCATemplate function', (done) => {
2911
+ try {
2912
+ assert.equal(true, typeof a.createAuthenticationCATemplate === 'function');
2913
+ done();
2914
+ } catch (error) {
2915
+ log.error(`Test Failure: ${error}`);
2916
+ done(error);
2917
+ }
2918
+ }).timeout(attemptTimeout);
2919
+ });
2920
+
2921
+ describe('#listAuthenticationCATemplate - errors', () => {
2922
+ it('should have a listAuthenticationCATemplate function', (done) => {
2923
+ try {
2924
+ assert.equal(true, typeof a.listAuthenticationCATemplate === 'function');
2925
+ done();
2926
+ } catch (error) {
2927
+ log.error(`Test Failure: ${error}`);
2928
+ done(error);
2929
+ }
2930
+ }).timeout(attemptTimeout);
2931
+ });
2932
+
2933
+ describe('#updateAuthenticationCATemplate - errors', () => {
2934
+ it('should have a updateAuthenticationCATemplate function', (done) => {
2935
+ try {
2936
+ assert.equal(true, typeof a.updateAuthenticationCATemplate === 'function');
2937
+ done();
2938
+ } catch (error) {
2939
+ log.error(`Test Failure: ${error}`);
2940
+ done(error);
2941
+ }
2942
+ }).timeout(attemptTimeout);
2943
+ it('should error if - missing authenticationCaTemplateId', (done) => {
2944
+ try {
2945
+ a.updateAuthenticationCATemplate(null, null, (data, error) => {
2946
+ try {
2947
+ const displayE = 'authenticationCaTemplateId is required';
2948
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateAuthenticationCATemplate', displayE);
2949
+ done();
2950
+ } catch (err) {
2951
+ log.error(`Test Failure: ${err}`);
2952
+ done(err);
2953
+ }
2954
+ });
2955
+ } catch (error) {
2956
+ log.error(`Adapter Exception: ${error}`);
2957
+ done(error);
2958
+ }
2959
+ }).timeout(attemptTimeout);
2960
+ });
2961
+
2962
+ describe('#getAuthenticationCATemplate - errors', () => {
2963
+ it('should have a getAuthenticationCATemplate function', (done) => {
2964
+ try {
2965
+ assert.equal(true, typeof a.getAuthenticationCATemplate === 'function');
2966
+ done();
2967
+ } catch (error) {
2968
+ log.error(`Test Failure: ${error}`);
2969
+ done(error);
2970
+ }
2971
+ }).timeout(attemptTimeout);
2972
+ it('should error if - missing authenticationCaTemplateId', (done) => {
2973
+ try {
2974
+ a.getAuthenticationCATemplate(null, (data, error) => {
2975
+ try {
2976
+ const displayE = 'authenticationCaTemplateId is required';
2977
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getAuthenticationCATemplate', displayE);
2978
+ done();
2979
+ } catch (err) {
2980
+ log.error(`Test Failure: ${err}`);
2981
+ done(err);
2982
+ }
2983
+ });
2984
+ } catch (error) {
2985
+ log.error(`Adapter Exception: ${error}`);
2986
+ done(error);
2987
+ }
2988
+ }).timeout(attemptTimeout);
2989
+ });
2990
+
2991
+ describe('#disableAuthenticationCATemplate - errors', () => {
2992
+ it('should have a disableAuthenticationCATemplate function', (done) => {
2993
+ try {
2994
+ assert.equal(true, typeof a.disableAuthenticationCATemplate === 'function');
2995
+ done();
2996
+ } catch (error) {
2997
+ log.error(`Test Failure: ${error}`);
2998
+ done(error);
2999
+ }
3000
+ }).timeout(attemptTimeout);
3001
+ it('should error if - missing authenticationCaTemplateId', (done) => {
3002
+ try {
3003
+ a.disableAuthenticationCATemplate(null, (data, error) => {
3004
+ try {
3005
+ const displayE = 'authenticationCaTemplateId is required';
3006
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableAuthenticationCATemplate', displayE);
3007
+ done();
3008
+ } catch (err) {
3009
+ log.error(`Test Failure: ${err}`);
3010
+ done(err);
3011
+ }
3012
+ });
3013
+ } catch (error) {
3014
+ log.error(`Adapter Exception: ${error}`);
3015
+ done(error);
3016
+ }
3017
+ }).timeout(attemptTimeout);
3018
+ });
3019
+
3020
+ describe('#deleteAuthenticationCATemplate - errors', () => {
3021
+ it('should have a deleteAuthenticationCATemplate function', (done) => {
3022
+ try {
3023
+ assert.equal(true, typeof a.deleteAuthenticationCATemplate === 'function');
3024
+ done();
3025
+ } catch (error) {
3026
+ log.error(`Test Failure: ${error}`);
3027
+ done(error);
3028
+ }
3029
+ }).timeout(attemptTimeout);
3030
+ it('should error if - missing authenticationCaTemplateId', (done) => {
3031
+ try {
3032
+ a.deleteAuthenticationCATemplate(null, (data, error) => {
3033
+ try {
3034
+ const displayE = 'authenticationCaTemplateId is required';
3035
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteAuthenticationCATemplate', displayE);
3036
+ done();
3037
+ } catch (err) {
3038
+ log.error(`Test Failure: ${err}`);
3039
+ done(err);
3040
+ }
3041
+ });
3042
+ } catch (error) {
3043
+ log.error(`Adapter Exception: ${error}`);
3044
+ done(error);
3045
+ }
3046
+ }).timeout(attemptTimeout);
3047
+ });
3048
+
3049
+ describe('#restoreAuthenticationCATemplate - errors', () => {
3050
+ it('should have a restoreAuthenticationCATemplate function', (done) => {
3051
+ try {
3052
+ assert.equal(true, typeof a.restoreAuthenticationCATemplate === 'function');
3053
+ done();
3054
+ } catch (error) {
3055
+ log.error(`Test Failure: ${error}`);
3056
+ done(error);
3057
+ }
3058
+ }).timeout(attemptTimeout);
3059
+ it('should error if - missing authenticationCaTemplateId', (done) => {
3060
+ try {
3061
+ a.restoreAuthenticationCATemplate(null, (data, error) => {
3062
+ try {
3063
+ const displayE = 'authenticationCaTemplateId is required';
3064
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreAuthenticationCATemplate', displayE);
3065
+ done();
3066
+ } catch (err) {
3067
+ log.error(`Test Failure: ${err}`);
3068
+ done(err);
3069
+ }
3070
+ });
3071
+ } catch (error) {
3072
+ log.error(`Adapter Exception: ${error}`);
3073
+ done(error);
3074
+ }
3075
+ }).timeout(attemptTimeout);
3076
+ });
3077
+
3078
+ describe('#enableAuthenticationCATemplate - errors', () => {
3079
+ it('should have a enableAuthenticationCATemplate function', (done) => {
3080
+ try {
3081
+ assert.equal(true, typeof a.enableAuthenticationCATemplate === 'function');
3082
+ done();
3083
+ } catch (error) {
3084
+ log.error(`Test Failure: ${error}`);
3085
+ done(error);
3086
+ }
3087
+ }).timeout(attemptTimeout);
3088
+ it('should error if - missing authenticationCaTemplateId', (done) => {
3089
+ try {
3090
+ a.enableAuthenticationCATemplate(null, (data, error) => {
3091
+ try {
3092
+ const displayE = 'authenticationCaTemplateId is required';
3093
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableAuthenticationCATemplate', displayE);
3094
+ done();
3095
+ } catch (err) {
3096
+ log.error(`Test Failure: ${err}`);
3097
+ done(err);
3098
+ }
3099
+ });
3100
+ } catch (error) {
3101
+ log.error(`Adapter Exception: ${error}`);
3102
+ done(error);
3103
+ }
3104
+ }).timeout(attemptTimeout);
3105
+ });
3106
+
3107
+ describe('#listAssignableAuthenticationCACertificates - errors', () => {
3108
+ it('should have a listAssignableAuthenticationCACertificates function', (done) => {
3109
+ try {
3110
+ assert.equal(true, typeof a.listAssignableAuthenticationCACertificates === 'function');
3111
+ done();
3112
+ } catch (error) {
3113
+ log.error(`Test Failure: ${error}`);
3114
+ done(error);
3115
+ }
3116
+ }).timeout(attemptTimeout);
3117
+ it('should error if - missing enrollmentProfileId', (done) => {
3118
+ try {
3119
+ a.listAssignableAuthenticationCACertificates(null, null, null, null, (data, error) => {
3120
+ try {
3121
+ const displayE = 'enrollmentProfileId is required';
3122
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listAssignableAuthenticationCACertificates', displayE);
3123
+ done();
3124
+ } catch (err) {
3125
+ log.error(`Test Failure: ${err}`);
3126
+ done(err);
3127
+ }
3128
+ });
3129
+ } catch (error) {
3130
+ log.error(`Adapter Exception: ${error}`);
3131
+ done(error);
3132
+ }
3133
+ }).timeout(attemptTimeout);
3134
+ });
3135
+
3136
+ describe('#addAuthenticationCertificate - errors', () => {
3137
+ it('should have a addAuthenticationCertificate function', (done) => {
3138
+ try {
3139
+ assert.equal(true, typeof a.addAuthenticationCertificate === 'function');
3140
+ done();
3141
+ } catch (error) {
3142
+ log.error(`Test Failure: ${error}`);
3143
+ done(error);
3144
+ }
3145
+ }).timeout(attemptTimeout);
3146
+ });
3147
+
3148
+ describe('#listAuthenticationCertificates - errors', () => {
3149
+ it('should have a listAuthenticationCertificates function', (done) => {
3150
+ try {
3151
+ assert.equal(true, typeof a.listAuthenticationCertificates === 'function');
3152
+ done();
3153
+ } catch (error) {
3154
+ log.error(`Test Failure: ${error}`);
3155
+ done(error);
3156
+ }
3157
+ }).timeout(attemptTimeout);
3158
+ });
3159
+
3160
+ describe('#getAuthenticationCertificateDetails - errors', () => {
3161
+ it('should have a getAuthenticationCertificateDetails function', (done) => {
3162
+ try {
3163
+ assert.equal(true, typeof a.getAuthenticationCertificateDetails === 'function');
3164
+ done();
3165
+ } catch (error) {
3166
+ log.error(`Test Failure: ${error}`);
3167
+ done(error);
3168
+ }
3169
+ }).timeout(attemptTimeout);
3170
+ it('should error if - missing authenticationCertificateId', (done) => {
3171
+ try {
3172
+ a.getAuthenticationCertificateDetails(null, (data, error) => {
3173
+ try {
3174
+ const displayE = 'authenticationCertificateId is required';
3175
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getAuthenticationCertificateDetails', displayE);
3176
+ done();
3177
+ } catch (err) {
3178
+ log.error(`Test Failure: ${err}`);
3179
+ done(err);
3180
+ }
3181
+ });
3182
+ } catch (error) {
3183
+ log.error(`Adapter Exception: ${error}`);
3184
+ done(error);
3185
+ }
3186
+ }).timeout(attemptTimeout);
3187
+ });
3188
+
3189
+ describe('#updateAuthenticationCertificate - errors', () => {
3190
+ it('should have a updateAuthenticationCertificate function', (done) => {
3191
+ try {
3192
+ assert.equal(true, typeof a.updateAuthenticationCertificate === 'function');
3193
+ done();
3194
+ } catch (error) {
3195
+ log.error(`Test Failure: ${error}`);
3196
+ done(error);
3197
+ }
3198
+ }).timeout(attemptTimeout);
3199
+ it('should error if - missing authenticationCertificateId', (done) => {
3200
+ try {
3201
+ a.updateAuthenticationCertificate(null, null, (data, error) => {
3202
+ try {
3203
+ const displayE = 'authenticationCertificateId is required';
3204
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateAuthenticationCertificate', displayE);
3205
+ done();
3206
+ } catch (err) {
3207
+ log.error(`Test Failure: ${err}`);
3208
+ done(err);
3209
+ }
3210
+ });
3211
+ } catch (error) {
3212
+ log.error(`Adapter Exception: ${error}`);
3213
+ done(error);
3214
+ }
3215
+ }).timeout(attemptTimeout);
3216
+ });
3217
+
3218
+ describe('#disableAuthenticationCertificate - errors', () => {
3219
+ it('should have a disableAuthenticationCertificate function', (done) => {
3220
+ try {
3221
+ assert.equal(true, typeof a.disableAuthenticationCertificate === 'function');
3222
+ done();
3223
+ } catch (error) {
3224
+ log.error(`Test Failure: ${error}`);
3225
+ done(error);
3226
+ }
3227
+ }).timeout(attemptTimeout);
3228
+ it('should error if - missing authenticationCertificateId', (done) => {
3229
+ try {
3230
+ a.disableAuthenticationCertificate(null, (data, error) => {
3231
+ try {
3232
+ const displayE = 'authenticationCertificateId is required';
3233
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableAuthenticationCertificate', displayE);
3234
+ done();
3235
+ } catch (err) {
3236
+ log.error(`Test Failure: ${err}`);
3237
+ done(err);
3238
+ }
3239
+ });
3240
+ } catch (error) {
3241
+ log.error(`Adapter Exception: ${error}`);
3242
+ done(error);
3243
+ }
3244
+ }).timeout(attemptTimeout);
3245
+ });
3246
+
3247
+ describe('#enableAuthenticationCertificate - errors', () => {
3248
+ it('should have a enableAuthenticationCertificate function', (done) => {
3249
+ try {
3250
+ assert.equal(true, typeof a.enableAuthenticationCertificate === 'function');
3251
+ done();
3252
+ } catch (error) {
3253
+ log.error(`Test Failure: ${error}`);
3254
+ done(error);
3255
+ }
3256
+ }).timeout(attemptTimeout);
3257
+ it('should error if - missing authenticationCertificateId', (done) => {
3258
+ try {
3259
+ a.enableAuthenticationCertificate(null, (data, error) => {
3260
+ try {
3261
+ const displayE = 'authenticationCertificateId is required';
3262
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableAuthenticationCertificate', displayE);
3263
+ done();
3264
+ } catch (err) {
3265
+ log.error(`Test Failure: ${err}`);
3266
+ done(err);
3267
+ }
3268
+ });
3269
+ } catch (error) {
3270
+ log.error(`Adapter Exception: ${error}`);
3271
+ done(error);
3272
+ }
3273
+ }).timeout(attemptTimeout);
3274
+ });
3275
+
3276
+ describe('#deleteAuthenticationCertificate - errors', () => {
3277
+ it('should have a deleteAuthenticationCertificate function', (done) => {
3278
+ try {
3279
+ assert.equal(true, typeof a.deleteAuthenticationCertificate === 'function');
3280
+ done();
3281
+ } catch (error) {
3282
+ log.error(`Test Failure: ${error}`);
3283
+ done(error);
3284
+ }
3285
+ }).timeout(attemptTimeout);
3286
+ it('should error if - missing authenticationCertificateId', (done) => {
3287
+ try {
3288
+ a.deleteAuthenticationCertificate(null, (data, error) => {
3289
+ try {
3290
+ const displayE = 'authenticationCertificateId is required';
3291
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteAuthenticationCertificate', displayE);
3292
+ done();
3293
+ } catch (err) {
3294
+ log.error(`Test Failure: ${err}`);
3295
+ done(err);
3296
+ }
3297
+ });
3298
+ } catch (error) {
3299
+ log.error(`Adapter Exception: ${error}`);
3300
+ done(error);
3301
+ }
3302
+ }).timeout(attemptTimeout);
3303
+ });
3304
+
3305
+ describe('#restoreAuthenticationCertificate - errors', () => {
3306
+ it('should have a restoreAuthenticationCertificate function', (done) => {
3307
+ try {
3308
+ assert.equal(true, typeof a.restoreAuthenticationCertificate === 'function');
3309
+ done();
3310
+ } catch (error) {
3311
+ log.error(`Test Failure: ${error}`);
3312
+ done(error);
3313
+ }
3314
+ }).timeout(attemptTimeout);
3315
+ it('should error if - missing authenticationCertificateId', (done) => {
3316
+ try {
3317
+ a.restoreAuthenticationCertificate(null, (data, error) => {
3318
+ try {
3319
+ const displayE = 'authenticationCertificateId is required';
3320
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreAuthenticationCertificate', displayE);
3321
+ done();
3322
+ } catch (err) {
3323
+ log.error(`Test Failure: ${err}`);
3324
+ done(err);
3325
+ }
3326
+ });
3327
+ } catch (error) {
3328
+ log.error(`Adapter Exception: ${error}`);
3329
+ done(error);
3330
+ }
3331
+ }).timeout(attemptTimeout);
3332
+ });
3333
+
3334
+ describe('#listCertificateProfiles - errors', () => {
3335
+ it('should have a listCertificateProfiles function', (done) => {
3336
+ try {
3337
+ assert.equal(true, typeof a.listCertificateProfiles === 'function');
3338
+ done();
3339
+ } catch (error) {
3340
+ log.error(`Test Failure: ${error}`);
3341
+ done(error);
3342
+ }
3343
+ }).timeout(attemptTimeout);
3344
+ });
3345
+
3346
+ describe('#createCertificateProfile - errors', () => {
3347
+ it('should have a createCertificateProfile function', (done) => {
3348
+ try {
3349
+ assert.equal(true, typeof a.createCertificateProfile === 'function');
3350
+ done();
3351
+ } catch (error) {
3352
+ log.error(`Test Failure: ${error}`);
3353
+ done(error);
3354
+ }
3355
+ }).timeout(attemptTimeout);
3356
+ });
3357
+
3358
+ describe('#getCertificateProfile - errors', () => {
3359
+ it('should have a getCertificateProfile function', (done) => {
3360
+ try {
3361
+ assert.equal(true, typeof a.getCertificateProfile === 'function');
3362
+ done();
3363
+ } catch (error) {
3364
+ log.error(`Test Failure: ${error}`);
3365
+ done(error);
3366
+ }
3367
+ }).timeout(attemptTimeout);
3368
+ it('should error if - missing certificateProfileId', (done) => {
3369
+ try {
3370
+ a.getCertificateProfile(null, (data, error) => {
3371
+ try {
3372
+ const displayE = 'certificateProfileId is required';
3373
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getCertificateProfile', displayE);
3374
+ done();
3375
+ } catch (err) {
3376
+ log.error(`Test Failure: ${err}`);
3377
+ done(err);
3378
+ }
3379
+ });
3380
+ } catch (error) {
3381
+ log.error(`Adapter Exception: ${error}`);
3382
+ done(error);
3383
+ }
3384
+ }).timeout(attemptTimeout);
3385
+ });
3386
+
3387
+ describe('#updateCertificateProfile - errors', () => {
3388
+ it('should have a updateCertificateProfile function', (done) => {
3389
+ try {
3390
+ assert.equal(true, typeof a.updateCertificateProfile === 'function');
3391
+ done();
3392
+ } catch (error) {
3393
+ log.error(`Test Failure: ${error}`);
3394
+ done(error);
3395
+ }
3396
+ }).timeout(attemptTimeout);
3397
+ it('should error if - missing certificateProfileId', (done) => {
3398
+ try {
3399
+ a.updateCertificateProfile(null, null, (data, error) => {
3400
+ try {
3401
+ const displayE = 'certificateProfileId is required';
3402
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateCertificateProfile', displayE);
3403
+ done();
3404
+ } catch (err) {
3405
+ log.error(`Test Failure: ${err}`);
3406
+ done(err);
3407
+ }
3408
+ });
3409
+ } catch (error) {
3410
+ log.error(`Adapter Exception: ${error}`);
3411
+ done(error);
3412
+ }
3413
+ }).timeout(attemptTimeout);
3414
+ });
3415
+
3416
+ describe('#disableCertificateProfile - errors', () => {
3417
+ it('should have a disableCertificateProfile function', (done) => {
3418
+ try {
3419
+ assert.equal(true, typeof a.disableCertificateProfile === 'function');
3420
+ done();
3421
+ } catch (error) {
3422
+ log.error(`Test Failure: ${error}`);
3423
+ done(error);
3424
+ }
3425
+ }).timeout(attemptTimeout);
3426
+ it('should error if - missing certificateProfileId', (done) => {
3427
+ try {
3428
+ a.disableCertificateProfile(null, (data, error) => {
3429
+ try {
3430
+ const displayE = 'certificateProfileId is required';
3431
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableCertificateProfile', displayE);
3432
+ done();
3433
+ } catch (err) {
3434
+ log.error(`Test Failure: ${err}`);
3435
+ done(err);
3436
+ }
3437
+ });
3438
+ } catch (error) {
3439
+ log.error(`Adapter Exception: ${error}`);
3440
+ done(error);
3441
+ }
3442
+ }).timeout(attemptTimeout);
3443
+ });
3444
+
3445
+ describe('#enableCertificateProfile - errors', () => {
3446
+ it('should have a enableCertificateProfile function', (done) => {
3447
+ try {
3448
+ assert.equal(true, typeof a.enableCertificateProfile === 'function');
3449
+ done();
3450
+ } catch (error) {
3451
+ log.error(`Test Failure: ${error}`);
3452
+ done(error);
3453
+ }
3454
+ }).timeout(attemptTimeout);
3455
+ it('should error if - missing certificateProfileId', (done) => {
3456
+ try {
3457
+ a.enableCertificateProfile(null, (data, error) => {
3458
+ try {
3459
+ const displayE = 'certificateProfileId is required';
3460
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableCertificateProfile', displayE);
3461
+ done();
3462
+ } catch (err) {
3463
+ log.error(`Test Failure: ${err}`);
3464
+ done(err);
3465
+ }
3466
+ });
3467
+ } catch (error) {
3468
+ log.error(`Adapter Exception: ${error}`);
3469
+ done(error);
3470
+ }
3471
+ }).timeout(attemptTimeout);
3472
+ });
3473
+
3474
+ describe('#deleteCertificateProfile - errors', () => {
3475
+ it('should have a deleteCertificateProfile function', (done) => {
3476
+ try {
3477
+ assert.equal(true, typeof a.deleteCertificateProfile === 'function');
3478
+ done();
3479
+ } catch (error) {
3480
+ log.error(`Test Failure: ${error}`);
3481
+ done(error);
3482
+ }
3483
+ }).timeout(attemptTimeout);
3484
+ it('should error if - missing certificateProfileId', (done) => {
3485
+ try {
3486
+ a.deleteCertificateProfile(null, (data, error) => {
3487
+ try {
3488
+ const displayE = 'certificateProfileId is required';
3489
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteCertificateProfile', displayE);
3490
+ done();
3491
+ } catch (err) {
3492
+ log.error(`Test Failure: ${err}`);
3493
+ done(err);
3494
+ }
3495
+ });
3496
+ } catch (error) {
3497
+ log.error(`Adapter Exception: ${error}`);
3498
+ done(error);
3499
+ }
3500
+ }).timeout(attemptTimeout);
3501
+ });
3502
+
3503
+ describe('#restoreCertificateProfile - errors', () => {
3504
+ it('should have a restoreCertificateProfile function', (done) => {
3505
+ try {
3506
+ assert.equal(true, typeof a.restoreCertificateProfile === 'function');
3507
+ done();
3508
+ } catch (error) {
3509
+ log.error(`Test Failure: ${error}`);
3510
+ done(error);
3511
+ }
3512
+ }).timeout(attemptTimeout);
3513
+ it('should error if - missing certificateProfileId', (done) => {
3514
+ try {
3515
+ a.restoreCertificateProfile(null, (data, error) => {
3516
+ try {
3517
+ const displayE = 'certificateProfileId is required';
3518
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreCertificateProfile', displayE);
3519
+ done();
3520
+ } catch (err) {
3521
+ log.error(`Test Failure: ${err}`);
3522
+ done(err);
3523
+ }
3524
+ });
3525
+ } catch (error) {
3526
+ log.error(`Adapter Exception: ${error}`);
3527
+ done(error);
3528
+ }
3529
+ }).timeout(attemptTimeout);
3530
+ });
3531
+
3532
+ describe('#assignCertificateProfileDivisions - errors', () => {
3533
+ it('should have a assignCertificateProfileDivisions function', (done) => {
3534
+ try {
3535
+ assert.equal(true, typeof a.assignCertificateProfileDivisions === 'function');
3536
+ done();
3537
+ } catch (error) {
3538
+ log.error(`Test Failure: ${error}`);
3539
+ done(error);
3540
+ }
3541
+ }).timeout(attemptTimeout);
3542
+ it('should error if - missing certificateProfileId', (done) => {
3543
+ try {
3544
+ a.assignCertificateProfileDivisions(null, null, (data, error) => {
3545
+ try {
3546
+ const displayE = 'certificateProfileId is required';
3547
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-assignCertificateProfileDivisions', displayE);
3548
+ done();
3549
+ } catch (err) {
3550
+ log.error(`Test Failure: ${err}`);
3551
+ done(err);
3552
+ }
3553
+ });
3554
+ } catch (error) {
3555
+ log.error(`Adapter Exception: ${error}`);
3556
+ done(error);
3557
+ }
3558
+ }).timeout(attemptTimeout);
3559
+ });
3560
+
3561
+ describe('#unassignCertificateProfileDivisions - errors', () => {
3562
+ it('should have a unassignCertificateProfileDivisions function', (done) => {
3563
+ try {
3564
+ assert.equal(true, typeof a.unassignCertificateProfileDivisions === 'function');
3565
+ done();
3566
+ } catch (error) {
3567
+ log.error(`Test Failure: ${error}`);
3568
+ done(error);
3569
+ }
3570
+ }).timeout(attemptTimeout);
3571
+ it('should error if - missing certificateProfileId', (done) => {
3572
+ try {
3573
+ a.unassignCertificateProfileDivisions(null, null, (data, error) => {
3574
+ try {
3575
+ const displayE = 'certificateProfileId is required';
3576
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-unassignCertificateProfileDivisions', displayE);
3577
+ done();
3578
+ } catch (err) {
3579
+ log.error(`Test Failure: ${err}`);
3580
+ done(err);
3581
+ }
3582
+ });
3583
+ } catch (error) {
3584
+ log.error(`Adapter Exception: ${error}`);
3585
+ done(error);
3586
+ }
3587
+ }).timeout(attemptTimeout);
3588
+ });
3589
+
3590
+ describe('#getRequestStatus - errors', () => {
3591
+ it('should have a getRequestStatus function', (done) => {
3592
+ try {
3593
+ assert.equal(true, typeof a.getRequestStatus === 'function');
3594
+ done();
3595
+ } catch (error) {
3596
+ log.error(`Test Failure: ${error}`);
3597
+ done(error);
3598
+ }
3599
+ }).timeout(attemptTimeout);
3600
+ it('should error if - missing certificateRequestId', (done) => {
3601
+ try {
3602
+ a.getRequestStatus(null, (data, error) => {
3603
+ try {
3604
+ const displayE = 'certificateRequestId is required';
3605
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getRequestStatus', displayE);
3606
+ done();
3607
+ } catch (err) {
3608
+ log.error(`Test Failure: ${err}`);
3609
+ done(err);
3610
+ }
3611
+ });
3612
+ } catch (error) {
3613
+ log.error(`Adapter Exception: ${error}`);
3614
+ done(error);
3615
+ }
3616
+ }).timeout(attemptTimeout);
3617
+ });
3618
+
3619
+ describe('#listCertificateTemplates - errors', () => {
3620
+ it('should have a listCertificateTemplates function', (done) => {
3621
+ try {
3622
+ assert.equal(true, typeof a.listCertificateTemplates === 'function');
3623
+ done();
3624
+ } catch (error) {
3625
+ log.error(`Test Failure: ${error}`);
3626
+ done(error);
3627
+ }
3628
+ }).timeout(attemptTimeout);
3629
+ });
3630
+
3631
+ describe('#createCertificateTemplate - errors', () => {
3632
+ it('should have a createCertificateTemplate function', (done) => {
3633
+ try {
3634
+ assert.equal(true, typeof a.createCertificateTemplate === 'function');
3635
+ done();
3636
+ } catch (error) {
3637
+ log.error(`Test Failure: ${error}`);
3638
+ done(error);
3639
+ }
3640
+ }).timeout(attemptTimeout);
3641
+ });
3642
+
3643
+ describe('#getCertificateTemplate - errors', () => {
3644
+ it('should have a getCertificateTemplate function', (done) => {
3645
+ try {
3646
+ assert.equal(true, typeof a.getCertificateTemplate === 'function');
3647
+ done();
3648
+ } catch (error) {
3649
+ log.error(`Test Failure: ${error}`);
3650
+ done(error);
3651
+ }
3652
+ }).timeout(attemptTimeout);
3653
+ it('should error if - missing certificateTemplateId', (done) => {
3654
+ try {
3655
+ a.getCertificateTemplate(null, (data, error) => {
3656
+ try {
3657
+ const displayE = 'certificateTemplateId is required';
3658
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getCertificateTemplate', displayE);
3659
+ done();
3660
+ } catch (err) {
3661
+ log.error(`Test Failure: ${err}`);
3662
+ done(err);
3663
+ }
3664
+ });
3665
+ } catch (error) {
3666
+ log.error(`Adapter Exception: ${error}`);
3667
+ done(error);
3668
+ }
3669
+ }).timeout(attemptTimeout);
3670
+ });
3671
+
3672
+ describe('#updateCertificateTemplate - errors', () => {
3673
+ it('should have a updateCertificateTemplate function', (done) => {
3674
+ try {
3675
+ assert.equal(true, typeof a.updateCertificateTemplate === 'function');
3676
+ done();
3677
+ } catch (error) {
3678
+ log.error(`Test Failure: ${error}`);
3679
+ done(error);
3680
+ }
3681
+ }).timeout(attemptTimeout);
3682
+ it('should error if - missing certificateTemplateId', (done) => {
3683
+ try {
3684
+ a.updateCertificateTemplate(null, null, (data, error) => {
3685
+ try {
3686
+ const displayE = 'certificateTemplateId is required';
3687
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateCertificateTemplate', displayE);
3688
+ done();
3689
+ } catch (err) {
3690
+ log.error(`Test Failure: ${err}`);
3691
+ done(err);
3692
+ }
3693
+ });
3694
+ } catch (error) {
3695
+ log.error(`Adapter Exception: ${error}`);
3696
+ done(error);
3697
+ }
3698
+ }).timeout(attemptTimeout);
3699
+ });
3700
+
3701
+ describe('#clonecertificatetemplate - errors', () => {
3702
+ it('should have a clonecertificatetemplate function', (done) => {
3703
+ try {
3704
+ assert.equal(true, typeof a.clonecertificatetemplate === 'function');
3705
+ done();
3706
+ } catch (error) {
3707
+ log.error(`Test Failure: ${error}`);
3708
+ done(error);
3709
+ }
3710
+ }).timeout(attemptTimeout);
3711
+ it('should error if - missing certificateTemplateId', (done) => {
3712
+ try {
3713
+ a.clonecertificatetemplate(null, null, (data, error) => {
3714
+ try {
3715
+ const displayE = 'certificateTemplateId is required';
3716
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-clonecertificatetemplate', displayE);
3717
+ done();
3718
+ } catch (err) {
3719
+ log.error(`Test Failure: ${err}`);
3720
+ done(err);
3721
+ }
3722
+ });
3723
+ } catch (error) {
3724
+ log.error(`Adapter Exception: ${error}`);
3725
+ done(error);
3726
+ }
3727
+ }).timeout(attemptTimeout);
3728
+ });
3729
+
3730
+ describe('#disableCertificateTemplate - errors', () => {
3731
+ it('should have a disableCertificateTemplate function', (done) => {
3732
+ try {
3733
+ assert.equal(true, typeof a.disableCertificateTemplate === 'function');
3734
+ done();
3735
+ } catch (error) {
3736
+ log.error(`Test Failure: ${error}`);
3737
+ done(error);
3738
+ }
3739
+ }).timeout(attemptTimeout);
3740
+ it('should error if - missing certificateTemplateId', (done) => {
3741
+ try {
3742
+ a.disableCertificateTemplate(null, (data, error) => {
3743
+ try {
3744
+ const displayE = 'certificateTemplateId is required';
3745
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableCertificateTemplate', displayE);
3746
+ done();
3747
+ } catch (err) {
3748
+ log.error(`Test Failure: ${err}`);
3749
+ done(err);
3750
+ }
3751
+ });
3752
+ } catch (error) {
3753
+ log.error(`Adapter Exception: ${error}`);
3754
+ done(error);
3755
+ }
3756
+ }).timeout(attemptTimeout);
3757
+ });
3758
+
3759
+ describe('#enableCertificateTemplate - errors', () => {
3760
+ it('should have a enableCertificateTemplate function', (done) => {
3761
+ try {
3762
+ assert.equal(true, typeof a.enableCertificateTemplate === 'function');
3763
+ done();
3764
+ } catch (error) {
3765
+ log.error(`Test Failure: ${error}`);
3766
+ done(error);
3767
+ }
3768
+ }).timeout(attemptTimeout);
3769
+ it('should error if - missing certificateTemplateId', (done) => {
3770
+ try {
3771
+ a.enableCertificateTemplate(null, (data, error) => {
3772
+ try {
3773
+ const displayE = 'certificateTemplateId is required';
3774
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableCertificateTemplate', displayE);
3775
+ done();
3776
+ } catch (err) {
3777
+ log.error(`Test Failure: ${err}`);
3778
+ done(err);
3779
+ }
3780
+ });
3781
+ } catch (error) {
3782
+ log.error(`Adapter Exception: ${error}`);
3783
+ done(error);
3784
+ }
3785
+ }).timeout(attemptTimeout);
3786
+ });
3787
+
3788
+ describe('#deleteCertificateTemplate - errors', () => {
3789
+ it('should have a deleteCertificateTemplate function', (done) => {
3790
+ try {
3791
+ assert.equal(true, typeof a.deleteCertificateTemplate === 'function');
3792
+ done();
3793
+ } catch (error) {
3794
+ log.error(`Test Failure: ${error}`);
3795
+ done(error);
3796
+ }
3797
+ }).timeout(attemptTimeout);
3798
+ it('should error if - missing certificateTemplateId', (done) => {
3799
+ try {
3800
+ a.deleteCertificateTemplate(null, (data, error) => {
3801
+ try {
3802
+ const displayE = 'certificateTemplateId is required';
3803
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteCertificateTemplate', displayE);
3804
+ done();
3805
+ } catch (err) {
3806
+ log.error(`Test Failure: ${err}`);
3807
+ done(err);
3808
+ }
3809
+ });
3810
+ } catch (error) {
3811
+ log.error(`Adapter Exception: ${error}`);
3812
+ done(error);
3813
+ }
3814
+ }).timeout(attemptTimeout);
3815
+ });
3816
+
3817
+ describe('#restoreCertificateTemplate - errors', () => {
3818
+ it('should have a restoreCertificateTemplate function', (done) => {
3819
+ try {
3820
+ assert.equal(true, typeof a.restoreCertificateTemplate === 'function');
3821
+ done();
3822
+ } catch (error) {
3823
+ log.error(`Test Failure: ${error}`);
3824
+ done(error);
3825
+ }
3826
+ }).timeout(attemptTimeout);
3827
+ it('should error if - missing certificateTemplateId', (done) => {
3828
+ try {
3829
+ a.restoreCertificateTemplate(null, (data, error) => {
3830
+ try {
3831
+ const displayE = 'certificateTemplateId is required';
3832
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreCertificateTemplate', displayE);
3833
+ done();
3834
+ } catch (err) {
3835
+ log.error(`Test Failure: ${err}`);
3836
+ done(err);
3837
+ }
3838
+ });
3839
+ } catch (error) {
3840
+ log.error(`Adapter Exception: ${error}`);
3841
+ done(error);
3842
+ }
3843
+ }).timeout(attemptTimeout);
3844
+ });
3845
+
3846
+ describe('#createDevice - errors', () => {
3847
+ it('should have a createDevice function', (done) => {
3848
+ try {
3849
+ assert.equal(true, typeof a.createDevice === 'function');
3850
+ done();
3851
+ } catch (error) {
3852
+ log.error(`Test Failure: ${error}`);
3853
+ done(error);
3854
+ }
3855
+ }).timeout(attemptTimeout);
3856
+ });
3857
+
3858
+ describe('#getDeviceList - errors', () => {
3859
+ it('should have a getDeviceList function', (done) => {
3860
+ try {
3861
+ assert.equal(true, typeof a.getDeviceList === 'function');
3862
+ done();
3863
+ } catch (error) {
3864
+ log.error(`Test Failure: ${error}`);
3865
+ done(error);
3866
+ }
3867
+ }).timeout(attemptTimeout);
3868
+ });
3869
+
3870
+ describe('#getDeviceDetails - errors', () => {
3871
+ it('should have a getDeviceDetails function', (done) => {
3872
+ try {
3873
+ assert.equal(true, typeof a.getDeviceDetails === 'function');
3874
+ done();
3875
+ } catch (error) {
3876
+ log.error(`Test Failure: ${error}`);
3877
+ done(error);
3878
+ }
3879
+ }).timeout(attemptTimeout);
3880
+ it('should error if - missing deviceIdentifier', (done) => {
3881
+ try {
3882
+ a.getDeviceDetails(null, null, (data, error) => {
3883
+ try {
3884
+ const displayE = 'deviceIdentifier is required';
3885
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getDeviceDetails', displayE);
3886
+ done();
3887
+ } catch (err) {
3888
+ log.error(`Test Failure: ${err}`);
3889
+ done(err);
3890
+ }
3891
+ });
3892
+ } catch (error) {
3893
+ log.error(`Adapter Exception: ${error}`);
3894
+ done(error);
3895
+ }
3896
+ }).timeout(attemptTimeout);
3897
+ it('should error if - missing divisionId', (done) => {
3898
+ try {
3899
+ a.getDeviceDetails('fakeparam', null, (data, error) => {
3900
+ try {
3901
+ const displayE = 'divisionId is required';
3902
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getDeviceDetails', displayE);
3903
+ done();
3904
+ } catch (err) {
3905
+ log.error(`Test Failure: ${err}`);
3906
+ done(err);
3907
+ }
3908
+ });
3909
+ } catch (error) {
3910
+ log.error(`Adapter Exception: ${error}`);
3911
+ done(error);
3912
+ }
3913
+ }).timeout(attemptTimeout);
3914
+ });
3915
+
3916
+ describe('#updateDevice - errors', () => {
3917
+ it('should have a updateDevice function', (done) => {
3918
+ try {
3919
+ assert.equal(true, typeof a.updateDevice === 'function');
3920
+ done();
3921
+ } catch (error) {
3922
+ log.error(`Test Failure: ${error}`);
3923
+ done(error);
3924
+ }
3925
+ }).timeout(attemptTimeout);
3926
+ it('should error if - missing deviceIdentifier', (done) => {
3927
+ try {
3928
+ a.updateDevice(null, null, null, (data, error) => {
3929
+ try {
3930
+ const displayE = 'deviceIdentifier is required';
3931
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateDevice', displayE);
3932
+ done();
3933
+ } catch (err) {
3934
+ log.error(`Test Failure: ${err}`);
3935
+ done(err);
3936
+ }
3937
+ });
3938
+ } catch (error) {
3939
+ log.error(`Adapter Exception: ${error}`);
3940
+ done(error);
3941
+ }
3942
+ }).timeout(attemptTimeout);
3943
+ it('should error if - missing divisionId', (done) => {
3944
+ try {
3945
+ a.updateDevice('fakeparam', null, null, (data, error) => {
3946
+ try {
3947
+ const displayE = 'divisionId is required';
3948
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateDevice', displayE);
3949
+ done();
3950
+ } catch (err) {
3951
+ log.error(`Test Failure: ${err}`);
3952
+ done(err);
3953
+ }
3954
+ });
3955
+ } catch (error) {
3956
+ log.error(`Adapter Exception: ${error}`);
3957
+ done(error);
3958
+ }
3959
+ }).timeout(attemptTimeout);
3960
+ });
3961
+
3962
+ describe('#archiveDevice - errors', () => {
3963
+ it('should have a archiveDevice function', (done) => {
3964
+ try {
3965
+ assert.equal(true, typeof a.archiveDevice === 'function');
3966
+ done();
3967
+ } catch (error) {
3968
+ log.error(`Test Failure: ${error}`);
3969
+ done(error);
3970
+ }
3971
+ }).timeout(attemptTimeout);
3972
+ it('should error if - missing deviceIdentifier', (done) => {
3973
+ try {
3974
+ a.archiveDevice(null, null, (data, error) => {
3975
+ try {
3976
+ const displayE = 'deviceIdentifier is required';
3977
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-archiveDevice', displayE);
3978
+ done();
3979
+ } catch (err) {
3980
+ log.error(`Test Failure: ${err}`);
3981
+ done(err);
3982
+ }
3983
+ });
3984
+ } catch (error) {
3985
+ log.error(`Adapter Exception: ${error}`);
3986
+ done(error);
3987
+ }
3988
+ }).timeout(attemptTimeout);
3989
+ it('should error if - missing divisionId', (done) => {
3990
+ try {
3991
+ a.archiveDevice('fakeparam', null, (data, error) => {
3992
+ try {
3993
+ const displayE = 'divisionId is required';
3994
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-archiveDevice', displayE);
3995
+ done();
3996
+ } catch (err) {
3997
+ log.error(`Test Failure: ${err}`);
3998
+ done(err);
3999
+ }
4000
+ });
4001
+ } catch (error) {
4002
+ log.error(`Adapter Exception: ${error}`);
4003
+ done(error);
4004
+ }
4005
+ }).timeout(attemptTimeout);
4006
+ });
4007
+
4008
+ describe('#enableDevice - errors', () => {
4009
+ it('should have a enableDevice function', (done) => {
4010
+ try {
4011
+ assert.equal(true, typeof a.enableDevice === 'function');
4012
+ done();
4013
+ } catch (error) {
4014
+ log.error(`Test Failure: ${error}`);
4015
+ done(error);
4016
+ }
4017
+ }).timeout(attemptTimeout);
4018
+ it('should error if - missing deviceIdentifier', (done) => {
4019
+ try {
4020
+ a.enableDevice(null, null, (data, error) => {
4021
+ try {
4022
+ const displayE = 'deviceIdentifier is required';
4023
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableDevice', displayE);
4024
+ done();
4025
+ } catch (err) {
4026
+ log.error(`Test Failure: ${err}`);
4027
+ done(err);
4028
+ }
4029
+ });
4030
+ } catch (error) {
4031
+ log.error(`Adapter Exception: ${error}`);
4032
+ done(error);
4033
+ }
4034
+ }).timeout(attemptTimeout);
4035
+ it('should error if - missing divisionId', (done) => {
4036
+ try {
4037
+ a.enableDevice('fakeparam', null, (data, error) => {
4038
+ try {
4039
+ const displayE = 'divisionId is required';
4040
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableDevice', displayE);
4041
+ done();
4042
+ } catch (err) {
4043
+ log.error(`Test Failure: ${err}`);
4044
+ done(err);
4045
+ }
4046
+ });
4047
+ } catch (error) {
4048
+ log.error(`Adapter Exception: ${error}`);
4049
+ done(error);
4050
+ }
4051
+ }).timeout(attemptTimeout);
4052
+ });
4053
+
4054
+ describe('#disableDevice - errors', () => {
4055
+ it('should have a disableDevice function', (done) => {
4056
+ try {
4057
+ assert.equal(true, typeof a.disableDevice === 'function');
4058
+ done();
4059
+ } catch (error) {
4060
+ log.error(`Test Failure: ${error}`);
4061
+ done(error);
4062
+ }
4063
+ }).timeout(attemptTimeout);
4064
+ it('should error if - missing deviceIdentifier', (done) => {
4065
+ try {
4066
+ a.disableDevice(null, null, (data, error) => {
4067
+ try {
4068
+ const displayE = 'deviceIdentifier is required';
4069
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableDevice', displayE);
4070
+ done();
4071
+ } catch (err) {
4072
+ log.error(`Test Failure: ${err}`);
4073
+ done(err);
4074
+ }
4075
+ });
4076
+ } catch (error) {
4077
+ log.error(`Adapter Exception: ${error}`);
4078
+ done(error);
4079
+ }
4080
+ }).timeout(attemptTimeout);
4081
+ it('should error if - missing divisionId', (done) => {
4082
+ try {
4083
+ a.disableDevice('fakeparam', null, (data, error) => {
4084
+ try {
4085
+ const displayE = 'divisionId is required';
4086
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableDevice', displayE);
4087
+ done();
4088
+ } catch (err) {
4089
+ log.error(`Test Failure: ${err}`);
4090
+ done(err);
4091
+ }
4092
+ });
4093
+ } catch (error) {
4094
+ log.error(`Adapter Exception: ${error}`);
4095
+ done(error);
4096
+ }
4097
+ }).timeout(attemptTimeout);
4098
+ });
4099
+
4100
+ describe('#restoreDevice - errors', () => {
4101
+ it('should have a restoreDevice function', (done) => {
4102
+ try {
4103
+ assert.equal(true, typeof a.restoreDevice === 'function');
4104
+ done();
4105
+ } catch (error) {
4106
+ log.error(`Test Failure: ${error}`);
4107
+ done(error);
4108
+ }
4109
+ }).timeout(attemptTimeout);
4110
+ it('should error if - missing deviceIdentifier', (done) => {
4111
+ try {
4112
+ a.restoreDevice(null, null, (data, error) => {
4113
+ try {
4114
+ const displayE = 'deviceIdentifier is required';
4115
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreDevice', displayE);
4116
+ done();
4117
+ } catch (err) {
4118
+ log.error(`Test Failure: ${err}`);
4119
+ done(err);
4120
+ }
4121
+ });
4122
+ } catch (error) {
4123
+ log.error(`Adapter Exception: ${error}`);
4124
+ done(error);
4125
+ }
4126
+ }).timeout(attemptTimeout);
4127
+ it('should error if - missing divisionId', (done) => {
4128
+ try {
4129
+ a.restoreDevice('fakeparam', null, (data, error) => {
4130
+ try {
4131
+ const displayE = 'divisionId is required';
4132
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreDevice', displayE);
4133
+ done();
4134
+ } catch (err) {
4135
+ log.error(`Test Failure: ${err}`);
4136
+ done(err);
4137
+ }
4138
+ });
4139
+ } catch (error) {
4140
+ log.error(`Adapter Exception: ${error}`);
4141
+ done(error);
4142
+ }
4143
+ }).timeout(attemptTimeout);
4144
+ });
4145
+
4146
+ describe('#createDeviceV2 - errors', () => {
4147
+ it('should have a createDeviceV2 function', (done) => {
4148
+ try {
4149
+ assert.equal(true, typeof a.createDeviceV2 === 'function');
4150
+ done();
4151
+ } catch (error) {
4152
+ log.error(`Test Failure: ${error}`);
4153
+ done(error);
4154
+ }
4155
+ }).timeout(attemptTimeout);
4156
+ });
4157
+
4158
+ describe('#getDeviceListV2 - errors', () => {
4159
+ it('should have a getDeviceListV2 function', (done) => {
4160
+ try {
4161
+ assert.equal(true, typeof a.getDeviceListV2 === 'function');
4162
+ done();
4163
+ } catch (error) {
4164
+ log.error(`Test Failure: ${error}`);
4165
+ done(error);
4166
+ }
4167
+ }).timeout(attemptTimeout);
4168
+ });
4169
+
4170
+ describe('#getDeviceDetailsV2 - errors', () => {
4171
+ it('should have a getDeviceDetailsV2 function', (done) => {
4172
+ try {
4173
+ assert.equal(true, typeof a.getDeviceDetailsV2 === 'function');
4174
+ done();
4175
+ } catch (error) {
4176
+ log.error(`Test Failure: ${error}`);
4177
+ done(error);
4178
+ }
4179
+ }).timeout(attemptTimeout);
4180
+ it('should error if - missing deviceId', (done) => {
4181
+ try {
4182
+ a.getDeviceDetailsV2(null, (data, error) => {
4183
+ try {
4184
+ const displayE = 'deviceId is required';
4185
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getDeviceDetailsV2', displayE);
4186
+ done();
4187
+ } catch (err) {
4188
+ log.error(`Test Failure: ${err}`);
4189
+ done(err);
4190
+ }
4191
+ });
4192
+ } catch (error) {
4193
+ log.error(`Adapter Exception: ${error}`);
4194
+ done(error);
4195
+ }
4196
+ }).timeout(attemptTimeout);
4197
+ });
4198
+
4199
+ describe('#updateDeviceV2 - errors', () => {
4200
+ it('should have a updateDeviceV2 function', (done) => {
4201
+ try {
4202
+ assert.equal(true, typeof a.updateDeviceV2 === 'function');
4203
+ done();
4204
+ } catch (error) {
4205
+ log.error(`Test Failure: ${error}`);
4206
+ done(error);
4207
+ }
4208
+ }).timeout(attemptTimeout);
4209
+ it('should error if - missing deviceId', (done) => {
4210
+ try {
4211
+ a.updateDeviceV2(null, null, (data, error) => {
4212
+ try {
4213
+ const displayE = 'deviceId is required';
4214
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateDeviceV2', displayE);
4215
+ done();
4216
+ } catch (err) {
4217
+ log.error(`Test Failure: ${err}`);
4218
+ done(err);
4219
+ }
4220
+ });
4221
+ } catch (error) {
4222
+ log.error(`Adapter Exception: ${error}`);
4223
+ done(error);
4224
+ }
4225
+ }).timeout(attemptTimeout);
4226
+ });
4227
+
4228
+ describe('#archiveDeviceV2 - errors', () => {
4229
+ it('should have a archiveDeviceV2 function', (done) => {
4230
+ try {
4231
+ assert.equal(true, typeof a.archiveDeviceV2 === 'function');
4232
+ done();
4233
+ } catch (error) {
4234
+ log.error(`Test Failure: ${error}`);
4235
+ done(error);
4236
+ }
4237
+ }).timeout(attemptTimeout);
4238
+ it('should error if - missing deviceId', (done) => {
4239
+ try {
4240
+ a.archiveDeviceV2(null, (data, error) => {
4241
+ try {
4242
+ const displayE = 'deviceId is required';
4243
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-archiveDeviceV2', displayE);
4244
+ done();
4245
+ } catch (err) {
4246
+ log.error(`Test Failure: ${err}`);
4247
+ done(err);
4248
+ }
4249
+ });
4250
+ } catch (error) {
4251
+ log.error(`Adapter Exception: ${error}`);
4252
+ done(error);
4253
+ }
4254
+ }).timeout(attemptTimeout);
4255
+ });
4256
+
4257
+ describe('#enableDeviceV2 - errors', () => {
4258
+ it('should have a enableDeviceV2 function', (done) => {
4259
+ try {
4260
+ assert.equal(true, typeof a.enableDeviceV2 === 'function');
4261
+ done();
4262
+ } catch (error) {
4263
+ log.error(`Test Failure: ${error}`);
4264
+ done(error);
4265
+ }
4266
+ }).timeout(attemptTimeout);
4267
+ it('should error if - missing deviceId', (done) => {
4268
+ try {
4269
+ a.enableDeviceV2(null, (data, error) => {
4270
+ try {
4271
+ const displayE = 'deviceId is required';
4272
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableDeviceV2', displayE);
4273
+ done();
4274
+ } catch (err) {
4275
+ log.error(`Test Failure: ${err}`);
4276
+ done(err);
4277
+ }
4278
+ });
4279
+ } catch (error) {
4280
+ log.error(`Adapter Exception: ${error}`);
4281
+ done(error);
4282
+ }
4283
+ }).timeout(attemptTimeout);
4284
+ });
4285
+
4286
+ describe('#disableDeviceV2 - errors', () => {
4287
+ it('should have a disableDeviceV2 function', (done) => {
4288
+ try {
4289
+ assert.equal(true, typeof a.disableDeviceV2 === 'function');
4290
+ done();
4291
+ } catch (error) {
4292
+ log.error(`Test Failure: ${error}`);
4293
+ done(error);
4294
+ }
4295
+ }).timeout(attemptTimeout);
4296
+ it('should error if - missing deviceId', (done) => {
4297
+ try {
4298
+ a.disableDeviceV2(null, (data, error) => {
4299
+ try {
4300
+ const displayE = 'deviceId is required';
4301
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableDeviceV2', displayE);
4302
+ done();
4303
+ } catch (err) {
4304
+ log.error(`Test Failure: ${err}`);
4305
+ done(err);
4306
+ }
4307
+ });
4308
+ } catch (error) {
4309
+ log.error(`Adapter Exception: ${error}`);
4310
+ done(error);
4311
+ }
4312
+ }).timeout(attemptTimeout);
4313
+ });
4314
+
4315
+ describe('#restoreDeviceV2 - errors', () => {
4316
+ it('should have a restoreDeviceV2 function', (done) => {
4317
+ try {
4318
+ assert.equal(true, typeof a.restoreDeviceV2 === 'function');
4319
+ done();
4320
+ } catch (error) {
4321
+ log.error(`Test Failure: ${error}`);
4322
+ done(error);
4323
+ }
4324
+ }).timeout(attemptTimeout);
4325
+ it('should error if - missing deviceId', (done) => {
4326
+ try {
4327
+ a.restoreDeviceV2(null, (data, error) => {
4328
+ try {
4329
+ const displayE = 'deviceId is required';
4330
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreDeviceV2', displayE);
4331
+ done();
4332
+ } catch (err) {
4333
+ log.error(`Test Failure: ${err}`);
4334
+ done(err);
4335
+ }
4336
+ });
4337
+ } catch (error) {
4338
+ log.error(`Adapter Exception: ${error}`);
4339
+ done(error);
4340
+ }
4341
+ }).timeout(attemptTimeout);
4342
+ });
4343
+
4344
+ describe('#renewDeviceCertificateV2 - errors', () => {
4345
+ it('should have a renewDeviceCertificateV2 function', (done) => {
4346
+ try {
4347
+ assert.equal(true, typeof a.renewDeviceCertificateV2 === 'function');
4348
+ done();
4349
+ } catch (error) {
4350
+ log.error(`Test Failure: ${error}`);
4351
+ done(error);
4352
+ }
4353
+ }).timeout(attemptTimeout);
4354
+ it('should error if - missing deviceId', (done) => {
4355
+ try {
4356
+ a.renewDeviceCertificateV2(null, null, (data, error) => {
4357
+ try {
4358
+ const displayE = 'deviceId is required';
4359
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-renewDeviceCertificateV2', displayE);
4360
+ done();
4361
+ } catch (err) {
4362
+ log.error(`Test Failure: ${err}`);
4363
+ done(err);
4364
+ }
4365
+ });
4366
+ } catch (error) {
4367
+ log.error(`Adapter Exception: ${error}`);
4368
+ done(error);
4369
+ }
4370
+ }).timeout(attemptTimeout);
4371
+ });
4372
+
4373
+ describe('#listDivisions - errors', () => {
4374
+ it('should have a listDivisions function', (done) => {
4375
+ try {
4376
+ assert.equal(true, typeof a.listDivisions === 'function');
4377
+ done();
4378
+ } catch (error) {
4379
+ log.error(`Test Failure: ${error}`);
4380
+ done(error);
4381
+ }
4382
+ }).timeout(attemptTimeout);
4383
+ });
4384
+
4385
+ describe('#createDivision - errors', () => {
4386
+ it('should have a createDivision function', (done) => {
4387
+ try {
4388
+ assert.equal(true, typeof a.createDivision === 'function');
4389
+ done();
4390
+ } catch (error) {
4391
+ log.error(`Test Failure: ${error}`);
4392
+ done(error);
4393
+ }
4394
+ }).timeout(attemptTimeout);
4395
+ });
4396
+
4397
+ describe('#getDivision - errors', () => {
4398
+ it('should have a getDivision function', (done) => {
4399
+ try {
4400
+ assert.equal(true, typeof a.getDivision === 'function');
4401
+ done();
4402
+ } catch (error) {
4403
+ log.error(`Test Failure: ${error}`);
4404
+ done(error);
4405
+ }
4406
+ }).timeout(attemptTimeout);
4407
+ it('should error if - missing divisionId', (done) => {
4408
+ try {
4409
+ a.getDivision(null, (data, error) => {
4410
+ try {
4411
+ const displayE = 'divisionId is required';
4412
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getDivision', displayE);
4413
+ done();
4414
+ } catch (err) {
4415
+ log.error(`Test Failure: ${err}`);
4416
+ done(err);
4417
+ }
4418
+ });
4419
+ } catch (error) {
4420
+ log.error(`Adapter Exception: ${error}`);
4421
+ done(error);
4422
+ }
4423
+ }).timeout(attemptTimeout);
4424
+ });
4425
+
4426
+ describe('#updateDivision - errors', () => {
4427
+ it('should have a updateDivision function', (done) => {
4428
+ try {
4429
+ assert.equal(true, typeof a.updateDivision === 'function');
4430
+ done();
4431
+ } catch (error) {
4432
+ log.error(`Test Failure: ${error}`);
4433
+ done(error);
4434
+ }
4435
+ }).timeout(attemptTimeout);
4436
+ it('should error if - missing divisionId', (done) => {
4437
+ try {
4438
+ a.updateDivision(null, null, (data, error) => {
4439
+ try {
4440
+ const displayE = 'divisionId is required';
4441
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateDivision', displayE);
4442
+ done();
4443
+ } catch (err) {
4444
+ log.error(`Test Failure: ${err}`);
4445
+ done(err);
4446
+ }
4447
+ });
4448
+ } catch (error) {
4449
+ log.error(`Adapter Exception: ${error}`);
4450
+ done(error);
4451
+ }
4452
+ }).timeout(attemptTimeout);
4453
+ });
4454
+
4455
+ describe('#disableDivision - errors', () => {
4456
+ it('should have a disableDivision function', (done) => {
4457
+ try {
4458
+ assert.equal(true, typeof a.disableDivision === 'function');
4459
+ done();
4460
+ } catch (error) {
4461
+ log.error(`Test Failure: ${error}`);
4462
+ done(error);
4463
+ }
4464
+ }).timeout(attemptTimeout);
4465
+ it('should error if - missing divisionId', (done) => {
4466
+ try {
4467
+ a.disableDivision(null, (data, error) => {
4468
+ try {
4469
+ const displayE = 'divisionId is required';
4470
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableDivision', displayE);
4471
+ done();
4472
+ } catch (err) {
4473
+ log.error(`Test Failure: ${err}`);
4474
+ done(err);
4475
+ }
4476
+ });
4477
+ } catch (error) {
4478
+ log.error(`Adapter Exception: ${error}`);
4479
+ done(error);
4480
+ }
4481
+ }).timeout(attemptTimeout);
4482
+ });
4483
+
4484
+ describe('#enableDivision - errors', () => {
4485
+ it('should have a enableDivision function', (done) => {
4486
+ try {
4487
+ assert.equal(true, typeof a.enableDivision === 'function');
4488
+ done();
4489
+ } catch (error) {
4490
+ log.error(`Test Failure: ${error}`);
4491
+ done(error);
4492
+ }
4493
+ }).timeout(attemptTimeout);
4494
+ it('should error if - missing divisionId', (done) => {
4495
+ try {
4496
+ a.enableDivision(null, (data, error) => {
4497
+ try {
4498
+ const displayE = 'divisionId is required';
4499
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableDivision', displayE);
4500
+ done();
4501
+ } catch (err) {
4502
+ log.error(`Test Failure: ${err}`);
4503
+ done(err);
4504
+ }
4505
+ });
4506
+ } catch (error) {
4507
+ log.error(`Adapter Exception: ${error}`);
4508
+ done(error);
4509
+ }
4510
+ }).timeout(attemptTimeout);
4511
+ });
4512
+
4513
+ describe('#deleteDivision - errors', () => {
4514
+ it('should have a deleteDivision function', (done) => {
4515
+ try {
4516
+ assert.equal(true, typeof a.deleteDivision === 'function');
4517
+ done();
4518
+ } catch (error) {
4519
+ log.error(`Test Failure: ${error}`);
4520
+ done(error);
4521
+ }
4522
+ }).timeout(attemptTimeout);
4523
+ it('should error if - missing divisionId', (done) => {
4524
+ try {
4525
+ a.deleteDivision(null, (data, error) => {
4526
+ try {
4527
+ const displayE = 'divisionId is required';
4528
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteDivision', displayE);
4529
+ done();
4530
+ } catch (err) {
4531
+ log.error(`Test Failure: ${err}`);
4532
+ done(err);
4533
+ }
4534
+ });
4535
+ } catch (error) {
4536
+ log.error(`Adapter Exception: ${error}`);
4537
+ done(error);
4538
+ }
4539
+ }).timeout(attemptTimeout);
4540
+ });
4541
+
4542
+ describe('#restoreDivision - errors', () => {
4543
+ it('should have a restoreDivision function', (done) => {
4544
+ try {
4545
+ assert.equal(true, typeof a.restoreDivision === 'function');
4546
+ done();
4547
+ } catch (error) {
4548
+ log.error(`Test Failure: ${error}`);
4549
+ done(error);
4550
+ }
4551
+ }).timeout(attemptTimeout);
4552
+ it('should error if - missing divisionId', (done) => {
4553
+ try {
4554
+ a.restoreDivision(null, (data, error) => {
4555
+ try {
4556
+ const displayE = 'divisionId is required';
4557
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreDivision', displayE);
4558
+ done();
4559
+ } catch (err) {
4560
+ log.error(`Test Failure: ${err}`);
4561
+ done(err);
4562
+ }
4563
+ });
4564
+ } catch (error) {
4565
+ log.error(`Adapter Exception: ${error}`);
4566
+ done(error);
4567
+ }
4568
+ }).timeout(attemptTimeout);
4569
+ });
4570
+
4571
+ describe('#assignDivisionUsers - errors', () => {
4572
+ it('should have a assignDivisionUsers function', (done) => {
4573
+ try {
4574
+ assert.equal(true, typeof a.assignDivisionUsers === 'function');
4575
+ done();
4576
+ } catch (error) {
4577
+ log.error(`Test Failure: ${error}`);
4578
+ done(error);
4579
+ }
4580
+ }).timeout(attemptTimeout);
4581
+ it('should error if - missing divisionId', (done) => {
4582
+ try {
4583
+ a.assignDivisionUsers(null, null, (data, error) => {
4584
+ try {
4585
+ const displayE = 'divisionId is required';
4586
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-assignDivisionUsers', displayE);
4587
+ done();
4588
+ } catch (err) {
4589
+ log.error(`Test Failure: ${err}`);
4590
+ done(err);
4591
+ }
4592
+ });
4593
+ } catch (error) {
4594
+ log.error(`Adapter Exception: ${error}`);
4595
+ done(error);
4596
+ }
4597
+ }).timeout(attemptTimeout);
4598
+ });
4599
+
4600
+ describe('#listDivisionUsers - errors', () => {
4601
+ it('should have a listDivisionUsers function', (done) => {
4602
+ try {
4603
+ assert.equal(true, typeof a.listDivisionUsers === 'function');
4604
+ done();
4605
+ } catch (error) {
4606
+ log.error(`Test Failure: ${error}`);
4607
+ done(error);
4608
+ }
4609
+ }).timeout(attemptTimeout);
4610
+ it('should error if - missing divisionId', (done) => {
4611
+ try {
4612
+ a.listDivisionUsers(null, null, null, (data, error) => {
4613
+ try {
4614
+ const displayE = 'divisionId is required';
4615
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listDivisionUsers', displayE);
4616
+ done();
4617
+ } catch (err) {
4618
+ log.error(`Test Failure: ${err}`);
4619
+ done(err);
4620
+ }
4621
+ });
4622
+ } catch (error) {
4623
+ log.error(`Adapter Exception: ${error}`);
4624
+ done(error);
4625
+ }
4626
+ }).timeout(attemptTimeout);
4627
+ });
4628
+
4629
+ describe('#removeDivisionUsers - errors', () => {
4630
+ it('should have a removeDivisionUsers function', (done) => {
4631
+ try {
4632
+ assert.equal(true, typeof a.removeDivisionUsers === 'function');
4633
+ done();
4634
+ } catch (error) {
4635
+ log.error(`Test Failure: ${error}`);
4636
+ done(error);
4637
+ }
4638
+ }).timeout(attemptTimeout);
4639
+ it('should error if - missing divisionId', (done) => {
4640
+ try {
4641
+ a.removeDivisionUsers(null, null, (data, error) => {
4642
+ try {
4643
+ const displayE = 'divisionId is required';
4644
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-removeDivisionUsers', displayE);
4645
+ done();
4646
+ } catch (err) {
4647
+ log.error(`Test Failure: ${err}`);
4648
+ done(err);
4649
+ }
4650
+ });
4651
+ } catch (error) {
4652
+ log.error(`Adapter Exception: ${error}`);
4653
+ done(error);
4654
+ }
4655
+ }).timeout(attemptTimeout);
4656
+ });
4657
+
4658
+ describe('#assignICAstodivision - errors', () => {
4659
+ it('should have a assignICAstodivision function', (done) => {
4660
+ try {
4661
+ assert.equal(true, typeof a.assignICAstodivision === 'function');
4662
+ done();
4663
+ } catch (error) {
4664
+ log.error(`Test Failure: ${error}`);
4665
+ done(error);
4666
+ }
4667
+ }).timeout(attemptTimeout);
4668
+ it('should error if - missing divisionId', (done) => {
4669
+ try {
4670
+ a.assignICAstodivision(null, null, (data, error) => {
4671
+ try {
4672
+ const displayE = 'divisionId is required';
4673
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-assignICAstodivision', displayE);
4674
+ done();
4675
+ } catch (err) {
4676
+ log.error(`Test Failure: ${err}`);
4677
+ done(err);
4678
+ }
4679
+ });
4680
+ } catch (error) {
4681
+ log.error(`Adapter Exception: ${error}`);
4682
+ done(error);
4683
+ }
4684
+ }).timeout(attemptTimeout);
4685
+ });
4686
+
4687
+ describe('#removeICAsfromdivision - errors', () => {
4688
+ it('should have a removeICAsfromdivision function', (done) => {
4689
+ try {
4690
+ assert.equal(true, typeof a.removeICAsfromdivision === 'function');
4691
+ done();
4692
+ } catch (error) {
4693
+ log.error(`Test Failure: ${error}`);
4694
+ done(error);
4695
+ }
4696
+ }).timeout(attemptTimeout);
4697
+ it('should error if - missing divisionId', (done) => {
4698
+ try {
4699
+ a.removeICAsfromdivision(null, null, (data, error) => {
4700
+ try {
4701
+ const displayE = 'divisionId is required';
4702
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-removeICAsfromdivision', displayE);
4703
+ done();
4704
+ } catch (err) {
4705
+ log.error(`Test Failure: ${err}`);
4706
+ done(err);
4707
+ }
4708
+ });
4709
+ } catch (error) {
4710
+ log.error(`Adapter Exception: ${error}`);
4711
+ done(error);
4712
+ }
4713
+ }).timeout(attemptTimeout);
4714
+ });
4715
+
4716
+ describe('#listdivisionICAassignments - errors', () => {
4717
+ it('should have a listdivisionICAassignments function', (done) => {
4718
+ try {
4719
+ assert.equal(true, typeof a.listdivisionICAassignments === 'function');
4720
+ done();
4721
+ } catch (error) {
4722
+ log.error(`Test Failure: ${error}`);
4723
+ done(error);
4724
+ }
4725
+ }).timeout(attemptTimeout);
4726
+ it('should error if - missing divisionId', (done) => {
4727
+ try {
4728
+ a.listdivisionICAassignments(null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
4729
+ try {
4730
+ const displayE = 'divisionId is required';
4731
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listdivisionICAassignments', displayE);
4732
+ done();
4733
+ } catch (err) {
4734
+ log.error(`Test Failure: ${err}`);
4735
+ done(err);
4736
+ }
4737
+ });
4738
+ } catch (error) {
4739
+ log.error(`Adapter Exception: ${error}`);
4740
+ done(error);
4741
+ }
4742
+ }).timeout(attemptTimeout);
4743
+ });
4744
+
4745
+ describe('#listEnrollmentProfiles - errors', () => {
4746
+ it('should have a listEnrollmentProfiles function', (done) => {
4747
+ try {
4748
+ assert.equal(true, typeof a.listEnrollmentProfiles === 'function');
4749
+ done();
4750
+ } catch (error) {
4751
+ log.error(`Test Failure: ${error}`);
4752
+ done(error);
4753
+ }
4754
+ }).timeout(attemptTimeout);
4755
+ });
4756
+
4757
+ describe('#createEnrollmentProfile - errors', () => {
4758
+ it('should have a createEnrollmentProfile function', (done) => {
4759
+ try {
4760
+ assert.equal(true, typeof a.createEnrollmentProfile === 'function');
4761
+ done();
4762
+ } catch (error) {
4763
+ log.error(`Test Failure: ${error}`);
4764
+ done(error);
4765
+ }
4766
+ }).timeout(attemptTimeout);
4767
+ });
4768
+
4769
+ describe('#getExampleCertificateRequestEnrollmentProfileID - errors', () => {
4770
+ it('should have a getExampleCertificateRequestEnrollmentProfileID function', (done) => {
4771
+ try {
4772
+ assert.equal(true, typeof a.getExampleCertificateRequestEnrollmentProfileID === 'function');
4773
+ done();
4774
+ } catch (error) {
4775
+ log.error(`Test Failure: ${error}`);
4776
+ done(error);
4777
+ }
4778
+ }).timeout(attemptTimeout);
4779
+ it('should error if - missing enrollmentProfileId', (done) => {
4780
+ try {
4781
+ a.getExampleCertificateRequestEnrollmentProfileID(null, (data, error) => {
4782
+ try {
4783
+ const displayE = 'enrollmentProfileId is required';
4784
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getExampleCertificateRequestEnrollmentProfileID', displayE);
4785
+ done();
4786
+ } catch (err) {
4787
+ log.error(`Test Failure: ${err}`);
4788
+ done(err);
4789
+ }
4790
+ });
4791
+ } catch (error) {
4792
+ log.error(`Adapter Exception: ${error}`);
4793
+ done(error);
4794
+ }
4795
+ }).timeout(attemptTimeout);
4796
+ });
4797
+
4798
+ describe('#getEnrollmentProfile - errors', () => {
4799
+ it('should have a getEnrollmentProfile function', (done) => {
4800
+ try {
4801
+ assert.equal(true, typeof a.getEnrollmentProfile === 'function');
4802
+ done();
4803
+ } catch (error) {
4804
+ log.error(`Test Failure: ${error}`);
4805
+ done(error);
4806
+ }
4807
+ }).timeout(attemptTimeout);
4808
+ it('should error if - missing enrollmentProfileId', (done) => {
4809
+ try {
4810
+ a.getEnrollmentProfile(null, (data, error) => {
4811
+ try {
4812
+ const displayE = 'enrollmentProfileId is required';
4813
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getEnrollmentProfile', displayE);
4814
+ done();
4815
+ } catch (err) {
4816
+ log.error(`Test Failure: ${err}`);
4817
+ done(err);
4818
+ }
4819
+ });
4820
+ } catch (error) {
4821
+ log.error(`Adapter Exception: ${error}`);
4822
+ done(error);
4823
+ }
4824
+ }).timeout(attemptTimeout);
4825
+ });
4826
+
4827
+ describe('#updateEnrollmentProfile - errors', () => {
4828
+ it('should have a updateEnrollmentProfile function', (done) => {
4829
+ try {
4830
+ assert.equal(true, typeof a.updateEnrollmentProfile === 'function');
4831
+ done();
4832
+ } catch (error) {
4833
+ log.error(`Test Failure: ${error}`);
4834
+ done(error);
4835
+ }
4836
+ }).timeout(attemptTimeout);
4837
+ it('should error if - missing enrollmentProfileId', (done) => {
4838
+ try {
4839
+ a.updateEnrollmentProfile(null, null, (data, error) => {
4840
+ try {
4841
+ const displayE = 'enrollmentProfileId is required';
4842
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateEnrollmentProfile', displayE);
4843
+ done();
4844
+ } catch (err) {
4845
+ log.error(`Test Failure: ${err}`);
4846
+ done(err);
4847
+ }
4848
+ });
4849
+ } catch (error) {
4850
+ log.error(`Adapter Exception: ${error}`);
4851
+ done(error);
4852
+ }
4853
+ }).timeout(attemptTimeout);
4854
+ });
4855
+
4856
+ describe('#listAssignableICAs - errors', () => {
4857
+ it('should have a listAssignableICAs function', (done) => {
4858
+ try {
4859
+ assert.equal(true, typeof a.listAssignableICAs === 'function');
4860
+ done();
4861
+ } catch (error) {
4862
+ log.error(`Test Failure: ${error}`);
4863
+ done(error);
4864
+ }
4865
+ }).timeout(attemptTimeout);
4866
+ it('should error if - missing enrollmentProfileId', (done) => {
4867
+ try {
4868
+ a.listAssignableICAs(null, null, null, (data, error) => {
4869
+ try {
4870
+ const displayE = 'enrollmentProfileId is required';
4871
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listAssignableICAs', displayE);
4872
+ done();
4873
+ } catch (err) {
4874
+ log.error(`Test Failure: ${err}`);
4875
+ done(err);
4876
+ }
4877
+ });
4878
+ } catch (error) {
4879
+ log.error(`Adapter Exception: ${error}`);
4880
+ done(error);
4881
+ }
4882
+ }).timeout(attemptTimeout);
4883
+ });
4884
+
4885
+ describe('#getIssuingICA - errors', () => {
4886
+ it('should have a getIssuingICA function', (done) => {
4887
+ try {
4888
+ assert.equal(true, typeof a.getIssuingICA === 'function');
4889
+ done();
4890
+ } catch (error) {
4891
+ log.error(`Test Failure: ${error}`);
4892
+ done(error);
4893
+ }
4894
+ }).timeout(attemptTimeout);
4895
+ it('should error if - missing enrollmentProfileId', (done) => {
4896
+ try {
4897
+ a.getIssuingICA(null, null, (data, error) => {
4898
+ try {
4899
+ const displayE = 'enrollmentProfileId is required';
4900
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getIssuingICA', displayE);
4901
+ done();
4902
+ } catch (err) {
4903
+ log.error(`Test Failure: ${err}`);
4904
+ done(err);
4905
+ }
4906
+ });
4907
+ } catch (error) {
4908
+ log.error(`Adapter Exception: ${error}`);
4909
+ done(error);
4910
+ }
4911
+ }).timeout(attemptTimeout);
4912
+ });
4913
+
4914
+ describe('#getEnrollmentProfileSpecification - errors', () => {
4915
+ it('should have a getEnrollmentProfileSpecification function', (done) => {
4916
+ try {
4917
+ assert.equal(true, typeof a.getEnrollmentProfileSpecification === 'function');
4918
+ done();
4919
+ } catch (error) {
4920
+ log.error(`Test Failure: ${error}`);
4921
+ done(error);
4922
+ }
4923
+ }).timeout(attemptTimeout);
4924
+ it('should error if - missing enrollmentProfileId', (done) => {
4925
+ try {
4926
+ a.getEnrollmentProfileSpecification(null, (data, error) => {
4927
+ try {
4928
+ const displayE = 'enrollmentProfileId is required';
4929
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getEnrollmentProfileSpecification', displayE);
4930
+ done();
4931
+ } catch (err) {
4932
+ log.error(`Test Failure: ${err}`);
4933
+ done(err);
4934
+ }
4935
+ });
4936
+ } catch (error) {
4937
+ log.error(`Adapter Exception: ${error}`);
4938
+ done(error);
4939
+ }
4940
+ }).timeout(attemptTimeout);
4941
+ });
4942
+
4943
+ describe('#getEnrollmentProfileStatus - errors', () => {
4944
+ it('should have a getEnrollmentProfileStatus function', (done) => {
4945
+ try {
4946
+ assert.equal(true, typeof a.getEnrollmentProfileStatus === 'function');
4947
+ done();
4948
+ } catch (error) {
4949
+ log.error(`Test Failure: ${error}`);
4950
+ done(error);
4951
+ }
4952
+ }).timeout(attemptTimeout);
4953
+ it('should error if - missing enrollmentProfileId', (done) => {
4954
+ try {
4955
+ a.getEnrollmentProfileStatus(null, (data, error) => {
4956
+ try {
4957
+ const displayE = 'enrollmentProfileId is required';
4958
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getEnrollmentProfileStatus', displayE);
4959
+ done();
4960
+ } catch (err) {
4961
+ log.error(`Test Failure: ${err}`);
4962
+ done(err);
4963
+ }
4964
+ });
4965
+ } catch (error) {
4966
+ log.error(`Adapter Exception: ${error}`);
4967
+ done(error);
4968
+ }
4969
+ }).timeout(attemptTimeout);
4970
+ });
4971
+
4972
+ describe('#listEnrollmentPasscodes - errors', () => {
4973
+ it('should have a listEnrollmentPasscodes function', (done) => {
4974
+ try {
4975
+ assert.equal(true, typeof a.listEnrollmentPasscodes === 'function');
4976
+ done();
4977
+ } catch (error) {
4978
+ log.error(`Test Failure: ${error}`);
4979
+ done(error);
4980
+ }
4981
+ }).timeout(attemptTimeout);
4982
+ });
4983
+
4984
+ describe('#createEnrollmentPasscode - errors', () => {
4985
+ it('should have a createEnrollmentPasscode function', (done) => {
4986
+ try {
4987
+ assert.equal(true, typeof a.createEnrollmentPasscode === 'function');
4988
+ done();
4989
+ } catch (error) {
4990
+ log.error(`Test Failure: ${error}`);
4991
+ done(error);
4992
+ }
4993
+ }).timeout(attemptTimeout);
4994
+ it('should error if - missing enrollmentProfileId', (done) => {
4995
+ try {
4996
+ a.createEnrollmentPasscode(null, null, (data, error) => {
4997
+ try {
4998
+ const displayE = 'enrollmentProfileId is required';
4999
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-createEnrollmentPasscode', displayE);
5000
+ done();
5001
+ } catch (err) {
5002
+ log.error(`Test Failure: ${err}`);
5003
+ done(err);
5004
+ }
5005
+ });
5006
+ } catch (error) {
5007
+ log.error(`Adapter Exception: ${error}`);
5008
+ done(error);
5009
+ }
5010
+ }).timeout(attemptTimeout);
5011
+ });
5012
+
5013
+ describe('#getEnrollmentPasscodeDetails - errors', () => {
5014
+ it('should have a getEnrollmentPasscodeDetails function', (done) => {
5015
+ try {
5016
+ assert.equal(true, typeof a.getEnrollmentPasscodeDetails === 'function');
5017
+ done();
5018
+ } catch (error) {
5019
+ log.error(`Test Failure: ${error}`);
5020
+ done(error);
5021
+ }
5022
+ }).timeout(attemptTimeout);
5023
+ it('should error if - missing enrollmentProfileId', (done) => {
5024
+ try {
5025
+ a.getEnrollmentPasscodeDetails(null, null, (data, error) => {
5026
+ try {
5027
+ const displayE = 'enrollmentProfileId is required';
5028
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getEnrollmentPasscodeDetails', displayE);
5029
+ done();
5030
+ } catch (err) {
5031
+ log.error(`Test Failure: ${err}`);
5032
+ done(err);
5033
+ }
5034
+ });
5035
+ } catch (error) {
5036
+ log.error(`Adapter Exception: ${error}`);
5037
+ done(error);
5038
+ }
5039
+ }).timeout(attemptTimeout);
5040
+ it('should error if - missing passcodeId', (done) => {
5041
+ try {
5042
+ a.getEnrollmentPasscodeDetails('fakeparam', null, (data, error) => {
5043
+ try {
5044
+ const displayE = 'passcodeId is required';
5045
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getEnrollmentPasscodeDetails', displayE);
5046
+ done();
5047
+ } catch (err) {
5048
+ log.error(`Test Failure: ${err}`);
5049
+ done(err);
5050
+ }
5051
+ });
5052
+ } catch (error) {
5053
+ log.error(`Adapter Exception: ${error}`);
5054
+ done(error);
5055
+ }
5056
+ }).timeout(attemptTimeout);
5057
+ });
5058
+
5059
+ describe('#updateEnrollmentPasscode - errors', () => {
5060
+ it('should have a updateEnrollmentPasscode function', (done) => {
5061
+ try {
5062
+ assert.equal(true, typeof a.updateEnrollmentPasscode === 'function');
5063
+ done();
5064
+ } catch (error) {
5065
+ log.error(`Test Failure: ${error}`);
5066
+ done(error);
5067
+ }
5068
+ }).timeout(attemptTimeout);
5069
+ it('should error if - missing enrollmentProfileId', (done) => {
5070
+ try {
5071
+ a.updateEnrollmentPasscode(null, null, null, (data, error) => {
5072
+ try {
5073
+ const displayE = 'enrollmentProfileId is required';
5074
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateEnrollmentPasscode', displayE);
5075
+ done();
5076
+ } catch (err) {
5077
+ log.error(`Test Failure: ${err}`);
5078
+ done(err);
5079
+ }
5080
+ });
5081
+ } catch (error) {
5082
+ log.error(`Adapter Exception: ${error}`);
5083
+ done(error);
5084
+ }
5085
+ }).timeout(attemptTimeout);
5086
+ it('should error if - missing passcodeId', (done) => {
5087
+ try {
5088
+ a.updateEnrollmentPasscode('fakeparam', null, null, (data, error) => {
5089
+ try {
5090
+ const displayE = 'passcodeId is required';
5091
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateEnrollmentPasscode', displayE);
5092
+ done();
5093
+ } catch (err) {
5094
+ log.error(`Test Failure: ${err}`);
5095
+ done(err);
5096
+ }
5097
+ });
5098
+ } catch (error) {
5099
+ log.error(`Adapter Exception: ${error}`);
5100
+ done(error);
5101
+ }
5102
+ }).timeout(attemptTimeout);
5103
+ });
5104
+
5105
+ describe('#deleteEnrollmentPasscode - errors', () => {
5106
+ it('should have a deleteEnrollmentPasscode function', (done) => {
5107
+ try {
5108
+ assert.equal(true, typeof a.deleteEnrollmentPasscode === 'function');
5109
+ done();
5110
+ } catch (error) {
5111
+ log.error(`Test Failure: ${error}`);
5112
+ done(error);
5113
+ }
5114
+ }).timeout(attemptTimeout);
5115
+ it('should error if - missing enrollmentProfileId', (done) => {
5116
+ try {
5117
+ a.deleteEnrollmentPasscode(null, null, (data, error) => {
5118
+ try {
5119
+ const displayE = 'enrollmentProfileId is required';
5120
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteEnrollmentPasscode', displayE);
5121
+ done();
5122
+ } catch (err) {
5123
+ log.error(`Test Failure: ${err}`);
5124
+ done(err);
5125
+ }
5126
+ });
5127
+ } catch (error) {
5128
+ log.error(`Adapter Exception: ${error}`);
5129
+ done(error);
5130
+ }
5131
+ }).timeout(attemptTimeout);
5132
+ it('should error if - missing passcodeId', (done) => {
5133
+ try {
5134
+ a.deleteEnrollmentPasscode('fakeparam', null, (data, error) => {
5135
+ try {
5136
+ const displayE = 'passcodeId is required';
5137
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteEnrollmentPasscode', displayE);
5138
+ done();
5139
+ } catch (err) {
5140
+ log.error(`Test Failure: ${err}`);
5141
+ done(err);
5142
+ }
5143
+ });
5144
+ } catch (error) {
5145
+ log.error(`Adapter Exception: ${error}`);
5146
+ done(error);
5147
+ }
5148
+ }).timeout(attemptTimeout);
5149
+ });
5150
+
5151
+ describe('#restoreEnrollmentPasscode - errors', () => {
5152
+ it('should have a restoreEnrollmentPasscode function', (done) => {
5153
+ try {
5154
+ assert.equal(true, typeof a.restoreEnrollmentPasscode === 'function');
5155
+ done();
5156
+ } catch (error) {
5157
+ log.error(`Test Failure: ${error}`);
5158
+ done(error);
5159
+ }
5160
+ }).timeout(attemptTimeout);
5161
+ it('should error if - missing enrollmentProfileId', (done) => {
5162
+ try {
5163
+ a.restoreEnrollmentPasscode(null, null, (data, error) => {
5164
+ try {
5165
+ const displayE = 'enrollmentProfileId is required';
5166
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreEnrollmentPasscode', displayE);
5167
+ done();
5168
+ } catch (err) {
5169
+ log.error(`Test Failure: ${err}`);
5170
+ done(err);
5171
+ }
5172
+ });
5173
+ } catch (error) {
5174
+ log.error(`Adapter Exception: ${error}`);
5175
+ done(error);
5176
+ }
5177
+ }).timeout(attemptTimeout);
5178
+ it('should error if - missing passcodeId', (done) => {
5179
+ try {
5180
+ a.restoreEnrollmentPasscode('fakeparam', null, (data, error) => {
5181
+ try {
5182
+ const displayE = 'passcodeId is required';
5183
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreEnrollmentPasscode', displayE);
5184
+ done();
5185
+ } catch (err) {
5186
+ log.error(`Test Failure: ${err}`);
5187
+ done(err);
5188
+ }
5189
+ });
5190
+ } catch (error) {
5191
+ log.error(`Adapter Exception: ${error}`);
5192
+ done(error);
5193
+ }
5194
+ }).timeout(attemptTimeout);
5195
+ });
5196
+
5197
+ describe('#disableEnrollmentPasscode - errors', () => {
5198
+ it('should have a disableEnrollmentPasscode function', (done) => {
5199
+ try {
5200
+ assert.equal(true, typeof a.disableEnrollmentPasscode === 'function');
5201
+ done();
5202
+ } catch (error) {
5203
+ log.error(`Test Failure: ${error}`);
5204
+ done(error);
5205
+ }
5206
+ }).timeout(attemptTimeout);
5207
+ it('should error if - missing enrollmentProfileId', (done) => {
5208
+ try {
5209
+ a.disableEnrollmentPasscode(null, null, (data, error) => {
5210
+ try {
5211
+ const displayE = 'enrollmentProfileId is required';
5212
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableEnrollmentPasscode', displayE);
5213
+ done();
5214
+ } catch (err) {
5215
+ log.error(`Test Failure: ${err}`);
5216
+ done(err);
5217
+ }
5218
+ });
5219
+ } catch (error) {
5220
+ log.error(`Adapter Exception: ${error}`);
5221
+ done(error);
5222
+ }
5223
+ }).timeout(attemptTimeout);
5224
+ it('should error if - missing passcodeId', (done) => {
5225
+ try {
5226
+ a.disableEnrollmentPasscode('fakeparam', null, (data, error) => {
5227
+ try {
5228
+ const displayE = 'passcodeId is required';
5229
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableEnrollmentPasscode', displayE);
5230
+ done();
5231
+ } catch (err) {
5232
+ log.error(`Test Failure: ${err}`);
5233
+ done(err);
5234
+ }
5235
+ });
5236
+ } catch (error) {
5237
+ log.error(`Adapter Exception: ${error}`);
5238
+ done(error);
5239
+ }
5240
+ }).timeout(attemptTimeout);
5241
+ });
5242
+
5243
+ describe('#enableEnrollmentPasscode - errors', () => {
5244
+ it('should have a enableEnrollmentPasscode function', (done) => {
5245
+ try {
5246
+ assert.equal(true, typeof a.enableEnrollmentPasscode === 'function');
5247
+ done();
5248
+ } catch (error) {
5249
+ log.error(`Test Failure: ${error}`);
5250
+ done(error);
5251
+ }
5252
+ }).timeout(attemptTimeout);
5253
+ it('should error if - missing enrollmentProfileId', (done) => {
5254
+ try {
5255
+ a.enableEnrollmentPasscode(null, null, (data, error) => {
5256
+ try {
5257
+ const displayE = 'enrollmentProfileId is required';
5258
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableEnrollmentPasscode', displayE);
5259
+ done();
5260
+ } catch (err) {
5261
+ log.error(`Test Failure: ${err}`);
5262
+ done(err);
5263
+ }
5264
+ });
5265
+ } catch (error) {
5266
+ log.error(`Adapter Exception: ${error}`);
5267
+ done(error);
5268
+ }
5269
+ }).timeout(attemptTimeout);
5270
+ it('should error if - missing passcodeId', (done) => {
5271
+ try {
5272
+ a.enableEnrollmentPasscode('fakeparam', null, (data, error) => {
5273
+ try {
5274
+ const displayE = 'passcodeId is required';
5275
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableEnrollmentPasscode', displayE);
5276
+ done();
5277
+ } catch (err) {
5278
+ log.error(`Test Failure: ${err}`);
5279
+ done(err);
5280
+ }
5281
+ });
5282
+ } catch (error) {
5283
+ log.error(`Adapter Exception: ${error}`);
5284
+ done(error);
5285
+ }
5286
+ }).timeout(attemptTimeout);
5287
+ });
5288
+
5289
+ describe('#regenerateEnrollmentPasscode - errors', () => {
5290
+ it('should have a regenerateEnrollmentPasscode function', (done) => {
5291
+ try {
5292
+ assert.equal(true, typeof a.regenerateEnrollmentPasscode === 'function');
5293
+ done();
5294
+ } catch (error) {
5295
+ log.error(`Test Failure: ${error}`);
5296
+ done(error);
5297
+ }
5298
+ }).timeout(attemptTimeout);
5299
+ it('should error if - missing enrollmentProfileId', (done) => {
5300
+ try {
5301
+ a.regenerateEnrollmentPasscode(null, null, (data, error) => {
5302
+ try {
5303
+ const displayE = 'enrollmentProfileId is required';
5304
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-regenerateEnrollmentPasscode', displayE);
5305
+ done();
5306
+ } catch (err) {
5307
+ log.error(`Test Failure: ${err}`);
5308
+ done(err);
5309
+ }
5310
+ });
5311
+ } catch (error) {
5312
+ log.error(`Adapter Exception: ${error}`);
5313
+ done(error);
5314
+ }
5315
+ }).timeout(attemptTimeout);
5316
+ it('should error if - missing passcodeId', (done) => {
5317
+ try {
5318
+ a.regenerateEnrollmentPasscode('fakeparam', null, (data, error) => {
5319
+ try {
5320
+ const displayE = 'passcodeId is required';
5321
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-regenerateEnrollmentPasscode', displayE);
5322
+ done();
5323
+ } catch (err) {
5324
+ log.error(`Test Failure: ${err}`);
5325
+ done(err);
5326
+ }
5327
+ });
5328
+ } catch (error) {
5329
+ log.error(`Adapter Exception: ${error}`);
5330
+ done(error);
5331
+ }
5332
+ }).timeout(attemptTimeout);
5333
+ });
5334
+
5335
+ describe('#createAcmeAuthentication - errors', () => {
5336
+ it('should have a createAcmeAuthentication function', (done) => {
5337
+ try {
5338
+ assert.equal(true, typeof a.createAcmeAuthentication === 'function');
5339
+ done();
5340
+ } catch (error) {
5341
+ log.error(`Test Failure: ${error}`);
5342
+ done(error);
5343
+ }
5344
+ }).timeout(attemptTimeout);
5345
+ it('should error if - missing body', (done) => {
5346
+ try {
5347
+ a.createAcmeAuthentication(null, (data, error) => {
5348
+ try {
5349
+ const displayE = 'body is required';
5350
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-createAcmeAuthentication', displayE);
5351
+ done();
5352
+ } catch (err) {
5353
+ log.error(`Test Failure: ${err}`);
5354
+ done(err);
5355
+ }
5356
+ });
5357
+ } catch (error) {
5358
+ log.error(`Adapter Exception: ${error}`);
5359
+ done(error);
5360
+ }
5361
+ }).timeout(attemptTimeout);
5362
+ });
5363
+
5364
+ describe('#listAcmeAuthentication - errors', () => {
5365
+ it('should have a listAcmeAuthentication function', (done) => {
5366
+ try {
5367
+ assert.equal(true, typeof a.listAcmeAuthentication === 'function');
5368
+ done();
5369
+ } catch (error) {
5370
+ log.error(`Test Failure: ${error}`);
5371
+ done(error);
5372
+ }
5373
+ }).timeout(attemptTimeout);
5374
+ });
5375
+
5376
+ describe('#getAcmeAuthentication - errors', () => {
5377
+ it('should have a getAcmeAuthentication function', (done) => {
5378
+ try {
5379
+ assert.equal(true, typeof a.getAcmeAuthentication === 'function');
5380
+ done();
5381
+ } catch (error) {
5382
+ log.error(`Test Failure: ${error}`);
5383
+ done(error);
5384
+ }
5385
+ }).timeout(attemptTimeout);
5386
+ it('should error if - missing acmeAuthenticationId', (done) => {
5387
+ try {
5388
+ a.getAcmeAuthentication(null, (data, error) => {
5389
+ try {
5390
+ const displayE = 'acmeAuthenticationId is required';
5391
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getAcmeAuthentication', displayE);
5392
+ done();
5393
+ } catch (err) {
5394
+ log.error(`Test Failure: ${err}`);
5395
+ done(err);
5396
+ }
5397
+ });
5398
+ } catch (error) {
5399
+ log.error(`Adapter Exception: ${error}`);
5400
+ done(error);
5401
+ }
5402
+ }).timeout(attemptTimeout);
5403
+ });
5404
+
5405
+ describe('#updateAcmeAuthentication - errors', () => {
5406
+ it('should have a updateAcmeAuthentication function', (done) => {
5407
+ try {
5408
+ assert.equal(true, typeof a.updateAcmeAuthentication === 'function');
5409
+ done();
5410
+ } catch (error) {
5411
+ log.error(`Test Failure: ${error}`);
5412
+ done(error);
5413
+ }
5414
+ }).timeout(attemptTimeout);
5415
+ it('should error if - missing acmeAuthenticationId', (done) => {
5416
+ try {
5417
+ a.updateAcmeAuthentication(null, null, (data, error) => {
5418
+ try {
5419
+ const displayE = 'acmeAuthenticationId is required';
5420
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateAcmeAuthentication', displayE);
5421
+ done();
5422
+ } catch (err) {
5423
+ log.error(`Test Failure: ${err}`);
5424
+ done(err);
5425
+ }
5426
+ });
5427
+ } catch (error) {
5428
+ log.error(`Adapter Exception: ${error}`);
5429
+ done(error);
5430
+ }
5431
+ }).timeout(attemptTimeout);
5432
+ });
5433
+
5434
+ describe('#disableAcmeAuthentication - errors', () => {
5435
+ it('should have a disableAcmeAuthentication function', (done) => {
5436
+ try {
5437
+ assert.equal(true, typeof a.disableAcmeAuthentication === 'function');
5438
+ done();
5439
+ } catch (error) {
5440
+ log.error(`Test Failure: ${error}`);
5441
+ done(error);
5442
+ }
5443
+ }).timeout(attemptTimeout);
5444
+ it('should error if - missing acmeAuthenticationId', (done) => {
5445
+ try {
5446
+ a.disableAcmeAuthentication(null, (data, error) => {
5447
+ try {
5448
+ const displayE = 'acmeAuthenticationId is required';
5449
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableAcmeAuthentication', displayE);
5450
+ done();
5451
+ } catch (err) {
5452
+ log.error(`Test Failure: ${err}`);
5453
+ done(err);
5454
+ }
5455
+ });
5456
+ } catch (error) {
5457
+ log.error(`Adapter Exception: ${error}`);
5458
+ done(error);
5459
+ }
5460
+ }).timeout(attemptTimeout);
5461
+ });
5462
+
5463
+ describe('#enableAcmeAuthentication - errors', () => {
5464
+ it('should have a enableAcmeAuthentication function', (done) => {
5465
+ try {
5466
+ assert.equal(true, typeof a.enableAcmeAuthentication === 'function');
5467
+ done();
5468
+ } catch (error) {
5469
+ log.error(`Test Failure: ${error}`);
5470
+ done(error);
5471
+ }
5472
+ }).timeout(attemptTimeout);
5473
+ it('should error if - missing acmeAuthenticationId', (done) => {
5474
+ try {
5475
+ a.enableAcmeAuthentication(null, (data, error) => {
5476
+ try {
5477
+ const displayE = 'acmeAuthenticationId is required';
5478
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableAcmeAuthentication', displayE);
5479
+ done();
5480
+ } catch (err) {
5481
+ log.error(`Test Failure: ${err}`);
5482
+ done(err);
5483
+ }
5484
+ });
5485
+ } catch (error) {
5486
+ log.error(`Adapter Exception: ${error}`);
5487
+ done(error);
5488
+ }
5489
+ }).timeout(attemptTimeout);
5490
+ });
5491
+
5492
+ describe('#deleteAcmeAuthentication - errors', () => {
5493
+ it('should have a deleteAcmeAuthentication function', (done) => {
5494
+ try {
5495
+ assert.equal(true, typeof a.deleteAcmeAuthentication === 'function');
5496
+ done();
5497
+ } catch (error) {
5498
+ log.error(`Test Failure: ${error}`);
5499
+ done(error);
5500
+ }
5501
+ }).timeout(attemptTimeout);
5502
+ it('should error if - missing acmeAuthenticationId', (done) => {
5503
+ try {
5504
+ a.deleteAcmeAuthentication(null, (data, error) => {
5505
+ try {
5506
+ const displayE = 'acmeAuthenticationId is required';
5507
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteAcmeAuthentication', displayE);
5508
+ done();
5509
+ } catch (err) {
5510
+ log.error(`Test Failure: ${err}`);
5511
+ done(err);
5512
+ }
5513
+ });
5514
+ } catch (error) {
5515
+ log.error(`Adapter Exception: ${error}`);
5516
+ done(error);
5517
+ }
5518
+ }).timeout(attemptTimeout);
5519
+ });
5520
+
5521
+ describe('#restoreAcmeAuthentication - errors', () => {
5522
+ it('should have a restoreAcmeAuthentication function', (done) => {
5523
+ try {
5524
+ assert.equal(true, typeof a.restoreAcmeAuthentication === 'function');
5525
+ done();
5526
+ } catch (error) {
5527
+ log.error(`Test Failure: ${error}`);
5528
+ done(error);
5529
+ }
5530
+ }).timeout(attemptTimeout);
5531
+ it('should error if - missing acmeAuthenticationId', (done) => {
5532
+ try {
5533
+ a.restoreAcmeAuthentication(null, (data, error) => {
5534
+ try {
5535
+ const displayE = 'acmeAuthenticationId is required';
5536
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreAcmeAuthentication', displayE);
5537
+ done();
5538
+ } catch (err) {
5539
+ log.error(`Test Failure: ${err}`);
5540
+ done(err);
5541
+ }
5542
+ });
5543
+ } catch (error) {
5544
+ log.error(`Adapter Exception: ${error}`);
5545
+ done(error);
5546
+ }
5547
+ }).timeout(attemptTimeout);
5548
+ });
5549
+
5550
+ describe('#batchCSREnroll - errors', () => {
5551
+ it('should have a batchCSREnroll function', (done) => {
5552
+ try {
5553
+ assert.equal(true, typeof a.batchCSREnroll === 'function');
5554
+ done();
5555
+ } catch (error) {
5556
+ log.error(`Test Failure: ${error}`);
5557
+ done(error);
5558
+ }
5559
+ }).timeout(attemptTimeout);
5560
+ it('should error if - missing enrollmentProfileId', (done) => {
5561
+ try {
5562
+ a.batchCSREnroll(null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
5563
+ try {
5564
+ const displayE = 'enrollmentProfileId is required';
5565
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchCSREnroll', displayE);
5566
+ done();
5567
+ } catch (err) {
5568
+ log.error(`Test Failure: ${err}`);
5569
+ done(err);
5570
+ }
5571
+ });
5572
+ } catch (error) {
5573
+ log.error(`Adapter Exception: ${error}`);
5574
+ done(error);
5575
+ }
5576
+ }).timeout(attemptTimeout);
5577
+ it('should error if - missing certificateFormat', (done) => {
5578
+ try {
5579
+ a.batchCSREnroll('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
5580
+ try {
5581
+ const displayE = 'certificateFormat is required';
5582
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchCSREnroll', displayE);
5583
+ done();
5584
+ } catch (err) {
5585
+ log.error(`Test Failure: ${err}`);
5586
+ done(err);
5587
+ }
5588
+ });
5589
+ } catch (error) {
5590
+ log.error(`Adapter Exception: ${error}`);
5591
+ done(error);
5592
+ }
5593
+ }).timeout(attemptTimeout);
5594
+ it('should error if - missing data', (done) => {
5595
+ try {
5596
+ a.batchCSREnroll('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
5597
+ try {
5598
+ const displayE = 'data is required';
5599
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchCSREnroll', displayE);
5600
+ done();
5601
+ } catch (err) {
5602
+ log.error(`Test Failure: ${err}`);
5603
+ done(err);
5604
+ }
5605
+ });
5606
+ } catch (error) {
5607
+ log.error(`Adapter Exception: ${error}`);
5608
+ done(error);
5609
+ }
5610
+ }).timeout(attemptTimeout);
5611
+ it('should error if - missing emails', (done) => {
5612
+ try {
5613
+ a.batchCSREnroll('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
5614
+ try {
5615
+ const displayE = 'emails is required';
5616
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchCSREnroll', displayE);
5617
+ done();
5618
+ } catch (err) {
5619
+ log.error(`Test Failure: ${err}`);
5620
+ done(err);
5621
+ }
5622
+ });
5623
+ } catch (error) {
5624
+ log.error(`Adapter Exception: ${error}`);
5625
+ done(error);
5626
+ }
5627
+ }).timeout(attemptTimeout);
5628
+ });
5629
+
5630
+ describe('#batchEnrollWithKeyGen - errors', () => {
5631
+ it('should have a batchEnrollWithKeyGen function', (done) => {
5632
+ try {
5633
+ assert.equal(true, typeof a.batchEnrollWithKeyGen === 'function');
5634
+ done();
5635
+ } catch (error) {
5636
+ log.error(`Test Failure: ${error}`);
5637
+ done(error);
5638
+ }
5639
+ }).timeout(attemptTimeout);
5640
+ it('should error if - missing enrollmentProfileId', (done) => {
5641
+ try {
5642
+ a.batchEnrollWithKeyGen(null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
5643
+ try {
5644
+ const displayE = 'enrollmentProfileId is required';
5645
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5646
+ done();
5647
+ } catch (err) {
5648
+ log.error(`Test Failure: ${err}`);
5649
+ done(err);
5650
+ }
5651
+ });
5652
+ } catch (error) {
5653
+ log.error(`Adapter Exception: ${error}`);
5654
+ done(error);
5655
+ }
5656
+ }).timeout(attemptTimeout);
5657
+ it('should error if - missing certificateFormat', (done) => {
5658
+ try {
5659
+ a.batchEnrollWithKeyGen('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
5660
+ try {
5661
+ const displayE = 'certificateFormat is required';
5662
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5663
+ done();
5664
+ } catch (err) {
5665
+ log.error(`Test Failure: ${err}`);
5666
+ done(err);
5667
+ }
5668
+ });
5669
+ } catch (error) {
5670
+ log.error(`Adapter Exception: ${error}`);
5671
+ done(error);
5672
+ }
5673
+ }).timeout(attemptTimeout);
5674
+ it('should error if - missing data', (done) => {
5675
+ try {
5676
+ a.batchEnrollWithKeyGen('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
5677
+ try {
5678
+ const displayE = 'data is required';
5679
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5680
+ done();
5681
+ } catch (err) {
5682
+ log.error(`Test Failure: ${err}`);
5683
+ done(err);
5684
+ }
5685
+ });
5686
+ } catch (error) {
5687
+ log.error(`Adapter Exception: ${error}`);
5688
+ done(error);
5689
+ }
5690
+ }).timeout(attemptTimeout);
5691
+ it('should error if - missing emails', (done) => {
5692
+ try {
5693
+ a.batchEnrollWithKeyGen('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
5694
+ try {
5695
+ const displayE = 'emails is required';
5696
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5697
+ done();
5698
+ } catch (err) {
5699
+ log.error(`Test Failure: ${err}`);
5700
+ done(err);
5701
+ }
5702
+ });
5703
+ } catch (error) {
5704
+ log.error(`Adapter Exception: ${error}`);
5705
+ done(error);
5706
+ }
5707
+ }).timeout(attemptTimeout);
5708
+ it('should error if - missing keyType', (done) => {
5709
+ try {
5710
+ a.batchEnrollWithKeyGen('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
5711
+ try {
5712
+ const displayE = 'keyType is required';
5713
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5714
+ done();
5715
+ } catch (err) {
5716
+ log.error(`Test Failure: ${err}`);
5717
+ done(err);
5718
+ }
5719
+ });
5720
+ } catch (error) {
5721
+ log.error(`Adapter Exception: ${error}`);
5722
+ done(error);
5723
+ }
5724
+ }).timeout(attemptTimeout);
5725
+ it('should error if - missing certificate', (done) => {
5726
+ try {
5727
+ a.batchEnrollWithKeyGen('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
5728
+ try {
5729
+ const displayE = 'certificate is required';
5730
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGen', displayE);
5731
+ done();
5732
+ } catch (err) {
5733
+ log.error(`Test Failure: ${err}`);
5734
+ done(err);
5735
+ }
5736
+ });
5737
+ } catch (error) {
5738
+ log.error(`Adapter Exception: ${error}`);
5739
+ done(error);
5740
+ }
5741
+ }).timeout(attemptTimeout);
5742
+ });
5743
+
5744
+ describe('#batchEnrollWithKeyGenMac - errors', () => {
5745
+ it('should have a batchEnrollWithKeyGenMac function', (done) => {
5746
+ try {
5747
+ assert.equal(true, typeof a.batchEnrollWithKeyGenMac === 'function');
5748
+ done();
5749
+ } catch (error) {
5750
+ log.error(`Test Failure: ${error}`);
5751
+ done(error);
5752
+ }
5753
+ }).timeout(attemptTimeout);
5754
+ it('should error if - missing enrollmentProfileId', (done) => {
5755
+ try {
5756
+ a.batchEnrollWithKeyGenMac(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
5757
+ try {
5758
+ const displayE = 'enrollmentProfileId is required';
5759
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5760
+ done();
5761
+ } catch (err) {
5762
+ log.error(`Test Failure: ${err}`);
5763
+ done(err);
5764
+ }
5765
+ });
5766
+ } catch (error) {
5767
+ log.error(`Adapter Exception: ${error}`);
5768
+ done(error);
5769
+ }
5770
+ }).timeout(attemptTimeout);
5771
+ it('should error if - missing certificateFormat', (done) => {
5772
+ try {
5773
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
5774
+ try {
5775
+ const displayE = 'certificateFormat is required';
5776
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5777
+ done();
5778
+ } catch (err) {
5779
+ log.error(`Test Failure: ${err}`);
5780
+ done(err);
5781
+ }
5782
+ });
5783
+ } catch (error) {
5784
+ log.error(`Adapter Exception: ${error}`);
5785
+ done(error);
5786
+ }
5787
+ }).timeout(attemptTimeout);
5788
+ it('should error if - missing macAddressFrom', (done) => {
5789
+ try {
5790
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, (data, error) => {
5791
+ try {
5792
+ const displayE = 'macAddressFrom is required';
5793
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5794
+ done();
5795
+ } catch (err) {
5796
+ log.error(`Test Failure: ${err}`);
5797
+ done(err);
5798
+ }
5799
+ });
5800
+ } catch (error) {
5801
+ log.error(`Adapter Exception: ${error}`);
5802
+ done(error);
5803
+ }
5804
+ }).timeout(attemptTimeout);
5805
+ it('should error if - missing macAddressNumber', (done) => {
5806
+ try {
5807
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
5808
+ try {
5809
+ const displayE = 'macAddressNumber is required';
5810
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5811
+ done();
5812
+ } catch (err) {
5813
+ log.error(`Test Failure: ${err}`);
5814
+ done(err);
5815
+ }
5816
+ });
5817
+ } catch (error) {
5818
+ log.error(`Adapter Exception: ${error}`);
5819
+ done(error);
5820
+ }
5821
+ }).timeout(attemptTimeout);
5822
+ it('should error if - missing macAddressStep', (done) => {
5823
+ try {
5824
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
5825
+ try {
5826
+ const displayE = 'macAddressStep is required';
5827
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5828
+ done();
5829
+ } catch (err) {
5830
+ log.error(`Test Failure: ${err}`);
5831
+ done(err);
5832
+ }
5833
+ });
5834
+ } catch (error) {
5835
+ log.error(`Adapter Exception: ${error}`);
5836
+ done(error);
5837
+ }
5838
+ }).timeout(attemptTimeout);
5839
+ it('should error if - missing emails', (done) => {
5840
+ try {
5841
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
5842
+ try {
5843
+ const displayE = 'emails is required';
5844
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5845
+ done();
5846
+ } catch (err) {
5847
+ log.error(`Test Failure: ${err}`);
5848
+ done(err);
5849
+ }
5850
+ });
5851
+ } catch (error) {
5852
+ log.error(`Adapter Exception: ${error}`);
5853
+ done(error);
5854
+ }
5855
+ }).timeout(attemptTimeout);
5856
+ it('should error if - missing keyType', (done) => {
5857
+ try {
5858
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
5859
+ try {
5860
+ const displayE = 'keyType is required';
5861
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5862
+ done();
5863
+ } catch (err) {
5864
+ log.error(`Test Failure: ${err}`);
5865
+ done(err);
5866
+ }
5867
+ });
5868
+ } catch (error) {
5869
+ log.error(`Adapter Exception: ${error}`);
5870
+ done(error);
5871
+ }
5872
+ }).timeout(attemptTimeout);
5873
+ it('should error if - missing certificate', (done) => {
5874
+ try {
5875
+ a.batchEnrollWithKeyGenMac('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
5876
+ try {
5877
+ const displayE = 'certificate is required';
5878
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollWithKeyGenMac', displayE);
5879
+ done();
5880
+ } catch (err) {
5881
+ log.error(`Test Failure: ${err}`);
5882
+ done(err);
5883
+ }
5884
+ });
5885
+ } catch (error) {
5886
+ log.error(`Adapter Exception: ${error}`);
5887
+ done(error);
5888
+ }
5889
+ }).timeout(attemptTimeout);
5890
+ });
5891
+
5892
+ describe('#listBatchJobs - errors', () => {
5893
+ it('should have a listBatchJobs function', (done) => {
5894
+ try {
5895
+ assert.equal(true, typeof a.listBatchJobs === 'function');
5896
+ done();
5897
+ } catch (error) {
5898
+ log.error(`Test Failure: ${error}`);
5899
+ done(error);
5900
+ }
5901
+ }).timeout(attemptTimeout);
5902
+ });
5903
+
5904
+ describe('#getBatchJobSettings - errors', () => {
5905
+ it('should have a getBatchJobSettings function', (done) => {
5906
+ try {
5907
+ assert.equal(true, typeof a.getBatchJobSettings === 'function');
5908
+ done();
5909
+ } catch (error) {
5910
+ log.error(`Test Failure: ${error}`);
5911
+ done(error);
5912
+ }
5913
+ }).timeout(attemptTimeout);
5914
+ it('should error if - missing jobId', (done) => {
5915
+ try {
5916
+ a.getBatchJobSettings(null, (data, error) => {
5917
+ try {
5918
+ const displayE = 'jobId is required';
5919
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getBatchJobSettings', displayE);
5920
+ done();
5921
+ } catch (err) {
5922
+ log.error(`Test Failure: ${err}`);
5923
+ done(err);
5924
+ }
5925
+ });
5926
+ } catch (error) {
5927
+ log.error(`Adapter Exception: ${error}`);
5928
+ done(error);
5929
+ }
5930
+ }).timeout(attemptTimeout);
5931
+ });
5932
+
5933
+ describe('#updateBatchJobSettings - errors', () => {
5934
+ it('should have a updateBatchJobSettings function', (done) => {
5935
+ try {
5936
+ assert.equal(true, typeof a.updateBatchJobSettings === 'function');
5937
+ done();
5938
+ } catch (error) {
5939
+ log.error(`Test Failure: ${error}`);
5940
+ done(error);
5941
+ }
5942
+ }).timeout(attemptTimeout);
5943
+ it('should error if - missing jobId', (done) => {
5944
+ try {
5945
+ a.updateBatchJobSettings(null, null, (data, error) => {
5946
+ try {
5947
+ const displayE = 'jobId is required';
5948
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateBatchJobSettings', displayE);
5949
+ done();
5950
+ } catch (err) {
5951
+ log.error(`Test Failure: ${err}`);
5952
+ done(err);
5953
+ }
5954
+ });
5955
+ } catch (error) {
5956
+ log.error(`Adapter Exception: ${error}`);
5957
+ done(error);
5958
+ }
5959
+ }).timeout(attemptTimeout);
5960
+ });
5961
+
5962
+ describe('#regenerateBatchJobPasscode - errors', () => {
5963
+ it('should have a regenerateBatchJobPasscode function', (done) => {
5964
+ try {
5965
+ assert.equal(true, typeof a.regenerateBatchJobPasscode === 'function');
5966
+ done();
5967
+ } catch (error) {
5968
+ log.error(`Test Failure: ${error}`);
5969
+ done(error);
5970
+ }
5971
+ }).timeout(attemptTimeout);
5972
+ it('should error if - missing jobId', (done) => {
5973
+ try {
5974
+ a.regenerateBatchJobPasscode(null, (data, error) => {
5975
+ try {
5976
+ const displayE = 'jobId is required';
5977
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-regenerateBatchJobPasscode', displayE);
5978
+ done();
5979
+ } catch (err) {
5980
+ log.error(`Test Failure: ${err}`);
5981
+ done(err);
5982
+ }
5983
+ });
5984
+ } catch (error) {
5985
+ log.error(`Adapter Exception: ${error}`);
5986
+ done(error);
5987
+ }
5988
+ }).timeout(attemptTimeout);
5989
+ });
5990
+
5991
+ describe('#approveJob - errors', () => {
5992
+ it('should have a approveJob function', (done) => {
5993
+ try {
5994
+ assert.equal(true, typeof a.approveJob === 'function');
5995
+ done();
5996
+ } catch (error) {
5997
+ log.error(`Test Failure: ${error}`);
5998
+ done(error);
5999
+ }
6000
+ }).timeout(attemptTimeout);
6001
+ it('should error if - missing jobId', (done) => {
6002
+ try {
6003
+ a.approveJob(null, (data, error) => {
6004
+ try {
6005
+ const displayE = 'jobId is required';
6006
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-approveJob', displayE);
6007
+ done();
6008
+ } catch (err) {
6009
+ log.error(`Test Failure: ${err}`);
6010
+ done(err);
6011
+ }
6012
+ });
6013
+ } catch (error) {
6014
+ log.error(`Adapter Exception: ${error}`);
6015
+ done(error);
6016
+ }
6017
+ }).timeout(attemptTimeout);
6018
+ });
6019
+
6020
+ describe('#rejectJob - errors', () => {
6021
+ it('should have a rejectJob function', (done) => {
6022
+ try {
6023
+ assert.equal(true, typeof a.rejectJob === 'function');
6024
+ done();
6025
+ } catch (error) {
6026
+ log.error(`Test Failure: ${error}`);
6027
+ done(error);
6028
+ }
6029
+ }).timeout(attemptTimeout);
6030
+ it('should error if - missing jobId', (done) => {
6031
+ try {
6032
+ a.rejectJob(null, null, (data, error) => {
6033
+ try {
6034
+ const displayE = 'jobId is required';
6035
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-rejectJob', displayE);
6036
+ done();
6037
+ } catch (err) {
6038
+ log.error(`Test Failure: ${err}`);
6039
+ done(err);
6040
+ }
6041
+ });
6042
+ } catch (error) {
6043
+ log.error(`Adapter Exception: ${error}`);
6044
+ done(error);
6045
+ }
6046
+ }).timeout(attemptTimeout);
6047
+ });
6048
+
6049
+ describe('#downloadReport - errors', () => {
6050
+ it('should have a downloadReport function', (done) => {
6051
+ try {
6052
+ assert.equal(true, typeof a.downloadReport === 'function');
6053
+ done();
6054
+ } catch (error) {
6055
+ log.error(`Test Failure: ${error}`);
6056
+ done(error);
6057
+ }
6058
+ }).timeout(attemptTimeout);
6059
+ it('should error if - missing jobId', (done) => {
6060
+ try {
6061
+ a.downloadReport(null, (data, error) => {
6062
+ try {
6063
+ const displayE = 'jobId is required';
6064
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadReport', displayE);
6065
+ done();
6066
+ } catch (err) {
6067
+ log.error(`Test Failure: ${err}`);
6068
+ done(err);
6069
+ }
6070
+ });
6071
+ } catch (error) {
6072
+ log.error(`Adapter Exception: ${error}`);
6073
+ done(error);
6074
+ }
6075
+ }).timeout(attemptTimeout);
6076
+ });
6077
+
6078
+ describe('#downloadCertificates - errors', () => {
6079
+ it('should have a downloadCertificates function', (done) => {
6080
+ try {
6081
+ assert.equal(true, typeof a.downloadCertificates === 'function');
6082
+ done();
6083
+ } catch (error) {
6084
+ log.error(`Test Failure: ${error}`);
6085
+ done(error);
6086
+ }
6087
+ }).timeout(attemptTimeout);
6088
+ it('should error if - missing jobId', (done) => {
6089
+ try {
6090
+ a.downloadCertificates(null, (data, error) => {
6091
+ try {
6092
+ const displayE = 'jobId is required';
6093
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadCertificates', displayE);
6094
+ done();
6095
+ } catch (err) {
6096
+ log.error(`Test Failure: ${err}`);
6097
+ done(err);
6098
+ }
6099
+ });
6100
+ } catch (error) {
6101
+ log.error(`Adapter Exception: ${error}`);
6102
+ done(error);
6103
+ }
6104
+ }).timeout(attemptTimeout);
6105
+ });
6106
+
6107
+ describe('#deleteDownloadUrls - errors', () => {
6108
+ it('should have a deleteDownloadUrls function', (done) => {
6109
+ try {
6110
+ assert.equal(true, typeof a.deleteDownloadUrls === 'function');
6111
+ done();
6112
+ } catch (error) {
6113
+ log.error(`Test Failure: ${error}`);
6114
+ done(error);
6115
+ }
6116
+ }).timeout(attemptTimeout);
6117
+ it('should error if - missing jobId', (done) => {
6118
+ try {
6119
+ a.deleteDownloadUrls(null, (data, error) => {
6120
+ try {
6121
+ const displayE = 'jobId is required';
6122
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteDownloadUrls', displayE);
6123
+ done();
6124
+ } catch (err) {
6125
+ log.error(`Test Failure: ${err}`);
6126
+ done(err);
6127
+ }
6128
+ });
6129
+ } catch (error) {
6130
+ log.error(`Adapter Exception: ${error}`);
6131
+ done(error);
6132
+ }
6133
+ }).timeout(attemptTimeout);
6134
+ });
6135
+
6136
+ describe('#resendDownloadUrls - errors', () => {
6137
+ it('should have a resendDownloadUrls function', (done) => {
6138
+ try {
6139
+ assert.equal(true, typeof a.resendDownloadUrls === 'function');
6140
+ done();
6141
+ } catch (error) {
6142
+ log.error(`Test Failure: ${error}`);
6143
+ done(error);
6144
+ }
6145
+ }).timeout(attemptTimeout);
6146
+ it('should error if - missing jobId', (done) => {
6147
+ try {
6148
+ a.resendDownloadUrls(null, (data, error) => {
6149
+ try {
6150
+ const displayE = 'jobId is required';
6151
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-resendDownloadUrls', displayE);
6152
+ done();
6153
+ } catch (err) {
6154
+ log.error(`Test Failure: ${err}`);
6155
+ done(err);
6156
+ }
6157
+ });
6158
+ } catch (error) {
6159
+ log.error(`Adapter Exception: ${error}`);
6160
+ done(error);
6161
+ }
6162
+ }).timeout(attemptTimeout);
6163
+ });
6164
+
6165
+ describe('#batchEnrollExternal - errors', () => {
6166
+ it('should have a batchEnrollExternal function', (done) => {
6167
+ try {
6168
+ assert.equal(true, typeof a.batchEnrollExternal === 'function');
6169
+ done();
6170
+ } catch (error) {
6171
+ log.error(`Test Failure: ${error}`);
6172
+ done(error);
6173
+ }
6174
+ }).timeout(attemptTimeout);
6175
+ it('should error if - missing enrollmentProfileId', (done) => {
6176
+ try {
6177
+ a.batchEnrollExternal(null, null, null, null, null, null, null, (data, error) => {
6178
+ try {
6179
+ const displayE = 'enrollmentProfileId is required';
6180
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollExternal', displayE);
6181
+ done();
6182
+ } catch (err) {
6183
+ log.error(`Test Failure: ${err}`);
6184
+ done(err);
6185
+ }
6186
+ });
6187
+ } catch (error) {
6188
+ log.error(`Adapter Exception: ${error}`);
6189
+ done(error);
6190
+ }
6191
+ }).timeout(attemptTimeout);
6192
+ it('should error if - missing data', (done) => {
6193
+ try {
6194
+ a.batchEnrollExternal('fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
6195
+ try {
6196
+ const displayE = 'data is required';
6197
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollExternal', displayE);
6198
+ done();
6199
+ } catch (err) {
6200
+ log.error(`Test Failure: ${err}`);
6201
+ done(err);
6202
+ }
6203
+ });
6204
+ } catch (error) {
6205
+ log.error(`Adapter Exception: ${error}`);
6206
+ done(error);
6207
+ }
6208
+ }).timeout(attemptTimeout);
6209
+ it('should error if - missing emails', (done) => {
6210
+ try {
6211
+ a.batchEnrollExternal('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
6212
+ try {
6213
+ const displayE = 'emails is required';
6214
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-batchEnrollExternal', displayE);
6215
+ done();
6216
+ } catch (err) {
6217
+ log.error(`Test Failure: ${err}`);
6218
+ done(err);
6219
+ }
6220
+ });
6221
+ } catch (error) {
6222
+ log.error(`Adapter Exception: ${error}`);
6223
+ done(error);
6224
+ }
6225
+ }).timeout(attemptTimeout);
6226
+ });
6227
+
6228
+ describe('#downloadMapping - errors', () => {
6229
+ it('should have a downloadMapping function', (done) => {
6230
+ try {
6231
+ assert.equal(true, typeof a.downloadMapping === 'function');
6232
+ done();
6233
+ } catch (error) {
6234
+ log.error(`Test Failure: ${error}`);
6235
+ done(error);
6236
+ }
6237
+ }).timeout(attemptTimeout);
6238
+ it('should error if - missing jobId', (done) => {
6239
+ try {
6240
+ a.downloadMapping(null, (data, error) => {
6241
+ try {
6242
+ const displayE = 'jobId is required';
6243
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadMapping', displayE);
6244
+ done();
6245
+ } catch (err) {
6246
+ log.error(`Test Failure: ${err}`);
6247
+ done(err);
6248
+ }
6249
+ });
6250
+ } catch (error) {
6251
+ log.error(`Adapter Exception: ${error}`);
6252
+ done(error);
6253
+ }
6254
+ }).timeout(attemptTimeout);
6255
+ });
6256
+
6257
+ describe('#downloadByJobIdAndUniqueId - errors', () => {
6258
+ it('should have a downloadByJobIdAndUniqueId function', (done) => {
6259
+ try {
6260
+ assert.equal(true, typeof a.downloadByJobIdAndUniqueId === 'function');
6261
+ done();
6262
+ } catch (error) {
6263
+ log.error(`Test Failure: ${error}`);
6264
+ done(error);
6265
+ }
6266
+ }).timeout(attemptTimeout);
6267
+ it('should error if - missing jobId', (done) => {
6268
+ try {
6269
+ a.downloadByJobIdAndUniqueId(null, null, null, (data, error) => {
6270
+ try {
6271
+ const displayE = 'jobId is required';
6272
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndUniqueId', displayE);
6273
+ done();
6274
+ } catch (err) {
6275
+ log.error(`Test Failure: ${err}`);
6276
+ done(err);
6277
+ }
6278
+ });
6279
+ } catch (error) {
6280
+ log.error(`Adapter Exception: ${error}`);
6281
+ done(error);
6282
+ }
6283
+ }).timeout(attemptTimeout);
6284
+ it('should error if - missing uniqueIdentifier', (done) => {
6285
+ try {
6286
+ a.downloadByJobIdAndUniqueId('fakeparam', null, null, (data, error) => {
6287
+ try {
6288
+ const displayE = 'uniqueIdentifier is required';
6289
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndUniqueId', displayE);
6290
+ done();
6291
+ } catch (err) {
6292
+ log.error(`Test Failure: ${err}`);
6293
+ done(err);
6294
+ }
6295
+ });
6296
+ } catch (error) {
6297
+ log.error(`Adapter Exception: ${error}`);
6298
+ done(error);
6299
+ }
6300
+ }).timeout(attemptTimeout);
6301
+ it('should error if - missing format', (done) => {
6302
+ try {
6303
+ a.downloadByJobIdAndUniqueId('fakeparam', 'fakeparam', null, (data, error) => {
6304
+ try {
6305
+ const displayE = 'format is required';
6306
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndUniqueId', displayE);
6307
+ done();
6308
+ } catch (err) {
6309
+ log.error(`Test Failure: ${err}`);
6310
+ done(err);
6311
+ }
6312
+ });
6313
+ } catch (error) {
6314
+ log.error(`Adapter Exception: ${error}`);
6315
+ done(error);
6316
+ }
6317
+ }).timeout(attemptTimeout);
6318
+ });
6319
+
6320
+ describe('#downloadByCommonName - errors', () => {
6321
+ it('should have a downloadByCommonName function', (done) => {
6322
+ try {
6323
+ assert.equal(true, typeof a.downloadByCommonName === 'function');
6324
+ done();
6325
+ } catch (error) {
6326
+ log.error(`Test Failure: ${error}`);
6327
+ done(error);
6328
+ }
6329
+ }).timeout(attemptTimeout);
6330
+ it('should error if - missing commonName', (done) => {
6331
+ try {
6332
+ a.downloadByCommonName(null, null, (data, error) => {
6333
+ try {
6334
+ const displayE = 'commonName is required';
6335
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByCommonName', displayE);
6336
+ done();
6337
+ } catch (err) {
6338
+ log.error(`Test Failure: ${err}`);
6339
+ done(err);
6340
+ }
6341
+ });
6342
+ } catch (error) {
6343
+ log.error(`Adapter Exception: ${error}`);
6344
+ done(error);
6345
+ }
6346
+ }).timeout(attemptTimeout);
6347
+ it('should error if - missing format', (done) => {
6348
+ try {
6349
+ a.downloadByCommonName('fakeparam', null, (data, error) => {
6350
+ try {
6351
+ const displayE = 'format is required';
6352
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByCommonName', displayE);
6353
+ done();
6354
+ } catch (err) {
6355
+ log.error(`Test Failure: ${err}`);
6356
+ done(err);
6357
+ }
6358
+ });
6359
+ } catch (error) {
6360
+ log.error(`Adapter Exception: ${error}`);
6361
+ done(error);
6362
+ }
6363
+ }).timeout(attemptTimeout);
6364
+ });
6365
+
6366
+ describe('#downloadByJobIdAndCommonName - errors', () => {
6367
+ it('should have a downloadByJobIdAndCommonName function', (done) => {
6368
+ try {
6369
+ assert.equal(true, typeof a.downloadByJobIdAndCommonName === 'function');
6370
+ done();
6371
+ } catch (error) {
6372
+ log.error(`Test Failure: ${error}`);
6373
+ done(error);
6374
+ }
6375
+ }).timeout(attemptTimeout);
6376
+ it('should error if - missing jobId', (done) => {
6377
+ try {
6378
+ a.downloadByJobIdAndCommonName(null, null, null, (data, error) => {
6379
+ try {
6380
+ const displayE = 'jobId is required';
6381
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCommonName', displayE);
6382
+ done();
6383
+ } catch (err) {
6384
+ log.error(`Test Failure: ${err}`);
6385
+ done(err);
6386
+ }
6387
+ });
6388
+ } catch (error) {
6389
+ log.error(`Adapter Exception: ${error}`);
6390
+ done(error);
6391
+ }
6392
+ }).timeout(attemptTimeout);
6393
+ it('should error if - missing commonName', (done) => {
6394
+ try {
6395
+ a.downloadByJobIdAndCommonName('fakeparam', null, null, (data, error) => {
6396
+ try {
6397
+ const displayE = 'commonName is required';
6398
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCommonName', displayE);
6399
+ done();
6400
+ } catch (err) {
6401
+ log.error(`Test Failure: ${err}`);
6402
+ done(err);
6403
+ }
6404
+ });
6405
+ } catch (error) {
6406
+ log.error(`Adapter Exception: ${error}`);
6407
+ done(error);
6408
+ }
6409
+ }).timeout(attemptTimeout);
6410
+ it('should error if - missing format', (done) => {
6411
+ try {
6412
+ a.downloadByJobIdAndCommonName('fakeparam', 'fakeparam', null, (data, error) => {
6413
+ try {
6414
+ const displayE = 'format is required';
6415
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCommonName', displayE);
6416
+ done();
6417
+ } catch (err) {
6418
+ log.error(`Test Failure: ${err}`);
6419
+ done(err);
6420
+ }
6421
+ });
6422
+ } catch (error) {
6423
+ log.error(`Adapter Exception: ${error}`);
6424
+ done(error);
6425
+ }
6426
+ }).timeout(attemptTimeout);
6427
+ });
6428
+
6429
+ describe('#downloadByCertificateValue - errors', () => {
6430
+ it('should have a downloadByCertificateValue function', (done) => {
6431
+ try {
6432
+ assert.equal(true, typeof a.downloadByCertificateValue === 'function');
6433
+ done();
6434
+ } catch (error) {
6435
+ log.error(`Test Failure: ${error}`);
6436
+ done(error);
6437
+ }
6438
+ }).timeout(attemptTimeout);
6439
+ it('should error if - missing certificateValue', (done) => {
6440
+ try {
6441
+ a.downloadByCertificateValue(null, null, (data, error) => {
6442
+ try {
6443
+ const displayE = 'certificateValue is required';
6444
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByCertificateValue', displayE);
6445
+ done();
6446
+ } catch (err) {
6447
+ log.error(`Test Failure: ${err}`);
6448
+ done(err);
6449
+ }
6450
+ });
6451
+ } catch (error) {
6452
+ log.error(`Adapter Exception: ${error}`);
6453
+ done(error);
6454
+ }
6455
+ }).timeout(attemptTimeout);
6456
+ it('should error if - missing format', (done) => {
6457
+ try {
6458
+ a.downloadByCertificateValue('fakeparam', null, (data, error) => {
6459
+ try {
6460
+ const displayE = 'format is required';
6461
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByCertificateValue', displayE);
6462
+ done();
6463
+ } catch (err) {
6464
+ log.error(`Test Failure: ${err}`);
6465
+ done(err);
6466
+ }
6467
+ });
6468
+ } catch (error) {
6469
+ log.error(`Adapter Exception: ${error}`);
6470
+ done(error);
6471
+ }
6472
+ }).timeout(attemptTimeout);
6473
+ });
6474
+
6475
+ describe('#downloadByJobIdAndCertificateValue - errors', () => {
6476
+ it('should have a downloadByJobIdAndCertificateValue function', (done) => {
6477
+ try {
6478
+ assert.equal(true, typeof a.downloadByJobIdAndCertificateValue === 'function');
6479
+ done();
6480
+ } catch (error) {
6481
+ log.error(`Test Failure: ${error}`);
6482
+ done(error);
6483
+ }
6484
+ }).timeout(attemptTimeout);
6485
+ it('should error if - missing jobId', (done) => {
6486
+ try {
6487
+ a.downloadByJobIdAndCertificateValue(null, null, null, (data, error) => {
6488
+ try {
6489
+ const displayE = 'jobId is required';
6490
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCertificateValue', displayE);
6491
+ done();
6492
+ } catch (err) {
6493
+ log.error(`Test Failure: ${err}`);
6494
+ done(err);
6495
+ }
6496
+ });
6497
+ } catch (error) {
6498
+ log.error(`Adapter Exception: ${error}`);
6499
+ done(error);
6500
+ }
6501
+ }).timeout(attemptTimeout);
6502
+ it('should error if - missing certificateValue', (done) => {
6503
+ try {
6504
+ a.downloadByJobIdAndCertificateValue('fakeparam', null, null, (data, error) => {
6505
+ try {
6506
+ const displayE = 'certificateValue is required';
6507
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCertificateValue', displayE);
6508
+ done();
6509
+ } catch (err) {
6510
+ log.error(`Test Failure: ${err}`);
6511
+ done(err);
6512
+ }
6513
+ });
6514
+ } catch (error) {
6515
+ log.error(`Adapter Exception: ${error}`);
6516
+ done(error);
6517
+ }
6518
+ }).timeout(attemptTimeout);
6519
+ it('should error if - missing format', (done) => {
6520
+ try {
6521
+ a.downloadByJobIdAndCertificateValue('fakeparam', 'fakeparam', null, (data, error) => {
6522
+ try {
6523
+ const displayE = 'format is required';
6524
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadByJobIdAndCertificateValue', displayE);
6525
+ done();
6526
+ } catch (err) {
6527
+ log.error(`Test Failure: ${err}`);
6528
+ done(err);
6529
+ }
6530
+ });
6531
+ } catch (error) {
6532
+ log.error(`Adapter Exception: ${error}`);
6533
+ done(error);
6534
+ }
6535
+ }).timeout(attemptTimeout);
6536
+ });
6537
+
6538
+ describe('#createDeviceProfile - errors', () => {
6539
+ it('should have a createDeviceProfile function', (done) => {
6540
+ try {
6541
+ assert.equal(true, typeof a.createDeviceProfile === 'function');
6542
+ done();
6543
+ } catch (error) {
6544
+ log.error(`Test Failure: ${error}`);
6545
+ done(error);
6546
+ }
6547
+ }).timeout(attemptTimeout);
6548
+ });
6549
+
6550
+ describe('#listdeviceprofiles - errors', () => {
6551
+ it('should have a listdeviceprofiles function', (done) => {
6552
+ try {
6553
+ assert.equal(true, typeof a.listdeviceprofiles === 'function');
6554
+ done();
6555
+ } catch (error) {
6556
+ log.error(`Test Failure: ${error}`);
6557
+ done(error);
6558
+ }
6559
+ }).timeout(attemptTimeout);
6560
+ });
6561
+
6562
+ describe('#getDeviceProfile - errors', () => {
6563
+ it('should have a getDeviceProfile function', (done) => {
6564
+ try {
6565
+ assert.equal(true, typeof a.getDeviceProfile === 'function');
6566
+ done();
6567
+ } catch (error) {
6568
+ log.error(`Test Failure: ${error}`);
6569
+ done(error);
6570
+ }
6571
+ }).timeout(attemptTimeout);
6572
+ it('should error if - missing deviceProfileId', (done) => {
6573
+ try {
6574
+ a.getDeviceProfile(null, (data, error) => {
6575
+ try {
6576
+ const displayE = 'deviceProfileId is required';
6577
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getDeviceProfile', displayE);
6578
+ done();
6579
+ } catch (err) {
6580
+ log.error(`Test Failure: ${err}`);
6581
+ done(err);
6582
+ }
6583
+ });
6584
+ } catch (error) {
6585
+ log.error(`Adapter Exception: ${error}`);
6586
+ done(error);
6587
+ }
6588
+ }).timeout(attemptTimeout);
6589
+ });
6590
+
6591
+ describe('#updateDeviceProfile - errors', () => {
6592
+ it('should have a updateDeviceProfile function', (done) => {
6593
+ try {
6594
+ assert.equal(true, typeof a.updateDeviceProfile === 'function');
6595
+ done();
6596
+ } catch (error) {
6597
+ log.error(`Test Failure: ${error}`);
6598
+ done(error);
6599
+ }
6600
+ }).timeout(attemptTimeout);
6601
+ it('should error if - missing deviceProfileId', (done) => {
6602
+ try {
6603
+ a.updateDeviceProfile(null, null, (data, error) => {
6604
+ try {
6605
+ const displayE = 'deviceProfileId is required';
6606
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateDeviceProfile', displayE);
6607
+ done();
6608
+ } catch (err) {
6609
+ log.error(`Test Failure: ${err}`);
6610
+ done(err);
6611
+ }
6612
+ });
6613
+ } catch (error) {
6614
+ log.error(`Adapter Exception: ${error}`);
6615
+ done(error);
6616
+ }
6617
+ }).timeout(attemptTimeout);
6618
+ });
6619
+
6620
+ describe('#deleteDeviceProfile - errors', () => {
6621
+ it('should have a deleteDeviceProfile function', (done) => {
6622
+ try {
6623
+ assert.equal(true, typeof a.deleteDeviceProfile === 'function');
6624
+ done();
6625
+ } catch (error) {
6626
+ log.error(`Test Failure: ${error}`);
6627
+ done(error);
6628
+ }
6629
+ }).timeout(attemptTimeout);
6630
+ it('should error if - missing deviceProfileId', (done) => {
6631
+ try {
6632
+ a.deleteDeviceProfile(null, (data, error) => {
6633
+ try {
6634
+ const displayE = 'deviceProfileId is required';
6635
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteDeviceProfile', displayE);
6636
+ done();
6637
+ } catch (err) {
6638
+ log.error(`Test Failure: ${err}`);
6639
+ done(err);
6640
+ }
6641
+ });
6642
+ } catch (error) {
6643
+ log.error(`Adapter Exception: ${error}`);
6644
+ done(error);
6645
+ }
6646
+ }).timeout(attemptTimeout);
6647
+ });
6648
+
6649
+ describe('#restoreDeviceProfile - errors', () => {
6650
+ it('should have a restoreDeviceProfile function', (done) => {
6651
+ try {
6652
+ assert.equal(true, typeof a.restoreDeviceProfile === 'function');
6653
+ done();
6654
+ } catch (error) {
6655
+ log.error(`Test Failure: ${error}`);
6656
+ done(error);
6657
+ }
6658
+ }).timeout(attemptTimeout);
6659
+ it('should error if - missing deviceProfileId', (done) => {
6660
+ try {
6661
+ a.restoreDeviceProfile(null, (data, error) => {
6662
+ try {
6663
+ const displayE = 'deviceProfileId is required';
6664
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreDeviceProfile', displayE);
6665
+ done();
6666
+ } catch (err) {
6667
+ log.error(`Test Failure: ${err}`);
6668
+ done(err);
6669
+ }
6670
+ });
6671
+ } catch (error) {
6672
+ log.error(`Adapter Exception: ${error}`);
6673
+ done(error);
6674
+ }
6675
+ }).timeout(attemptTimeout);
6676
+ });
6677
+
6678
+ describe('#getICA - errors', () => {
6679
+ it('should have a getICA function', (done) => {
6680
+ try {
6681
+ assert.equal(true, typeof a.getICA === 'function');
6682
+ done();
6683
+ } catch (error) {
6684
+ log.error(`Test Failure: ${error}`);
6685
+ done(error);
6686
+ }
6687
+ }).timeout(attemptTimeout);
6688
+ it('should error if - missing icaId', (done) => {
6689
+ try {
6690
+ a.getICA(null, (data, error) => {
6691
+ try {
6692
+ const displayE = 'icaId is required';
6693
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getICA', displayE);
6694
+ done();
6695
+ } catch (err) {
6696
+ log.error(`Test Failure: ${err}`);
6697
+ done(err);
6698
+ }
6699
+ });
6700
+ } catch (error) {
6701
+ log.error(`Adapter Exception: ${error}`);
6702
+ done(error);
6703
+ }
6704
+ }).timeout(attemptTimeout);
6705
+ });
6706
+
6707
+ describe('#listICAs - errors', () => {
6708
+ it('should have a listICAs function', (done) => {
6709
+ try {
6710
+ assert.equal(true, typeof a.listICAs === 'function');
6711
+ done();
6712
+ } catch (error) {
6713
+ log.error(`Test Failure: ${error}`);
6714
+ done(error);
6715
+ }
6716
+ }).timeout(attemptTimeout);
6717
+ });
6718
+
6719
+ describe('#getGatewayDetails - errors', () => {
6720
+ it('should have a getGatewayDetails function', (done) => {
6721
+ try {
6722
+ assert.equal(true, typeof a.getGatewayDetails === 'function');
6723
+ done();
6724
+ } catch (error) {
6725
+ log.error(`Test Failure: ${error}`);
6726
+ done(error);
6727
+ }
6728
+ }).timeout(attemptTimeout);
6729
+ it('should error if - missing gatewayId', (done) => {
6730
+ try {
6731
+ a.getGatewayDetails(null, (data, error) => {
6732
+ try {
6733
+ const displayE = 'gatewayId is required';
6734
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getGatewayDetails', displayE);
6735
+ done();
6736
+ } catch (err) {
6737
+ log.error(`Test Failure: ${err}`);
6738
+ done(err);
6739
+ }
6740
+ });
6741
+ } catch (error) {
6742
+ log.error(`Adapter Exception: ${error}`);
6743
+ done(error);
6744
+ }
6745
+ }).timeout(attemptTimeout);
6746
+ });
6747
+
6748
+ describe('#updateGateway - errors', () => {
6749
+ it('should have a updateGateway function', (done) => {
6750
+ try {
6751
+ assert.equal(true, typeof a.updateGateway === 'function');
6752
+ done();
6753
+ } catch (error) {
6754
+ log.error(`Test Failure: ${error}`);
6755
+ done(error);
6756
+ }
6757
+ }).timeout(attemptTimeout);
6758
+ it('should error if - missing gatewayId', (done) => {
6759
+ try {
6760
+ a.updateGateway(null, null, (data, error) => {
6761
+ try {
6762
+ const displayE = 'gatewayId is required';
6763
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateGateway', displayE);
6764
+ done();
6765
+ } catch (err) {
6766
+ log.error(`Test Failure: ${err}`);
6767
+ done(err);
6768
+ }
6769
+ });
6770
+ } catch (error) {
6771
+ log.error(`Adapter Exception: ${error}`);
6772
+ done(error);
6773
+ }
6774
+ }).timeout(attemptTimeout);
6775
+ });
6776
+
6777
+ describe('#listGateways - errors', () => {
6778
+ it('should have a listGateways function', (done) => {
6779
+ try {
6780
+ assert.equal(true, typeof a.listGateways === 'function');
6781
+ done();
6782
+ } catch (error) {
6783
+ log.error(`Test Failure: ${error}`);
6784
+ done(error);
6785
+ }
6786
+ }).timeout(attemptTimeout);
6787
+ });
6788
+
6789
+ describe('#createGateway - errors', () => {
6790
+ it('should have a createGateway function', (done) => {
6791
+ try {
6792
+ assert.equal(true, typeof a.createGateway === 'function');
6793
+ done();
6794
+ } catch (error) {
6795
+ log.error(`Test Failure: ${error}`);
6796
+ done(error);
6797
+ }
6798
+ }).timeout(attemptTimeout);
6799
+ });
6800
+
6801
+ describe('#enableGateway - errors', () => {
6802
+ it('should have a enableGateway function', (done) => {
6803
+ try {
6804
+ assert.equal(true, typeof a.enableGateway === 'function');
6805
+ done();
6806
+ } catch (error) {
6807
+ log.error(`Test Failure: ${error}`);
6808
+ done(error);
6809
+ }
6810
+ }).timeout(attemptTimeout);
6811
+ it('should error if - missing gatewayId', (done) => {
6812
+ try {
6813
+ a.enableGateway(null, (data, error) => {
6814
+ try {
6815
+ const displayE = 'gatewayId is required';
6816
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-enableGateway', displayE);
6817
+ done();
6818
+ } catch (err) {
6819
+ log.error(`Test Failure: ${err}`);
6820
+ done(err);
6821
+ }
6822
+ });
6823
+ } catch (error) {
6824
+ log.error(`Adapter Exception: ${error}`);
6825
+ done(error);
6826
+ }
6827
+ }).timeout(attemptTimeout);
6828
+ });
6829
+
6830
+ describe('#disableGateway - errors', () => {
6831
+ it('should have a disableGateway function', (done) => {
6832
+ try {
6833
+ assert.equal(true, typeof a.disableGateway === 'function');
6834
+ done();
6835
+ } catch (error) {
6836
+ log.error(`Test Failure: ${error}`);
6837
+ done(error);
6838
+ }
6839
+ }).timeout(attemptTimeout);
6840
+ it('should error if - missing gatewayId', (done) => {
6841
+ try {
6842
+ a.disableGateway(null, (data, error) => {
6843
+ try {
6844
+ const displayE = 'gatewayId is required';
6845
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-disableGateway', displayE);
6846
+ done();
6847
+ } catch (err) {
6848
+ log.error(`Test Failure: ${err}`);
6849
+ done(err);
6850
+ }
6851
+ });
6852
+ } catch (error) {
6853
+ log.error(`Adapter Exception: ${error}`);
6854
+ done(error);
6855
+ }
6856
+ }).timeout(attemptTimeout);
6857
+ });
6858
+
6859
+ describe('#deleteGateway - errors', () => {
6860
+ it('should have a deleteGateway function', (done) => {
6861
+ try {
6862
+ assert.equal(true, typeof a.deleteGateway === 'function');
6863
+ done();
6864
+ } catch (error) {
6865
+ log.error(`Test Failure: ${error}`);
6866
+ done(error);
6867
+ }
6868
+ }).timeout(attemptTimeout);
6869
+ it('should error if - missing gatewayId', (done) => {
6870
+ try {
6871
+ a.deleteGateway(null, (data, error) => {
6872
+ try {
6873
+ const displayE = 'gatewayId is required';
6874
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteGateway', displayE);
6875
+ done();
6876
+ } catch (err) {
6877
+ log.error(`Test Failure: ${err}`);
6878
+ done(err);
6879
+ }
6880
+ });
6881
+ } catch (error) {
6882
+ log.error(`Adapter Exception: ${error}`);
6883
+ done(error);
6884
+ }
6885
+ }).timeout(attemptTimeout);
6886
+ });
6887
+
6888
+ describe('#restoreGateway - errors', () => {
6889
+ it('should have a restoreGateway function', (done) => {
6890
+ try {
6891
+ assert.equal(true, typeof a.restoreGateway === 'function');
6892
+ done();
6893
+ } catch (error) {
6894
+ log.error(`Test Failure: ${error}`);
6895
+ done(error);
6896
+ }
6897
+ }).timeout(attemptTimeout);
6898
+ it('should error if - missing gatewayId', (done) => {
6899
+ try {
6900
+ a.restoreGateway(null, (data, error) => {
6901
+ try {
6902
+ const displayE = 'gatewayId is required';
6903
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-restoreGateway', displayE);
6904
+ done();
6905
+ } catch (err) {
6906
+ log.error(`Test Failure: ${err}`);
6907
+ done(err);
6908
+ }
6909
+ });
6910
+ } catch (error) {
6911
+ log.error(`Adapter Exception: ${error}`);
6912
+ done(error);
6913
+ }
6914
+ }).timeout(attemptTimeout);
6915
+ });
6916
+
6917
+ describe('#downloadGatewayConfig - errors', () => {
6918
+ it('should have a downloadGatewayConfig function', (done) => {
6919
+ try {
6920
+ assert.equal(true, typeof a.downloadGatewayConfig === 'function');
6921
+ done();
6922
+ } catch (error) {
6923
+ log.error(`Test Failure: ${error}`);
6924
+ done(error);
6925
+ }
6926
+ }).timeout(attemptTimeout);
6927
+ it('should error if - missing gatewayId', (done) => {
6928
+ try {
6929
+ a.downloadGatewayConfig(null, (data, error) => {
6930
+ try {
6931
+ const displayE = 'gatewayId is required';
6932
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-downloadGatewayConfig', displayE);
6933
+ done();
6934
+ } catch (err) {
6935
+ log.error(`Test Failure: ${err}`);
6936
+ done(err);
6937
+ }
6938
+ });
6939
+ } catch (error) {
6940
+ log.error(`Adapter Exception: ${error}`);
6941
+ done(error);
6942
+ }
6943
+ }).timeout(attemptTimeout);
6944
+ });
6945
+
6946
+ describe('#listOCSPGroups - errors', () => {
6947
+ it('should have a listOCSPGroups function', (done) => {
6948
+ try {
6949
+ assert.equal(true, typeof a.listOCSPGroups === 'function');
6950
+ done();
6951
+ } catch (error) {
6952
+ log.error(`Test Failure: ${error}`);
6953
+ done(error);
6954
+ }
6955
+ }).timeout(attemptTimeout);
6956
+ });
6957
+
6958
+ describe('#createOCSPGroup - errors', () => {
6959
+ it('should have a createOCSPGroup function', (done) => {
6960
+ try {
6961
+ assert.equal(true, typeof a.createOCSPGroup === 'function');
6962
+ done();
6963
+ } catch (error) {
6964
+ log.error(`Test Failure: ${error}`);
6965
+ done(error);
6966
+ }
6967
+ }).timeout(attemptTimeout);
6968
+ });
6969
+
6970
+ describe('#getOCSPGroupDetails - errors', () => {
6971
+ it('should have a getOCSPGroupDetails function', (done) => {
6972
+ try {
6973
+ assert.equal(true, typeof a.getOCSPGroupDetails === 'function');
6974
+ done();
6975
+ } catch (error) {
6976
+ log.error(`Test Failure: ${error}`);
6977
+ done(error);
6978
+ }
6979
+ }).timeout(attemptTimeout);
6980
+ it('should error if - missing ocspGroupId', (done) => {
6981
+ try {
6982
+ a.getOCSPGroupDetails(null, (data, error) => {
6983
+ try {
6984
+ const displayE = 'ocspGroupId is required';
6985
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-getOCSPGroupDetails', displayE);
6986
+ done();
6987
+ } catch (err) {
6988
+ log.error(`Test Failure: ${err}`);
6989
+ done(err);
6990
+ }
6991
+ });
6992
+ } catch (error) {
6993
+ log.error(`Adapter Exception: ${error}`);
6994
+ done(error);
6995
+ }
6996
+ }).timeout(attemptTimeout);
6997
+ });
6998
+
6999
+ describe('#updateOCSPGroup - errors', () => {
7000
+ it('should have a updateOCSPGroup function', (done) => {
7001
+ try {
7002
+ assert.equal(true, typeof a.updateOCSPGroup === 'function');
7003
+ done();
7004
+ } catch (error) {
7005
+ log.error(`Test Failure: ${error}`);
7006
+ done(error);
7007
+ }
7008
+ }).timeout(attemptTimeout);
7009
+ it('should error if - missing ocspGroupId', (done) => {
7010
+ try {
7011
+ a.updateOCSPGroup(null, null, (data, error) => {
7012
+ try {
7013
+ const displayE = 'ocspGroupId is required';
7014
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-updateOCSPGroup', displayE);
7015
+ done();
7016
+ } catch (err) {
7017
+ log.error(`Test Failure: ${err}`);
7018
+ done(err);
7019
+ }
7020
+ });
7021
+ } catch (error) {
7022
+ log.error(`Adapter Exception: ${error}`);
7023
+ done(error);
7024
+ }
7025
+ }).timeout(attemptTimeout);
7026
+ });
7027
+
7028
+ describe('#deleteOCSPGroup - errors', () => {
7029
+ it('should have a deleteOCSPGroup function', (done) => {
7030
+ try {
7031
+ assert.equal(true, typeof a.deleteOCSPGroup === 'function');
7032
+ done();
7033
+ } catch (error) {
7034
+ log.error(`Test Failure: ${error}`);
7035
+ done(error);
7036
+ }
7037
+ }).timeout(attemptTimeout);
7038
+ it('should error if - missing ocspGroupId', (done) => {
7039
+ try {
7040
+ a.deleteOCSPGroup(null, (data, error) => {
7041
+ try {
7042
+ const displayE = 'ocspGroupId is required';
7043
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-deleteOCSPGroup', displayE);
7044
+ done();
7045
+ } catch (err) {
7046
+ log.error(`Test Failure: ${err}`);
7047
+ done(err);
7048
+ }
7049
+ });
7050
+ } catch (error) {
7051
+ log.error(`Adapter Exception: ${error}`);
7052
+ done(error);
7053
+ }
7054
+ }).timeout(attemptTimeout);
7055
+ });
7056
+
7057
+ describe('#addCertsOCSPGroup - errors', () => {
7058
+ it('should have a addCertsOCSPGroup function', (done) => {
7059
+ try {
7060
+ assert.equal(true, typeof a.addCertsOCSPGroup === 'function');
7061
+ done();
7062
+ } catch (error) {
7063
+ log.error(`Test Failure: ${error}`);
7064
+ done(error);
7065
+ }
7066
+ }).timeout(attemptTimeout);
7067
+ it('should error if - missing ocspGroupId', (done) => {
7068
+ try {
7069
+ a.addCertsOCSPGroup(null, null, (data, error) => {
7070
+ try {
7071
+ const displayE = 'ocspGroupId is required';
7072
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-addCertsOCSPGroup', displayE);
7073
+ done();
7074
+ } catch (err) {
7075
+ log.error(`Test Failure: ${err}`);
7076
+ done(err);
7077
+ }
7078
+ });
7079
+ } catch (error) {
7080
+ log.error(`Adapter Exception: ${error}`);
7081
+ done(error);
7082
+ }
7083
+ }).timeout(attemptTimeout);
7084
+ });
7085
+
7086
+ describe('#removeCertsOCSPGroup - errors', () => {
7087
+ it('should have a removeCertsOCSPGroup function', (done) => {
7088
+ try {
7089
+ assert.equal(true, typeof a.removeCertsOCSPGroup === 'function');
7090
+ done();
7091
+ } catch (error) {
7092
+ log.error(`Test Failure: ${error}`);
7093
+ done(error);
7094
+ }
7095
+ }).timeout(attemptTimeout);
7096
+ it('should error if - missing ocspGroupId', (done) => {
7097
+ try {
7098
+ a.removeCertsOCSPGroup(null, null, (data, error) => {
7099
+ try {
7100
+ const displayE = 'ocspGroupId is required';
7101
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-removeCertsOCSPGroup', displayE);
7102
+ done();
7103
+ } catch (err) {
7104
+ log.error(`Test Failure: ${err}`);
7105
+ done(err);
7106
+ }
7107
+ });
7108
+ } catch (error) {
7109
+ log.error(`Adapter Exception: ${error}`);
7110
+ done(error);
7111
+ }
7112
+ }).timeout(attemptTimeout);
7113
+ });
7114
+
7115
+ describe('#listOCSPGroupCerts - errors', () => {
7116
+ it('should have a listOCSPGroupCerts function', (done) => {
7117
+ try {
7118
+ assert.equal(true, typeof a.listOCSPGroupCerts === 'function');
7119
+ done();
7120
+ } catch (error) {
7121
+ log.error(`Test Failure: ${error}`);
7122
+ done(error);
7123
+ }
7124
+ }).timeout(attemptTimeout);
7125
+ it('should error if - missing ocspGroupId', (done) => {
7126
+ try {
7127
+ a.listOCSPGroupCerts(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
7128
+ try {
7129
+ const displayE = 'ocspGroupId is required';
7130
+ runErrorAsserts(data, error, 'AD.300', 'Test-digicert-adapter-listOCSPGroupCerts', displayE);
7131
+ done();
7132
+ } catch (err) {
7133
+ log.error(`Test Failure: ${err}`);
7134
+ done(err);
7135
+ }
7136
+ });
7137
+ } catch (error) {
7138
+ log.error(`Adapter Exception: ${error}`);
7139
+ done(error);
7140
+ }
7141
+ }).timeout(attemptTimeout);
7142
+ });
2277
7143
  });
2278
7144
  });