@itentialopensource/adapter-checkpoint_gaia 0.2.3 → 0.2.4

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "version": "0.2.3",
3
3
  "configLines": 9593,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 17672,
6
- "testLines": 12459,
7
- "testCases": 618,
8
- "totalCodeLines": 31914,
6
+ "testLines": 12435,
7
+ "testCases": 617,
8
+ "totalCodeLines": 31890,
9
9
  "wfTasks": 182
10
10
  }
@@ -4,7 +4,6 @@
4
4
  /* eslint no-unused-vars: warn */
5
5
 
6
6
  const assert = require('assert');
7
- const http = require('http');
8
7
  const https = require('https');
9
8
  const mocha = require('mocha');
10
9
  const ping = require('ping');
@@ -53,29 +52,6 @@ describe('[integration] Adapter Test', () => {
53
52
  });
54
53
  });
55
54
 
56
- it('Support HTTP on port 80', (done) => {
57
- const requestOptions = {
58
- host,
59
- port: 80,
60
- method: 'HEAD'
61
- };
62
-
63
- const req = http.request(requestOptions, (res) => {
64
- try {
65
- assert.ok(res.statusCode >= 200 && res.statusCode < 400);
66
- done();
67
- } catch (error) {
68
- done(error);
69
- }
70
- });
71
-
72
- req.on('error', (err) => {
73
- done(err);
74
- });
75
-
76
- req.end();
77
- });
78
-
79
55
  it('Support HTTPS on port 443', (done) => {
80
56
  const requestOptions = {
81
57
  host,
@@ -500,8 +500,8 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
500
500
  });
501
501
 
502
502
  const SessionManagementLoginBodyParam = {
503
- password: '{{password}}',
504
- user: '{{username}}'
503
+ password: samProps.authentication.password,
504
+ user: samProps.authentication.username
505
505
  };
506
506
  describe('#login - errors', () => {
507
507
  it('should work if integrated but since no mockdata should error when run standalone', (done) => {
@@ -2934,7 +2934,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
2934
2934
 
2935
2935
  const usersAdduserBodyParam = {
2936
2936
  roles: 'monitorRole',
2937
- password: '12345abcde',
2937
+ password: samProps.authentication.password,
2938
2938
  name: 'myusername',
2939
2939
  'secondary-system-groups': [
2940
2940
  'users'
@@ -3348,7 +3348,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
3348
3348
  host: {
3349
3349
  username: 'username',
3350
3350
  'upload-path': '/home/admin/',
3351
- password: 'secret',
3351
+ password: samProps.authentication.password,
3352
3352
  target: 'scp',
3353
3353
  'ip-address': '172.23.1.209'
3354
3354
  },
@@ -3409,7 +3409,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
3409
3409
  },
3410
3410
  host: {
3411
3411
  username: 'username',
3412
- password: 'secret',
3412
+ password: samProps.authentication.password,
3413
3413
  target: 'mgmt'
3414
3414
  },
3415
3415
  'retention-policy': {
@@ -3492,7 +3492,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
3492
3492
  host: {
3493
3493
  username: 'username',
3494
3494
  'upload-path': '/home/admin/',
3495
- password: 'secret',
3495
+ password: samProps.authentication.password,
3496
3496
  target: 'scp',
3497
3497
  'ip-address': '172.23.1.209'
3498
3498
  },
@@ -3876,7 +3876,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
3876
3876
  });
3877
3877
 
3878
3878
  const SystemSetinitialsetupBodyParam = {
3879
- password: 'user-password',
3879
+ password: samProps.authentication.password,
3880
3880
  'security-gateway': {
3881
3881
  'dynamically-assigned-ip': false,
3882
3882
  'activation-key': 'aaaa',
@@ -4305,7 +4305,7 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
4305
4305
  3
4306
4306
  ],
4307
4307
  authentication: {
4308
- password: 'Abcd#123',
4308
+ password: samProps.authentication.password,
4309
4309
  protocol: 'SHA256'
4310
4310
  },
4311
4311
  name: 'test6'
@@ -4366,12 +4366,12 @@ describe('[integration] Checkpoint_gaia Adapter Test', () => {
4366
4366
  const uSMSetsnmpuserBodyParam = {
4367
4367
  'allowed-virtual-systems': 'all',
4368
4368
  authentication: {
4369
- password: 'Abcd#123',
4369
+ password: samProps.authentication.password,
4370
4370
  protocol: 'SHA256'
4371
4371
  },
4372
4372
  name: 'test3',
4373
4373
  privacy: {
4374
- password: 'Abcd#123',
4374
+ password: samProps.authentication.password,
4375
4375
  protocol: 'AES'
4376
4376
  }
4377
4377
  };
@@ -323,7 +323,7 @@ describe('[unit] Checkpoint_gaia Adapter Test', () => {
323
323
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
324
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
325
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.13.1', packageDotJson.dependencies.winston);
326
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
327
  done();
328
328
  } catch (error) {
329
329
  log.error(`Test Failure: ${error}`);
@@ -561,7 +561,7 @@ describe('[unit] Checkpoint_gaia Adapter Test', () => {
561
561
  log.error(`Adapter Exception: ${error}`);
562
562
  done(error);
563
563
  }
564
- });
564
+ }).timeout(attemptTimeout);
565
565
  });
566
566
 
567
567
  describe('propertiesSchema.json', () => {