@itentialopensource/adapter-godaddy 0.3.1 → 0.3.3
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 +16 -0
- package/TAB2.md +3 -1
- package/metadata.json +8 -5
- package/package.json +6 -6
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +6 -4
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +12 -8
- package/test/unit/adapterTestUnit.js +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.3.3 [08-26-2024]
|
|
3
|
+
|
|
4
|
+
* update dependencies and metadata
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-godaddy!11
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.3.2 [08-14-2024]
|
|
11
|
+
|
|
12
|
+
* Changes made at 2024.08.14_17:52PM
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-godaddy!10
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.3.1 [08-07-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.06_19:06PM
|
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": "
|
|
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": [
|
|
@@ -72,7 +74,9 @@
|
|
|
72
74
|
"link": "https://developer.godaddy.com/doc",
|
|
73
75
|
"public": true
|
|
74
76
|
}
|
|
75
|
-
]
|
|
77
|
+
],
|
|
78
|
+
"workshopLinks": [],
|
|
79
|
+
"workshopHomePage": "https://www.itential.com/get-started/"
|
|
76
80
|
},
|
|
77
81
|
"assets": [],
|
|
78
82
|
"relatedItems": {
|
|
@@ -82,6 +86,5 @@
|
|
|
82
86
|
"workflowProjects": [],
|
|
83
87
|
"transformationProjects": [],
|
|
84
88
|
"exampleProjects": []
|
|
85
|
-
}
|
|
86
|
-
"supportLevel": "community"
|
|
89
|
+
}
|
|
87
90
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-godaddy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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.
|
|
7
|
+
"engineVersion": "1.68.2",
|
|
8
8
|
"adapterType": "http",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"author": "Itential",
|
|
52
52
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-godaddy#readme",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
54
|
+
"@itentialopensource/adapter-utils": "^5.7.0",
|
|
55
55
|
"acorn": "^8.12.1",
|
|
56
56
|
"ajv": "^8.17.1",
|
|
57
|
-
"axios": "^1.7.
|
|
57
|
+
"axios": "^1.7.4",
|
|
58
58
|
"commander": "^11.0.0",
|
|
59
59
|
"dns-lookup-promise": "^1.0.4",
|
|
60
60
|
"fs-extra": "^11.2.0",
|
|
61
61
|
"json-query": "^2.2.2",
|
|
62
|
-
"mocha": "^10.7.
|
|
62
|
+
"mocha": "^10.7.3",
|
|
63
63
|
"mocha-param": "^2.0.1",
|
|
64
64
|
"mongodb": "^4.16.0",
|
|
65
65
|
"ping": "^0.4.4",
|
|
66
66
|
"prompts": "^2.4.2",
|
|
67
67
|
"readline-sync": "^1.4.10",
|
|
68
68
|
"semver": "^7.6.3",
|
|
69
|
-
"winston": "^3.
|
|
69
|
+
"winston": "^3.14.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"chai": "^4.3.7",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2
|
|
2
|
+
"version": "0.3.2",
|
|
3
3
|
"configLines": 17661,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 10598,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 9062,
|
|
7
|
+
"testCases": 462,
|
|
8
|
+
"totalCodeLines": 21443,
|
|
9
9
|
"wfTasks": 115
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "Adapter-godaddy",
|
|
3
3
|
"type": "Godaddy",
|
|
4
4
|
"properties": {
|
|
5
|
-
"host": "
|
|
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"
|
|
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"
|
|
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"
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
samProps.
|
|
42
|
-
samProps.
|
|
43
|
-
samProps.
|
|
44
|
-
samProps.
|
|
45
|
-
samProps.
|
|
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:
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
samProps.
|
|
42
|
-
samProps.
|
|
43
|
-
samProps.
|
|
44
|
-
samProps.
|
|
45
|
-
samProps.
|
|
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;
|
|
@@ -315,15 +319,15 @@ describe('[unit] Godaddy Adapter Test', () => {
|
|
|
315
319
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
316
320
|
assert.notEqual('', packageDotJson.dependencies);
|
|
317
321
|
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
|
318
|
-
assert.equal('^1.7.
|
|
322
|
+
assert.equal('^1.7.4', packageDotJson.dependencies.axios);
|
|
319
323
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
320
324
|
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
|
321
|
-
assert.equal('^10.7.
|
|
325
|
+
assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
|
|
322
326
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
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.
|
|
330
|
+
assert.equal('^3.14.2', packageDotJson.dependencies.winston);
|
|
327
331
|
done();
|
|
328
332
|
} catch (error) {
|
|
329
333
|
log.error(`Test Failure: ${error}`);
|