@skyramp/skyramp 0.4.76 → 0.4.78
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/lib/dev-darwin-amd64.dylib +0 -0
- package/lib/dev-darwin-amd64.h +11 -3
- package/lib/dev-darwin-arm64.dylib +0 -0
- package/lib/dev-darwin-arm64.h +11 -3
- package/lib/dev-linux-386.h +11 -3
- package/lib/dev-linux-386.so +0 -0
- package/lib/dev-linux-amd64.h +11 -3
- package/lib/dev-linux-amd64.so +0 -0
- package/lib/dev-windows-amd64.dll +0 -0
- package/lib/dev-windows-amd64.h +11 -3
- package/package.json +1 -1
- package/src/classes/SkyrampClient.js +13 -8
|
Binary file
|
package/lib/dev-darwin-amd64.h
CHANGED
|
@@ -42,6 +42,14 @@ struct worker_info {
|
|
|
42
42
|
|
|
43
43
|
#line 1 "cgo-generated-wrapper"
|
|
44
44
|
|
|
45
|
+
#line 7 "endpoint.go"
|
|
46
|
+
|
|
47
|
+
struct tester_info {
|
|
48
|
+
char *tester_id;
|
|
49
|
+
char *error;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
#line 1 "cgo-generated-wrapper"
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
/* End of preamble from import "C" comments. */
|
|
@@ -124,9 +132,9 @@ extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetes
|
|
|
124
132
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
125
133
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
126
134
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
127
|
-
extern
|
|
128
|
-
extern
|
|
129
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
135
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
136
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile);
|
|
137
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId);
|
|
130
138
|
|
|
131
139
|
#ifdef __cplusplus
|
|
132
140
|
}
|
|
Binary file
|
package/lib/dev-darwin-arm64.h
CHANGED
|
@@ -42,6 +42,14 @@ struct worker_info {
|
|
|
42
42
|
|
|
43
43
|
#line 1 "cgo-generated-wrapper"
|
|
44
44
|
|
|
45
|
+
#line 7 "endpoint.go"
|
|
46
|
+
|
|
47
|
+
struct tester_info {
|
|
48
|
+
char *tester_id;
|
|
49
|
+
char *error;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
#line 1 "cgo-generated-wrapper"
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
/* End of preamble from import "C" comments. */
|
|
@@ -124,9 +132,9 @@ extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetes
|
|
|
124
132
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
125
133
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
126
134
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
127
|
-
extern
|
|
128
|
-
extern
|
|
129
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
135
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
136
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile);
|
|
137
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId);
|
|
130
138
|
|
|
131
139
|
#ifdef __cplusplus
|
|
132
140
|
}
|
package/lib/dev-linux-386.h
CHANGED
|
@@ -42,6 +42,14 @@ struct worker_info {
|
|
|
42
42
|
|
|
43
43
|
#line 1 "cgo-generated-wrapper"
|
|
44
44
|
|
|
45
|
+
#line 7 "endpoint.go"
|
|
46
|
+
|
|
47
|
+
struct tester_info {
|
|
48
|
+
char *tester_id;
|
|
49
|
+
char *error;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
#line 1 "cgo-generated-wrapper"
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
/* End of preamble from import "C" comments. */
|
|
@@ -124,9 +132,9 @@ extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetes
|
|
|
124
132
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
125
133
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
126
134
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
127
|
-
extern
|
|
128
|
-
extern
|
|
129
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
135
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
136
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile);
|
|
137
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId);
|
|
130
138
|
|
|
131
139
|
#ifdef __cplusplus
|
|
132
140
|
}
|
package/lib/dev-linux-386.so
CHANGED
|
Binary file
|
package/lib/dev-linux-amd64.h
CHANGED
|
@@ -42,6 +42,14 @@ struct worker_info {
|
|
|
42
42
|
|
|
43
43
|
#line 1 "cgo-generated-wrapper"
|
|
44
44
|
|
|
45
|
+
#line 7 "endpoint.go"
|
|
46
|
+
|
|
47
|
+
struct tester_info {
|
|
48
|
+
char *tester_id;
|
|
49
|
+
char *error;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
#line 1 "cgo-generated-wrapper"
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
/* End of preamble from import "C" comments. */
|
|
@@ -124,9 +132,9 @@ extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetes
|
|
|
124
132
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
125
133
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
126
134
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
127
|
-
extern
|
|
128
|
-
extern
|
|
129
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
135
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
136
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile);
|
|
137
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId);
|
|
130
138
|
|
|
131
139
|
#ifdef __cplusplus
|
|
132
140
|
}
|
package/lib/dev-linux-amd64.so
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/dev-windows-amd64.h
CHANGED
|
@@ -42,6 +42,14 @@ struct worker_info {
|
|
|
42
42
|
|
|
43
43
|
#line 1 "cgo-generated-wrapper"
|
|
44
44
|
|
|
45
|
+
#line 7 "endpoint.go"
|
|
46
|
+
|
|
47
|
+
struct tester_info {
|
|
48
|
+
char *tester_id;
|
|
49
|
+
char *error;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
#line 1 "cgo-generated-wrapper"
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
/* End of preamble from import "C" comments. */
|
|
@@ -124,9 +132,9 @@ extern __declspec(dllexport) char* writeMockDescriptionWrapper(char* mockDescrip
|
|
|
124
132
|
extern __declspec(dllexport) char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
125
133
|
extern __declspec(dllexport) char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
126
134
|
extern __declspec(dllexport) char* buildRequestsWrapper(char* mockDescription);
|
|
127
|
-
extern __declspec(dllexport)
|
|
128
|
-
extern __declspec(dllexport)
|
|
129
|
-
extern __declspec(dllexport) char* runTesterStatusWrapper(char* namespace, char* address);
|
|
135
|
+
extern __declspec(dllexport) struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
136
|
+
extern __declspec(dllexport) struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile);
|
|
137
|
+
extern __declspec(dllexport) char* runTesterStatusWrapper(char* namespace, char* address, char* testerId);
|
|
130
138
|
|
|
131
139
|
#ifdef __cplusplus
|
|
132
140
|
}
|
package/package.json
CHANGED
|
@@ -21,6 +21,11 @@ const workerInfoType = koffi.struct({
|
|
|
21
21
|
error: 'char*',
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
+
const testerInfoType = koffi.struct({
|
|
25
|
+
tester_id: 'char*',
|
|
26
|
+
error: 'char*',
|
|
27
|
+
});
|
|
28
|
+
|
|
24
29
|
const WORKER_URL = "public.ecr.aws/j1n2c2p2/rampup/worker";
|
|
25
30
|
const WORKER_TAG = "latest";
|
|
26
31
|
const CONTAINER_PORT = 35142;
|
|
@@ -38,9 +43,9 @@ const removeClusterFromConfigWrapper = lib.func('removeClusterFromConfigWrapper'
|
|
|
38
43
|
const newStartDockerSkyrampWorkerWrapper = lib.func('newStartDockerSkyrampWorkerWrapper', workerInfoType, ['string', 'string', 'int', 'string']);
|
|
39
44
|
const newDeleteDockerSkyrampWorkerWrapper = lib.func('newDeleteDockerSkyrampWorkerWrapper', 'string', ['string']);
|
|
40
45
|
// tester related
|
|
41
|
-
const runTesterStartWrapper = lib.func('runTesterStartWrapper',
|
|
46
|
+
const runTesterStartWrapper = lib.func('runTesterStartWrapper', testerInfoType, ['string', 'string', 'string', 'bool']);
|
|
42
47
|
// mocker related
|
|
43
|
-
const runTesterStartWrapperv1 = lib.func('runTesterStartWrapperWithGlobalHeaders',
|
|
48
|
+
const runTesterStartWrapperv1 = lib.func('runTesterStartWrapperWithGlobalHeaders', testerInfoType, ['string', 'string', 'string', 'string', 'string', 'string', 'bool', 'string', 'string']);
|
|
44
49
|
const applyMockDescriptionWrapper = lib.func('applyMockDescriptionWrapper', 'string', ['string', 'string', 'string', 'string', 'string']);
|
|
45
50
|
// NPM only: for VS code extension use
|
|
46
51
|
const initTargetWrapper = lib.func('initTargetWrapper', 'string', ['string']);
|
|
@@ -431,10 +436,10 @@ class SkyrampClient {
|
|
|
431
436
|
runTesterStartWrapper.async(namespace, address, testYamlContent, generateReport, (err, res) => {
|
|
432
437
|
if (err) {
|
|
433
438
|
reject(err);
|
|
434
|
-
} else if (res) {
|
|
435
|
-
reject(new Error(res));
|
|
439
|
+
} else if (res.error) {
|
|
440
|
+
reject(new Error(res.error));
|
|
436
441
|
} else {
|
|
437
|
-
resolve();
|
|
442
|
+
resolve(res.tester_id);
|
|
438
443
|
}
|
|
439
444
|
});
|
|
440
445
|
});
|
|
@@ -445,10 +450,10 @@ class SkyrampClient {
|
|
|
445
450
|
runTesterStartWrapperv1.async(namespace, address, testYamlContent, "", testName, globalHeaders, generateReport, "", "", (err, res) => {
|
|
446
451
|
if (err) {
|
|
447
452
|
reject(err);
|
|
448
|
-
} else if (res) {
|
|
449
|
-
reject(new Error(res));
|
|
453
|
+
} else if (res.error) {
|
|
454
|
+
reject(new Error(res.error));
|
|
450
455
|
} else {
|
|
451
|
-
resolve();
|
|
456
|
+
resolve(res.tester_id);
|
|
452
457
|
}
|
|
453
458
|
});
|
|
454
459
|
});
|