@itentialopensource/adapter-godaddy 0.3.2 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.3.4 [10-14-2024]
3
+
4
+ * Changes made at 2024.10.14_19:46PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-godaddy!13
7
+
8
+ ---
9
+
10
+ ## 0.3.3 [08-26-2024]
11
+
12
+ * update dependencies and metadata
13
+
14
+ See merge request itentialopensource/adapters/adapter-godaddy!11
15
+
16
+ ---
17
+
2
18
  ## 0.3.2 [08-14-2024]
3
19
 
4
20
  * Changes made at 2024.08.14_17:52PM
package/TAB2.md CHANGED
@@ -54,7 +54,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
54
54
 
55
55
  ```json
56
56
  "properties": {
57
- "host": "api.godaddy.com",
57
+ "host": "localhost",
58
58
  "port": 443,
59
59
  "choosepath": "",
60
60
  "base_path": "/",
@@ -67,6 +67,8 @@ Sample Properties can be used to help you configure the adapter in the Itential
67
67
  "protocol": "https",
68
68
  "authentication": {
69
69
  "auth_method": "static_token",
70
+ "username": "username",
71
+ "password": "password",
70
72
  "token": "api_key:api_secret",
71
73
  "token_timeout": 600000,
72
74
  "token_cache": "local",
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-godaddy",
3
3
  "webName": "Adapter for Integration to GoDaddy",
4
+ "supportLevel": "community",
4
5
  "vendor": "GoDaddy",
5
6
  "product": "GoDaddy",
7
+ "techAlliance": false,
6
8
  "osVersions": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -52,7 +54,7 @@
52
54
  "storeLink": "",
53
55
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-godaddy",
54
56
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-godaddy",
55
- "docLink": "",
57
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-godaddy/-/blob/master/README.md?ref_type=heads",
56
58
  "demoLinks": [],
57
59
  "trainingLinks": [
58
60
  {
@@ -63,7 +65,7 @@
63
65
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
64
66
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
65
67
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
66
- "webLink": "",
68
+ "webLink": "https://www.itential.com/adapters/godaddy/",
67
69
  "vendorLink": "https://www.godaddy.com/",
68
70
  "productLink": "https://www.godaddy.com/",
69
71
  "apiLinks": [
@@ -84,7 +86,5 @@
84
86
  "workflowProjects": [],
85
87
  "transformationProjects": [],
86
88
  "exampleProjects": []
87
- },
88
- "supportLevel": "community",
89
- "techAlliance": false
89
+ }
90
90
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-godaddy",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "This adapter integrates with system described as: GoDaddy REST API v1 and v2.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.67.20",
7
+ "engineVersion": "1.68.2",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -51,7 +51,7 @@
51
51
  "author": "Itential",
52
52
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-godaddy#readme",
53
53
  "dependencies": {
54
- "@itentialopensource/adapter-utils": "^5.6.0",
54
+ "@itentialopensource/adapter-utils": "^5.9.4",
55
55
  "acorn": "^8.12.1",
56
56
  "ajv": "^8.17.1",
57
57
  "axios": "^1.7.4",
@@ -66,7 +66,7 @@
66
66
  "prompts": "^2.4.2",
67
67
  "readline-sync": "^1.4.10",
68
68
  "semver": "^7.6.3",
69
- "winston": "^3.13.1"
69
+ "winston": "^3.14.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "chai": "^4.3.7",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.2.3",
2
+ "version": "0.3.2",
3
3
  "configLines": 17661,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 10598,
6
- "testLines": 9078,
7
- "testCases": 463,
8
- "totalCodeLines": 21459,
6
+ "testLines": 9062,
7
+ "testCases": 462,
8
+ "totalCodeLines": 21443,
9
9
  "wfTasks": 115
10
10
  }
@@ -2,7 +2,7 @@
2
2
  "id": "Adapter-godaddy",
3
3
  "type": "Godaddy",
4
4
  "properties": {
5
- "host": "api.godaddy.com",
5
+ "host": "localhost",
6
6
  "port": 443,
7
7
  "choosepath": "",
8
8
  "base_path": "/",
@@ -15,6 +15,8 @@
15
15
  "protocol": "https",
16
16
  "authentication": {
17
17
  "auth_method": "static_token",
18
+ "username": "username",
19
+ "password": "password",
18
20
  "token": "api_key:api_secret",
19
21
  "token_timeout": 600000,
20
22
  "token_cache": "local",
@@ -133,7 +135,7 @@
133
135
  "ostypePrefix": "meraki-",
134
136
  "port": "{port}",
135
137
  "ipaddress": "{ip_addr}",
136
- "serial" : "{serial}"
138
+ "serial": "{serial}"
137
139
  }
138
140
  }
139
141
  ],
@@ -159,7 +161,7 @@
159
161
  "ostypePrefix": "meraki-",
160
162
  "port": "{port}",
161
163
  "ipaddress": "{ip_addr}",
162
- "serial" : "{serial}",
164
+ "serial": "{serial}",
163
165
  "id": "{myid}"
164
166
  }
165
167
  }
@@ -243,7 +245,7 @@
243
245
  "ostypePrefix": "meraki-",
244
246
  "port": "{port}",
245
247
  "ipaddress": "{ip_addr}",
246
- "serial" : "{serial}",
248
+ "serial": "{serial}",
247
249
  "id": "{myid}"
248
250
  }
249
251
  }
@@ -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,
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  if (samProps.request.attempt_timeout < 30000) {
47
51
  samProps.request.attempt_timeout = 30000;
48
52
  }
@@ -2538,7 +2542,7 @@ describe('[integration] Godaddy Adapter Test', () => {
2538
2542
  });
2539
2543
 
2540
2544
  const shoppersChangePasswordBodyParam = {
2541
- secret: 'P@55w0rd+'
2545
+ secret: samProps.authentication.password
2542
2546
  };
2543
2547
  describe('#changePassword - errors', () => {
2544
2548
  it('should work if integrated but since no mockdata should error when run standalone', (done) => {
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  samProps.request.attempt_timeout = 1200000;
47
51
  const attemptTimeout = samProps.request.attempt_timeout;
48
52
  const { stub } = samProps;
@@ -323,7 +327,7 @@ describe('[unit] Godaddy Adapter Test', () => {
323
327
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
328
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
329
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.13.1', packageDotJson.dependencies.winston);
330
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
331
  done();
328
332
  } catch (error) {
329
333
  log.error(`Test Failure: ${error}`);
@@ -1,9 +0,0 @@
1
- {
2
- "ComplianceEntries": [
3
- {
4
- "name": "Compliance Summary",
5
- "numInvalidProjects": 0,
6
- "numValidProjects": 0
7
- }
8
- ]
9
- }
@@ -1,5 +0,0 @@
1
- ---------------------------------------------------------------------------------------------
2
- **** Project Compliance Summary ****
3
- 0 project(s) are not valid
4
- 0 project(s) are valid
5
- ---------------------------------------------------------------------------------------------