@mimik/local 4.4.1 → 4.4.5
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/index.js +8 -4
- package/lib/tasks.js +3 -3
- package/manual-test/startTest-example.json +1 -1
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -195,7 +195,7 @@ colors.setTheme({
|
|
|
195
195
|
|
|
196
196
|
const mSTInit = (confType) => {
|
|
197
197
|
const { regType, startConfig } = getStartParams(confType);
|
|
198
|
-
const config = init(regType);
|
|
198
|
+
const config = init(regType, false, true);
|
|
199
199
|
const start = startSetup(config, startConfig);
|
|
200
200
|
|
|
201
201
|
getAPI(start.SWAGGER_FILE_DIRECTORY || defaultDirectory, config.pack.swaggerFile.account, config.pack.swaggerFile.name, config.pack.swaggerFile.version, config.key.apiKey)
|
|
@@ -219,7 +219,7 @@ const mSTInit = (confType) => {
|
|
|
219
219
|
|
|
220
220
|
const mITInit = (confType) => {
|
|
221
221
|
const { regType, startConfig } = getStartParams(confType);
|
|
222
|
-
const config = init(regType, startConfig.standAlone);
|
|
222
|
+
const config = init(regType, startConfig.standAlone, true);
|
|
223
223
|
const { mSTBaseUrl } = config;
|
|
224
224
|
const { type } = config.pack.mimik;
|
|
225
225
|
let start = startSetup(config, startConfig);
|
|
@@ -282,7 +282,11 @@ const mITInit = (confType) => {
|
|
|
282
282
|
|
|
283
283
|
const serverInit = (confType) => {
|
|
284
284
|
const { regType, startConfig } = getStartParams(confType);
|
|
285
|
-
|
|
285
|
+
|
|
286
|
+
const standAlone = startConfig.standAlone === 'yes';
|
|
287
|
+
const isMSTSet = startConfig.MST_SET !== 'off';
|
|
288
|
+
|
|
289
|
+
const config = init(regType, standAlone, isMSTSet);
|
|
286
290
|
const { mSTBaseUrl, customer } = config;
|
|
287
291
|
const { type } = config.pack.mimik;
|
|
288
292
|
let start = startSetup(config, startConfig);
|
|
@@ -292,7 +296,7 @@ const serverInit = (confType) => {
|
|
|
292
296
|
.then((apiFile) => {
|
|
293
297
|
console.log('- mST base url: ' + `${mSTBaseUrl}`.info);
|
|
294
298
|
console.log('- mIT base url: ' + config.MITBaseUrl.info);
|
|
295
|
-
if (
|
|
299
|
+
if (standAlone || !isMSTSet) {
|
|
296
300
|
console.log('- service ' + type.info + ' is in ' + 'stand alone'.warn + ' mode');
|
|
297
301
|
start = settingUpDummyServer(type, start.SERVER_ID, customer, start);
|
|
298
302
|
if (confType === TEST) {
|
package/lib/tasks.js
CHANGED
|
@@ -81,7 +81,7 @@ const getStartParams = (confType) => {
|
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
const init = (regType, standAlone) => {
|
|
84
|
+
const init = (regType, standAlone, isMSTSet) => {
|
|
85
85
|
const pack = retrieve(regType, packageFile);
|
|
86
86
|
const sumoLog = retrieve(regType, sumoLogFile, { default: DEFAULT_SUMOLOG });
|
|
87
87
|
const s3Log = retrieve(regType, s3LogFile, { default: DEFAULT_S3LOG });
|
|
@@ -100,8 +100,8 @@ const init = (regType, standAlone) => {
|
|
|
100
100
|
key,
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
if (pack.mimik.type !== TOKEN_SERVICE && pack.mimik.type !== IT_REGISTRY) config.customer = retrieve(regType, customerConfigFile); // we don't need customer for mST or mIT
|
|
104
|
-
if (standAlone
|
|
103
|
+
if (isMSTSet && pack.mimik.type !== TOKEN_SERVICE && pack.mimik.type !== IT_REGISTRY) config.customer = retrieve(regType, customerConfigFile); // we don't need customer for mST or mIT
|
|
104
|
+
if (standAlone || !isMSTSet) {
|
|
105
105
|
config.mST = DUMMY_MST;
|
|
106
106
|
console.log('- using ' + 'dummy mSTConfig'.warn);
|
|
107
107
|
config.mIT = DUMMY_MIT;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"CONSOLE_LEVEL": "info",
|
|
3
3
|
"NO_STACK": "no",
|
|
4
4
|
"LOG_MODE": "all",
|
|
5
|
-
// Required by
|
|
5
|
+
// Required by @mimik/test-helper if USE_MOCK_PROFILES is "no":
|
|
6
6
|
// "MST_TOKEN": "mST-token",
|
|
7
7
|
"USE_MOCK_PROFILES": "yes"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/local",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.5",
|
|
4
4
|
"description": "Local setup configuration for normal and test opreration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@mimik/eslint-plugin-dependencies": "2.4.1",
|
|
32
|
-
"@mimik/eslint-plugin-document-env": "1.0.
|
|
33
|
-
"@mimik/git-hooks": "1.5.
|
|
32
|
+
"@mimik/eslint-plugin-document-env": "1.0.1",
|
|
33
|
+
"@mimik/git-hooks": "1.5.3",
|
|
34
34
|
"axios": "0.24.0",
|
|
35
35
|
"bluebird": "3.7.2",
|
|
36
36
|
"chai": "4.3.4",
|
|
37
37
|
"colors": "1.4.0",
|
|
38
38
|
"comment-json": "4.1.1",
|
|
39
39
|
"debug": "4.3.3",
|
|
40
|
-
"eslint": "8.
|
|
40
|
+
"eslint": "8.7.0",
|
|
41
41
|
"eslint-config-airbnb": "18.2.1",
|
|
42
|
-
"eslint-plugin-import": "2.25.
|
|
42
|
+
"eslint-plugin-import": "2.25.4",
|
|
43
43
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
44
|
-
"eslint-plugin-react": "7.
|
|
44
|
+
"eslint-plugin-react": "7.28.0",
|
|
45
45
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
46
|
-
"fancy-log": "
|
|
46
|
+
"fancy-log": "2.0.0",
|
|
47
47
|
"gulp": "4.0.2",
|
|
48
48
|
"gulp-env": "0.4.0",
|
|
49
49
|
"gulp-eslint": "6.0.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"ip": "1.1.5",
|
|
53
53
|
"jsdoc-to-markdown": "7.1.0",
|
|
54
54
|
"lodash": "4.17.21",
|
|
55
|
-
"mocha": "9.1.
|
|
55
|
+
"mocha": "9.1.4",
|
|
56
56
|
"mochawesome": "7.0.1",
|
|
57
57
|
"nyc": "15.1.0",
|
|
58
|
-
"supertest": "6.1
|
|
58
|
+
"supertest": "6.2.1",
|
|
59
59
|
"uuid": "8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|