Skip to content

Commit a112174

Browse files
authored
Merge branch 'devel' into feature/demux-sth-r3
2 parents 1c83e75 + 8e5d264 commit a112174

File tree

85 files changed

+3487
-1167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+3487
-1167
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
This is the changelog for Scramjet Transform Hub. It holds only notable commits, others are grouped without commit info.
44

5+
## [0.36.1] - 2023-10-02
6+
7+
## Fixed
8+
9+
* Add missing dependency in STH Dockerfile by @patuwwy in https://github.com/scramjetorg/transform-hub/pull/956
10+
11+
## [0.36.0] - 2023-09-25
12+
13+
## Features
14+
15+
* Monitoring Server by @piotrek6641 in https://github.com/scramjetorg/transform-hub/pull/944
16+
17+
## Fixed
18+
19+
* Disconnect Hub errors enum + types by @piotrek6641 in https://github.com/scramjetorg/transform-hub/pull/941
20+
* Fix runner exit by @patuwwy in https://github.com/scramjetorg/transform-hub/pull/951
21+
* Bump systeminformation from 5.21.4 to 5.21.7 by @dependabot in https://github.com/scramjetorg/transform-hub/pull/950
22+
* Fix build docs for ModuleLoader and MonitoringServer by @patuwwy in https://github.com/scramjetorg/transform-hub/pull/953
23+
524
## [0.35.3] - 2023-09-04
625

726
## Features

bdd/data/sequences/args-config-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/scramjetorg/transform-hub.git"
1111
},
1212
"devDependencies": {
13-
"@scramjet/types": "0.35.3"
13+
"@scramjet/types": "0.36.1"
1414
},
1515
"private": true
1616
}

bdd/data/sequences/args-to-output/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"author": "Scramjet <[email protected]>",
1313
"license": "ISC",
1414
"devDependencies": {
15-
"@scramjet/types": "^0.35.3",
15+
"@scramjet/types": "^0.36.1",
1616
"@types/node": "15.12.5"
1717
},
1818
"repository": {

bdd/data/sequences/deploy-app/dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Scramjet <[email protected]>",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"@scramjet/types": "^0.35.3",
13+
"@scramjet/types": "^0.36.1",
1414
"@types/node": "15.12.5"
1515
},
1616
"repository": {

bdd/data/sequences/deploy-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Scramjet <[email protected]>",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"@scramjet/types": "^0.35.3",
13+
"@scramjet/types": "^0.36.1",
1414
"@types/node": "15.12.5"
1515
},
1616
"repository": {

bdd/features/e2e/E2E-010-cli.feature

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,25 @@ Feature: CLI tests
136136
Scenario: E2E-010 TC-016 Get Hub logs
137137
When I execute CLI with "hub logs" without waiting for the end
138138
Then I confirm Hub logs received
139+
140+
141+
@ci-api @cli
142+
Scenario: E2E-010 TC-017 Test Instance 'restart' option
143+
When I execute CLI with "seq deploy ../packages/hello.tar.gz"
144+
When I execute CLI with "inst restart -"
145+
Then I confirm instance status is "killing"
146+
When I execute CLI with "inst info -"
147+
Then I confirm instance status is "running"
148+
149+
##
150+
# If you change name of instanceId, keep remember it should consist of 36 chars!!!
151+
##
152+
@ci-api @cli
153+
Scenario: E2E-010 TC-018 Test Set instance id
154+
When I execute CLI with "seq send ../packages/hello.tar.gz"
155+
When I execute CLI with "seq start - --inst-id <instanceId>"
156+
When I execute CLI with "inst ls"
157+
Then I confirm instance id is: <instanceId>
158+
Examples:
159+
| instanceId |
160+
| Supervisor-Instance-0000-11111111111 |

bdd/iac-test-data/sequences/infinite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"build": "si pack -o ../hello-2.tar.gz ."
1010
},
1111
"devDependencies": {
12-
"@scramjet/types": "^0.35.3"
12+
"@scramjet/types": "^0.36.1"
1313
}
1414
}

bdd/lib/json.parser.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
export function extractJsonFromSiSeqDeploy(data: any) {
2+
const lines = data.split("\n");
3+
4+
const seqInfo = JSON.parse(lines[0]);
5+
const instInfo = JSON.parse(lines[1]);
6+
7+
return {
8+
sequenceId: seqInfo._id,
9+
instanceId: instInfo._id
10+
};
11+
}
12+
13+
export function extractKillResponseFromSiInstRestart(data: any) {
14+
const lines = data.split("\n");
15+
const killResponse = JSON.parse(lines[0]).killResponse;
16+
17+
return killResponse;
18+
}
19+
20+
export function extractInstanceFromSiInstLs(data: any, instanceId: string) {
21+
const lines = data.split("\n");
22+
const json = JSON.parse(lines[0]);
23+
let instance: any = null;
24+
25+
if (json.length > 0) {
26+
for (let i = 0; i < json.length; i++) {
27+
const obj = json[i];
28+
const id: string = obj.id;
29+
30+
if (id.localeCompare(instanceId) === 0) {
31+
instance = obj;
32+
break;
33+
}
34+
}
35+
}
36+
return instance;
37+
}

bdd/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "scramjet-bdd",
3-
"version": "0.35.3",
3+
"version": "0.36.1",
44
"description": "As the \"problem scope\" of the business problem that our technology solves is quite complex, we decided to use the BDD practice to support the development process. BDD is a methodology of high automation and agility. It describes a cycle of interactions with well-defined outcomes. As a result of these activities, we obtain working, tested software that has a real value.",
55
"main": "_cucumber.js",
66
"dependencies": {
7-
"@scramjet/api-client": "^0.35.3",
8-
"@scramjet/logger": "^0.35.3",
9-
"@scramjet/obj-logger": "^0.35.3",
10-
"@scramjet/sth-config": "^0.35.3",
7+
"@scramjet/api-client": "^0.36.1",
8+
"@scramjet/logger": "^0.36.1",
9+
"@scramjet/obj-logger": "^0.36.1",
10+
"@scramjet/sth-config": "^0.36.1",
1111
"dockerode": "^3.3.4",
1212
"find-package-json": "^1.2.0",
1313
"freeport": "^1.0.5",
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@cucumber/cucumber": "^7.3.2",
1919
"@cucumber/pretty-formatter": "^1.0.0",
20-
"@scramjet/types": "^0.35.3"
20+
"@scramjet/types": "^0.36.1"
2121
},
2222
"scripts": {
2323
"build:bdd": "tsc -p tsconfig.json",

0 commit comments

Comments
 (0)