Skip to content

Commit 58a3165

Browse files
authored
Merge branch 'devel' into feat/remove-config-logs
2 parents 92b580b + c4ff140 commit 58a3165

File tree

57 files changed

+484
-237
lines changed

Some content is hidden

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

57 files changed

+484
-237
lines changed

CHANGELOG.md

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

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

5+
## [0.35.2] - 2023-07-26
6+
7+
## Features
8+
9+
* Feat/all sequences by @gzukowski in https://github.com/scramjetorg/transform-hub/pull/903
10+
511
## [0.35.1] - 2023-07-21
612

713
## 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.1"
13+
"@scramjet/types": "0.35.2"
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.1",
15+
"@scramjet/types": "^0.35.2",
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.1",
13+
"@scramjet/types": "^0.35.2",
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.1",
13+
"@scramjet/types": "^0.35.2",
1414
"@types/node": "15.12.5"
1515
},
1616
"repository": {

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.1"
12+
"@scramjet/types": "^0.35.2"
1313
}
1414
}

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.1",
3+
"version": "0.35.2",
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.1",
8-
"@scramjet/logger": "^0.35.1",
9-
"@scramjet/obj-logger": "^0.35.1",
10-
"@scramjet/sth-config": "^0.35.1",
7+
"@scramjet/api-client": "^0.35.2",
8+
"@scramjet/logger": "^0.35.2",
9+
"@scramjet/obj-logger": "^0.35.2",
10+
"@scramjet/sth-config": "^0.35.2",
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.1"
20+
"@scramjet/types": "^0.35.2"
2121
},
2222
"scripts": {
2323
"build:bdd": "tsc -p tsconfig.json",

docs/cli/commands-description.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ Send the Sequence package to the Hub
630630

631631
**Arguments**
632632

633-
* package The file or directory to upload or '-' to use the last packed. If directory, it will be packed and sent.
633+
* package The file or directory to upload or '-' to use the last packed. If directory, it
634+
* will be packed and sent.
634635

635636
**Options**
636637

@@ -676,7 +677,8 @@ Start the Sequence with or without given arguments
676677

677678
**Options**
678679

679-
* -f, --config-file <path-to-file> Path to configuration file in JSON format to be passed to the Instance context
680+
* -f, --config-file <path-to-file> Path to configuration file in JSON format to be passed to the Instance
681+
* context
680682
* -s, --config-string <json-string> Configuration in JSON format to be passed to the Instance context
681683
* --output-topic <string> Topic to which the output stream should be routed
682684
* --input-topic <string> Topic to which the input stream should be routed
@@ -699,7 +701,8 @@ Pack (if needed), send and start the Sequence
699701
**Options**
700702

701703
* -o, --output <file.tar.gz> Output path - defaults to dirname
702-
* -f, --config-file <path-to-file> Path to configuration file in JSON format to be passed to the Instance context
704+
* -f, --config-file <path-to-file> Path to configuration file in JSON format to be passed to the Instance
705+
* context
703706
* -s, --config-string <json-string> Configuration in JSON format to be passed to the Instance context
704707
* --args <json-string> Arguments to be passed to the first function in the Sequence
705708
* -h, --help Display help for command
@@ -936,7 +939,8 @@ Send a file to input, if no file given the data will be read directly from the c
936939
**Options**
937940

938941
* -t, --content-type <value> Content-Type (default: "text/plain")
939-
* -e, --end Close the input stream of the Instance when this stream ends, "x-end-stream" header (default: false)
942+
* -e, --end Close the input stream of the Instance when this stream ends, "x-end-stream"
943+
* header (default: false)
940944
* -h, --help Display help for command
941945

942946
---
@@ -958,8 +962,10 @@ See input and output
958962

959963
**Options**
960964

961-
* -t,--content-type <content-type> Content-Type (choices: "text/plain", "application/octet-stream", "application/x-ndjson")
962-
* -e, --end Close the input stream of the Instance when this stream ends, "x-end-stream" header (default: false)
965+
* -t,--content-type <content-type> Content-Type (choices: "text/plain", "application/octet-stream",
966+
* "application/x-ndjson")
967+
* -e, --end Close the input stream of the Instance when this stream ends,
968+
* "x-end-stream" header (default: false)
963969
* -h, --help Display help for command
964970

965971
---
@@ -1154,7 +1160,9 @@ Create topic
11541160

11551161
**Options**
11561162

1157-
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson", "application/x-ndjson", "text/plain", "application/octet-stream", default: "text/plain")
1163+
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson",
1164+
* "application/x-ndjson", "text/plain", "application/octet-stream",
1165+
* default: "text/plain")
11581166
* -h, --help Display help for command
11591167

11601168
---
@@ -1187,7 +1195,9 @@ Get data from topic
11871195

11881196
**Options**
11891197

1190-
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson", "application/x-ndjson", "text/plain", "application/octet-stream", default: "text/plain")
1198+
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson",
1199+
* "application/x-ndjson", "text/plain", "application/octet-stream",
1200+
* default: "text/plain")
11911201
* -h, --help Display help for command
11921202

11931203
---
@@ -1204,7 +1214,9 @@ Send data on topic from file, directory or directly through the console
12041214

12051215
**Options**
12061216

1207-
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson", "application/x-ndjson", "text/plain", "application/octet-stream", default: "text/plain")
1217+
* -t, --content-type [content-type] Specifies type of data in topic (choices: "text/x-ndjson",
1218+
* "application/x-ndjson", "text/plain", "application/octet-stream",
1219+
* default: "text/plain")
12081220
* -h, --help Display help for command
12091221

12101222
---

docs/host/classes/CPMConnector.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ ___
472472

473473
#### Defined in
474474

475-
[packages/host/src/lib/cpm-connector.ts:631](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L631)
475+
[packages/host/src/lib/cpm-connector.ts:632](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L632)
476476

477477
___
478478

@@ -496,7 +496,7 @@ Promise resolving to `ReadableStream<any>` with topic data.
496496

497497
#### Defined in
498498

499-
[packages/host/src/lib/cpm-connector.ts:620](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L620)
499+
[packages/host/src/lib/cpm-connector.ts:621](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L621)
500500

501501
___
502502

@@ -652,7 +652,7 @@ ___
652652

653653
#### Defined in
654654

655-
[packages/host/src/lib/cpm-connector.ts:601](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L601)
655+
[packages/host/src/lib/cpm-connector.ts:602](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L602)
656656

657657
___
658658

@@ -937,7 +937,7 @@ Sends Instance information to Manager via communication channel.
937937

938938
#### Defined in
939939

940-
[packages/host/src/lib/cpm-connector.ts:570](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L570)
940+
[packages/host/src/lib/cpm-connector.ts:571](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L571)
941941

942942
___
943943

@@ -979,7 +979,7 @@ ___
979979

980980
### sendSequenceInfo
981981

982-
**sendSequenceInfo**(`sequenceId`, `seqStatus`): `Promise`<`void`\>
982+
**sendSequenceInfo**(`sequenceId`, `seqStatus`, `config`): `Promise`<`void`\>
983983

984984
Sends Sequence status to Manager via communication channel.
985985

@@ -989,14 +989,15 @@ Sends Sequence status to Manager via communication channel.
989989
| :------ | :------ | :------ |
990990
| `sequenceId` | `string` | Sequence id. |
991991
| `seqStatus` | `SequenceMessageCode` | Sequence status. |
992+
| `config` | `GetSequenceResponse` | - |
992993

993994
#### Returns
994995

995996
`Promise`<`void`\>
996997

997998
#### Defined in
998999

999-
[packages/host/src/lib/cpm-connector.ts:554](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L554)
1000+
[packages/host/src/lib/cpm-connector.ts:555](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L555)
10001001

10011002
___
10021003

@@ -1045,7 +1046,7 @@ Topic information is send via communication channel.
10451046

10461047
#### Defined in
10471048

1048-
[packages/host/src/lib/cpm-connector.ts:586](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L586)
1049+
[packages/host/src/lib/cpm-connector.ts:587](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L587)
10491050

10501051
___
10511052

@@ -1065,7 +1066,7 @@ ___
10651066

10661067
#### Defined in
10671068

1068-
[packages/host/src/lib/cpm-connector.ts:592](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L592)
1069+
[packages/host/src/lib/cpm-connector.ts:593](https://github.com/scramjetorg/transform-hub/blob/HEAD/packages/host/src/lib/cpm-connector.ts#L593)
10691070

10701071
___
10711072

0 commit comments

Comments
 (0)