@itentialopensource/adapter-amazon_route53 0.3.2 → 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 CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.3.3 [01-27-2024]
3
+
4
+ * make changes non breaking
5
+
6
+ See merge request itentialopensource/adapters/cloud/adapter-amazon_route53!9
7
+
8
+ ---
9
+
2
10
  ## 0.3.2 [12-26-2023]
3
11
 
4
12
  * update axios and metadata
package/adapter.js CHANGED
@@ -18,6 +18,7 @@ const callOptions = {
18
18
  response: 'XML2JSON'
19
19
  }
20
20
  };
21
+ const authMethod = 'aws_authentication';
21
22
 
22
23
  /* Fetch in the other needed components for the this Adaptor */
23
24
  const AdapterBaseCl = require(path.join(__dirname, 'adapterBase.js'));
@@ -32,11 +33,24 @@ class AmazonRoute53 extends AdapterBaseCl {
32
33
  * AmazonRoute53 Adapter
33
34
  * @constructor
34
35
  */
35
- /* Working on changing the way we do Emit methods due to size and time constrainsts
36
36
  constructor(prongid, properties) {
37
+ // make sure properties are set - so that we do not break
38
+ const myProperties = properties;
39
+
40
+ // service should exist and be ec2
41
+ if (myProperties && !myProperties.service) {
42
+ myProperties.service = callOptions.service;
43
+ }
44
+ // auth_method should now be aws_authentication
45
+ if (myProperties && myProperties.authentication && (!myProperties.authentication.auth_method
46
+ || myProperties.authentication.auth_method === 'no_authentication')) {
47
+ myProperties.authentication.auth_method = authMethod;
48
+ }
49
+
37
50
  // Instantiate the AdapterBase super class
38
- super(prongid, properties);
51
+ super(prongid, myProperties);
39
52
 
53
+ /*
40
54
  const restFunctionNames = this.iapGetAdapterWorkflowFunctions();
41
55
 
42
56
  // Dynamically bind emit functions
@@ -72,8 +86,8 @@ class AmazonRoute53 extends AdapterBaseCl {
72
86
  // if (this.allProps && this.allProps.myownproperty) {
73
87
  // mypropvariable = this.allProps.myownproperty;
74
88
  // }
89
+ */
75
90
  }
76
- */
77
91
 
78
92
  /**
79
93
  * @callback healthCallback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-amazon_route53",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "This adapter integrates with system described as: Amazon Route53.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Amazon AWS Route53",
@@ -59,7 +59,7 @@
59
59
  "@itentialopensource/adapter-utils": "^5.3.0",
60
60
  "acorn": "^8.10.0",
61
61
  "ajv": "^8.12.0",
62
- "axios": "^1.6.2",
62
+ "axios": "^1.6.5",
63
63
  "commander": "^11.0.0",
64
64
  "dns-lookup-promise": "^1.0.4",
65
65
  "fs-extra": "^11.1.1",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.3.1",
2
+ "version": "0.3.2",
3
3
  "configLines": 9893,
4
4
  "scriptLines": 1783,
5
- "codeLines": 9278,
5
+ "codeLines": 9292,
6
6
  "testLines": 6945,
7
7
  "testCases": 354,
8
- "totalCodeLines": 18006,
8
+ "totalCodeLines": 18020,
9
9
  "wfTasks": 153
10
10
  }
@@ -316,7 +316,7 @@ describe('[unit] Amazon_route53 Adapter Test', () => {
316
316
  assert.notEqual(null, packageDotJson.dependencies);
317
317
  assert.notEqual('', packageDotJson.dependencies);
318
318
  assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
319
- assert.equal('^1.6.2', packageDotJson.dependencies.axios);
319
+ assert.equal('^1.6.5', packageDotJson.dependencies.axios);
320
320
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
321
321
  assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
322
322
  assert.equal('^10.2.0', packageDotJson.dependencies.mocha);