@sap-cloud-sdk/test-util 1.54.1-20220202135529.0 → 1.54.1
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/README.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
<a href="https://sap.com/s4sdk"><img src="https://help.sap.com/doc/2324e9c3b28748a4ae2ad08166d77675/1.0/en-US/logo-with-js.svg" alt="SAP Cloud SDK for JavaScript Logo" height="122.92" width="226.773"/></a>
|
|
4
4
|
<!-- sap-cloud-sdk-logo-stop -->
|
|
5
5
|
|
|
6
|
+
<!-- sap-cloud-sdk-2.0-announcement -->
|
|
7
|
+
<!-- This block is inserted by scripts/replace-common-readme.ts. Do not adjust it manually. -->
|
|
8
|
+
# Version 2 Release
|
|
9
|
+
|
|
10
|
+
The SAP Cloud SDK has released version 2.
|
|
11
|
+
Check the [upgrade guide](https://sap.github.io/cloud-sdk/docs/js/guides/upgrade-to-version-2) for more details.
|
|
12
|
+
Make sure you understand our [release policy](https://sap.github.io/cloud-sdk/docs/js/release-policy).
|
|
13
|
+
<!-- sap-cloud-sdk-2.0-announcement-stop -->
|
|
14
|
+
|
|
6
15
|
# @sap-cloud-sdk/test-util
|
|
7
16
|
|
|
8
17
|
This package contains utility functions for testing, like loading credentials or creating test destinations.
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
|
-
for (var i = 0,
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6
10
|
};
|
|
7
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
12
|
exports.unmockAllTestDestinations = exports.mockAllTestDestinations = exports.unmockTestDestination = exports.setTestDestination = exports.mockTestDestination = void 0;
|
|
@@ -15,7 +19,7 @@ var test_destination_provider_1 = require("./test-destination-provider");
|
|
|
15
19
|
* @param options - References to the `systems.json` and `credentials.json` files
|
|
16
20
|
*/
|
|
17
21
|
function mockTestDestination(name, options) {
|
|
18
|
-
var mockedDestination = test_destination_provider_1.getTestDestinationByAlias(name, options);
|
|
22
|
+
var mockedDestination = (0, test_destination_provider_1.getTestDestinationByAlias)(name, options);
|
|
19
23
|
setTestDestination(mockedDestination);
|
|
20
24
|
}
|
|
21
25
|
exports.mockTestDestination = mockTestDestination;
|
|
@@ -39,7 +43,7 @@ function setTestDestination(destination) {
|
|
|
39
43
|
}
|
|
40
44
|
validateNameAvailable(destination.name, existingNames);
|
|
41
45
|
destination.isTestDestination = true;
|
|
42
|
-
setDestinationsInEnv(__spreadArray(__spreadArray([], currentDestinations), [destination]));
|
|
46
|
+
setDestinationsInEnv(__spreadArray(__spreadArray([], currentDestinations, true), [destination], false));
|
|
43
47
|
}
|
|
44
48
|
exports.setTestDestination = setTestDestination;
|
|
45
49
|
/**
|
|
@@ -60,7 +64,7 @@ exports.unmockTestDestination = unmockTestDestination;
|
|
|
60
64
|
* @param options - References to the `systems.json` and `credentials.json` files
|
|
61
65
|
*/
|
|
62
66
|
function mockAllTestDestinations(options) {
|
|
63
|
-
var testDestinations = test_destination_provider_1.getTestDestinations(options);
|
|
67
|
+
var testDestinations = (0, test_destination_provider_1.getTestDestinations)(options);
|
|
64
68
|
var currentDestinations = getDestinationsFromEnv();
|
|
65
69
|
var existingNames = new Set(currentDestinations.map(function (dest) {
|
|
66
70
|
if (!dest.name) {
|
|
@@ -91,7 +95,7 @@ function unmockAllTestDestinations() {
|
|
|
91
95
|
exports.unmockAllTestDestinations = unmockAllTestDestinations;
|
|
92
96
|
function validateNameAvailable(destinationName, existingNames) {
|
|
93
97
|
if (existingNames.has(destinationName)) {
|
|
94
|
-
throw new Error("Parsing mocked destinations failed, destination with name \""
|
|
98
|
+
throw new Error("Parsing mocked destinations failed, destination with name \"".concat(destinationName, "\" already exists in the \"destinations\" environment variables."));
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
function setDestinationsInEnv(destinations) {
|
|
@@ -103,7 +107,7 @@ function getDestinationsFromEnv() {
|
|
|
103
107
|
return JSON.parse(envDestinations);
|
|
104
108
|
}
|
|
105
109
|
catch (error) {
|
|
106
|
-
throw new Error("Destinations environment variable cannot be read: "
|
|
110
|
+
throw new Error("Destinations environment variable cannot be read: ".concat(error.message));
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
//# sourceMappingURL=test-destination-mocker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-destination-mocker.js","sourceRoot":"","sources":["../src/test-destination-mocker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-destination-mocker.js","sourceRoot":"","sources":["../src/test-destination-mocker.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yEAIqC;AAErC;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,IAAY,EACZ,OAAmC;IAEnC,IAAM,iBAAiB,GAAG,IAAA,qDAAyB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;AACxC,CAAC;AAND,kDAMC;AAED;;;;;;GAMG;AACH,SAAgB,kBAAkB,CAAC,WAAwB;IACzD,IAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;IACrD,IAAM,aAAa,GAAG,IAAI,GAAG,CAC3B,mBAAmB,CAAC,GAAG,CAAC,UAAA,IAAI;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,MAAM,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACnD;QACD,OAAO,IA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AC,IAAI,EAAE,aAAa,CAAC,CAAC;QAChD,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;AAC5C,CAAC;AAvBD,0DAuBC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB;IACvC,IAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;IACrD,IAAM,mBAAmB,GAAG,mBAAmB,CAAC,MAAM,CACpD,UAAA,WAAW,IAAI,OAAA,CAAC,WAAW,CAAC,iBAAiB,EAA9B,CAA8B,CAC9C,CAAC;IACF,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;AAC5C,CAAC;AAND,8DAMC;AAED,SAAS,qBAAqB,CAC5B,eAAuB,EACvB,aAA0B;IAE1B,IAAI,aAAa,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,sEAA8D,eAAe,qEAA+D,CAC7I,CAAC;KACH;AACH,CAAC;AAED,SAAS,oBAAoB,CAAC,YAA2B;IACvD,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,sBAAsB;IAC7B,IAAI;QACF,IAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KACpC;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CACb,4DAAqD,KAAK,CAAC,OAAO,CAAE,CACrE,CAAC;KACH;AACH,CAAC"}
|
|
@@ -15,7 +15,7 @@ exports.getTestDestinations = exports.getTestDestinationByAlias = void 0;
|
|
|
15
15
|
var fs_1 = require("fs");
|
|
16
16
|
var path_1 = require("path");
|
|
17
17
|
var util_1 = require("@sap-cloud-sdk/util");
|
|
18
|
-
var logger = util_1.createLogger({
|
|
18
|
+
var logger = (0, util_1.createLogger)({
|
|
19
19
|
package: 'test-util',
|
|
20
20
|
messageContext: 'test-destination-provider'
|
|
21
21
|
});
|
|
@@ -40,9 +40,9 @@ function getTestDestinationByAlias(alias, options) {
|
|
|
40
40
|
var destinations = getTestDestinations(options);
|
|
41
41
|
var matchingDestination = destinations.find(function (d) { return d.name === alias; });
|
|
42
42
|
if (!matchingDestination) {
|
|
43
|
-
throw new Error("Couldn't find destination that matches the provided name \""
|
|
43
|
+
throw new Error("Couldn't find destination that matches the provided name \"".concat(alias, "\".\n The following destinations could be found: ").concat(destinations
|
|
44
44
|
.map(function (d) { return d.name; })
|
|
45
|
-
.join(', '));
|
|
45
|
+
.join(', ')));
|
|
46
46
|
}
|
|
47
47
|
return matchingDestination;
|
|
48
48
|
}
|
|
@@ -67,29 +67,29 @@ function getTestDestinations(options) {
|
|
|
67
67
|
exports.getTestDestinations = getTestDestinations;
|
|
68
68
|
function readSystemsOrFail(options) {
|
|
69
69
|
if (options && options.systemsFilePath) {
|
|
70
|
-
if (!fs_1.existsSync(options.systemsFilePath)) {
|
|
71
|
-
throw new Error("The provided path ("
|
|
70
|
+
if (!(0, fs_1.existsSync)(options.systemsFilePath)) {
|
|
71
|
+
throw new Error("The provided path (".concat(options.systemsFilePath, ") to the systems file is invalid!"));
|
|
72
72
|
}
|
|
73
73
|
return readSystems(options.systemsFilePath).systems;
|
|
74
74
|
}
|
|
75
75
|
var foundPath = findFileSearchingUpwards(process.cwd(), SYSTEMS_FILE);
|
|
76
76
|
if (!foundPath) {
|
|
77
|
-
throw new Error("No "
|
|
77
|
+
throw new Error("No ".concat(SYSTEMS_FILE, " could be found when searching in directory ").concat(process.cwd(), " and upwards and no paths have been provided directly. ").concat(formatSystemJson));
|
|
78
78
|
}
|
|
79
|
-
return readSystems(path_1.join(foundPath, SYSTEMS_FILE)).systems;
|
|
79
|
+
return readSystems((0, path_1.join)(foundPath, SYSTEMS_FILE)).systems;
|
|
80
80
|
}
|
|
81
81
|
function readCredentialsOrFail(options) {
|
|
82
82
|
if (options && options.credentialsFilePath) {
|
|
83
|
-
if (fs_1.existsSync(options.credentialsFilePath)) {
|
|
83
|
+
if ((0, fs_1.existsSync)(options.credentialsFilePath)) {
|
|
84
84
|
return readCredentials(options.credentialsFilePath).credentials;
|
|
85
85
|
}
|
|
86
|
-
throw new Error("The provided path ("
|
|
86
|
+
throw new Error("The provided path (".concat(options.credentialsFilePath, ") to the credentials file is invalid!"));
|
|
87
87
|
}
|
|
88
88
|
var foundPath = findFileSearchingUpwards(process.cwd(), CREDENTIALS_FILE);
|
|
89
|
-
if (foundPath && fs_1.existsSync(path_1.join(foundPath, CREDENTIALS_FILE))) {
|
|
90
|
-
return readCredentials(path_1.join(foundPath, CREDENTIALS_FILE)).credentials;
|
|
89
|
+
if (foundPath && (0, fs_1.existsSync)((0, path_1.join)(foundPath, CREDENTIALS_FILE))) {
|
|
90
|
+
return readCredentials((0, path_1.join)(foundPath, CREDENTIALS_FILE)).credentials;
|
|
91
91
|
}
|
|
92
|
-
logger.warn("No path to a "
|
|
92
|
+
logger.warn("No path to a ".concat(CREDENTIALS_FILE, " provided and none found next to ").concat(foundPath).concat(path_1.sep).concat(SYSTEMS_FILE, ". Proceeding without credentials."));
|
|
93
93
|
return [];
|
|
94
94
|
}
|
|
95
95
|
function mergeSystemsAndCredentials(systems, credentials) {
|
|
@@ -106,26 +106,26 @@ function toDestinations(systemsAndCredentials) {
|
|
|
106
106
|
}); });
|
|
107
107
|
}
|
|
108
108
|
function findFileSearchingUpwards(dir, fileName) {
|
|
109
|
-
var files = fs_1.readdirSync(dir);
|
|
109
|
+
var files = (0, fs_1.readdirSync)(dir);
|
|
110
110
|
// TODO: use util method to find proper project root instead of the overall root
|
|
111
|
-
var rootPath = path_1.parse(process.cwd()).root;
|
|
111
|
+
var rootPath = (0, path_1.parse)(process.cwd()).root;
|
|
112
112
|
if (files.includes(fileName)) {
|
|
113
113
|
return dir;
|
|
114
114
|
}
|
|
115
115
|
if (dir === rootPath) {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
|
-
var oneDirUp = path_1.resolve(dir, '..');
|
|
118
|
+
var oneDirUp = (0, path_1.resolve)(dir, '..');
|
|
119
119
|
return findFileSearchingUpwards(oneDirUp, fileName);
|
|
120
120
|
}
|
|
121
121
|
function readSystems(filePath) {
|
|
122
122
|
var systemfile = readJson(filePath);
|
|
123
123
|
if (!systemfile.systems || systemfile.systems.length === 0) {
|
|
124
|
-
throw new Error("No systems provided in "
|
|
124
|
+
throw new Error("No systems provided in ".concat(filePath, ".\n If you do not want to define systems just remove the file. ").concat(formatSystemJson));
|
|
125
125
|
}
|
|
126
126
|
systemfile.systems.forEach(function (system) {
|
|
127
127
|
if (!system.alias || !system.uri) {
|
|
128
|
-
throw new Error("A system in "
|
|
128
|
+
throw new Error("A system in ".concat(filePath, " is not valid - Mandatory alias or url missing.\n Broken entry is: ").concat(JSON.stringify(system), ". ").concat(formatSystemJson));
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
return systemfile;
|
|
@@ -134,11 +134,11 @@ function readCredentials(filePath) {
|
|
|
134
134
|
var credentialsFile = readJson(filePath);
|
|
135
135
|
if (!credentialsFile.credentials ||
|
|
136
136
|
credentialsFile.credentials.length === 0) {
|
|
137
|
-
throw new Error("No credentials provided in "
|
|
137
|
+
throw new Error("No credentials provided in ".concat(filePath, ".\n If you do not want to define credentials just remove the file. ").concat(formatCredentials));
|
|
138
138
|
}
|
|
139
139
|
credentialsFile.credentials.forEach(function (cred) {
|
|
140
140
|
if (!cred.alias || !cred.username || !cred.password) {
|
|
141
|
-
throw new Error("A credential in "
|
|
141
|
+
throw new Error("A credential in ".concat(filePath, " is not valid - Mandatory alias, username or password missing.\n Broken entry is: ").concat(JSON.stringify(cred), ". ").concat(formatCredentials));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
return credentialsFile;
|
|
@@ -146,16 +146,16 @@ function readCredentials(filePath) {
|
|
|
146
146
|
function readJson(filePath) {
|
|
147
147
|
var content;
|
|
148
148
|
try {
|
|
149
|
-
content = fs_1.readFileSync(filePath, 'utf8');
|
|
149
|
+
content = (0, fs_1.readFileSync)(filePath, 'utf8');
|
|
150
150
|
}
|
|
151
151
|
catch (error) {
|
|
152
|
-
throw new Error("Failed to read file at path: "
|
|
152
|
+
throw new Error("Failed to read file at path: ".concat(filePath, ".\n Original error: ").concat(error.message));
|
|
153
153
|
}
|
|
154
154
|
try {
|
|
155
155
|
return JSON.parse(content);
|
|
156
156
|
}
|
|
157
157
|
catch (error) {
|
|
158
|
-
throw new Error("File read from path "
|
|
158
|
+
throw new Error("File read from path ".concat(filePath, " is not valid JSON.\n Original error: ").concat(error.message));
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
//# sourceMappingURL=test-destination-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-destination-provider.js","sourceRoot":"","sources":["../src/test-destination-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yBAA2D;AAC3D,6BAAiD;AAEjD,4CAAmD;AAEnD,IAAM,MAAM,GAAG,mBAAY,
|
|
1
|
+
{"version":3,"file":"test-destination-provider.js","sourceRoot":"","sources":["../src/test-destination-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yBAA2D;AAC3D,6BAAiD;AAEjD,4CAAmD;AAEnD,IAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,2BAA2B;CAC5C,CAAC,CAAC;AAEH,IAAM,YAAY,GAAG,cAAc,CAAC;AACpC,IAAM,gBAAgB,GAAG,kBAAkB,CAAC;AA2B5C,IAAM,gBAAgB,GAAG,oRASvB,CAAC;AAEH,IAAM,iBAAiB,GAAG,iRASxB,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,SAAgB,yBAAyB,CACvC,KAAa,EACb,OAAmC;IAEnC,IAAM,Y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1
|
{
|
|
2
2
|
"name": "@sap-cloud-sdk/test-util",
|
|
3
|
-
"version": "1.54.1
|
|
3
|
+
"version": "1.54.1",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript test utilities",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"check:dependencies": "depcheck ."
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@sap-cloud-sdk/core": "^1.54.1
|
|
34
|
-
"@sap-cloud-sdk/util": "^1.54.1
|
|
33
|
+
"@sap-cloud-sdk/core": "^1.54.1",
|
|
34
|
+
"@sap-cloud-sdk/util": "^1.54.1",
|
|
35
35
|
"mock-fs": "^5.0.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "062ffe14e7b026fd0876eb90b7940077271fe099"
|
|
38
38
|
}
|