@verii/vnf-agent-cli 1.0.0-pre.1756100765 → 1.0.0-pre.1756224043
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/package.json +6 -5
- package/test/migrate-tenant-did.test.js +8 -3
- package/jest.config.js +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verii/vnf-agent-cli",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.1756224043",
|
|
4
4
|
"description": "A CLI application for working with VNF Agents.",
|
|
5
5
|
"repository": "https://github.com/LFDT-Verii/core",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
"vnf-agent-cli": "src/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "
|
|
12
|
-
"lint": "eslint
|
|
11
|
+
"test": "cross-env NODE_ENV=test node --test --test-concurrency=1 --experimental-test-module-mocks --experimental-test-coverage **/*.test.js --passWithNoTests",
|
|
12
|
+
"lint": "eslint --ext .js .",
|
|
13
|
+
"lint:ci": "eslint . --format json >> eslint-results.json",
|
|
13
14
|
"lint:fix": "eslint --fix --ext .js ."
|
|
14
15
|
},
|
|
15
16
|
"author": "Velocity Career Labs",
|
|
@@ -25,12 +26,12 @@
|
|
|
25
26
|
"eslint-plugin-import": "2.32.0",
|
|
26
27
|
"eslint-plugin-prettier": "4.2.5",
|
|
27
28
|
"eslint-watch": "7.0.0",
|
|
28
|
-
"
|
|
29
|
+
"expect": "29.7.0",
|
|
29
30
|
"prettier": "2.8.8"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"commander": "~13.1.0",
|
|
33
34
|
"lodash": "^4.17.21"
|
|
34
35
|
},
|
|
35
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "21747614a1db416654bba4c198d1c1b883dbe6a5"
|
|
36
37
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const { mock } = require('node:test');
|
|
1
|
+
const { describe, it, mock } = require('node:test');
|
|
2
|
+
const { expect } = require('expect');
|
|
2
3
|
const {
|
|
3
4
|
migrateTenantDid,
|
|
4
5
|
} = require('../src/migrate-tenant-did/migrate-tenant-did');
|
|
@@ -91,7 +92,9 @@ describe('migrate-tenant-did test suite', () => {
|
|
|
91
92
|
await migrateTenantDid({
|
|
92
93
|
options,
|
|
93
94
|
});
|
|
94
|
-
expect(global.fetch.mock.calls).toHaveLength(
|
|
95
|
+
expect(global.fetch.mock.calls.map((call) => call.arguments)).toHaveLength(
|
|
96
|
+
3
|
|
97
|
+
);
|
|
95
98
|
const fullRefreshUrl = `${options.endpoint}/operator-api/v0.8/tenants/refresh`;
|
|
96
99
|
const fullGetTenantsUrl = `${options.endpoint}/operator-api/v0.8/tenants`;
|
|
97
100
|
const getTenantsExpectation = [
|
|
@@ -136,7 +139,9 @@ describe('migrate-tenant-did test suite', () => {
|
|
|
136
139
|
await migrateTenantDid({
|
|
137
140
|
options,
|
|
138
141
|
});
|
|
139
|
-
expect(global.fetch.mock.calls).toHaveLength(
|
|
142
|
+
expect(global.fetch.mock.calls.map((call) => call.arguments)).toHaveLength(
|
|
143
|
+
3
|
|
144
|
+
);
|
|
140
145
|
const fullRefreshUrl = `${options.endpoint}/operator-api/v0.8/tenants/refresh`;
|
|
141
146
|
const fullGetTenantsUrl = `${options.endpoint}/operator-api/v0.8/tenants`;
|
|
142
147
|
const getTenantsExpectation = [
|
package/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023 Velocity Team
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
const jestConfig = require('../../jest.config.base');
|
|
18
|
-
const pack = require('./package.json');
|
|
19
|
-
|
|
20
|
-
module.exports = jestConfig(pack.name);
|