Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies [potentially breaking] #1073

Draft
wants to merge 16 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.base.json"
"project": "tsconfig.base.json"
},
"plugins": [
"@typescript-eslint"
Expand Down Expand Up @@ -191,7 +191,7 @@
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-extra-parens" : 1,

"import/no-absolute-path": 2, // Forbid import of modules using absolute paths ()
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
5 changes: 0 additions & 5 deletions bdd/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion bdd/data/sequences/args-to-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "ISC",
"devDependencies": {
"@scramjet/types": "^1.0.1",
"@types/node": "15.12.5"
"@types/node": "20.16.11"
},
"repository": {
"type": "git",
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion bdd/data/sequences/bin-out-seq/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"devDependencies": {
"@scramjet/types": "^1.0.1",
"@types/node": "15.12.5"
"@types/node": "20.16.11"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion bdd/data/sequences/bin-out-seq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"devDependencies": {
"@scramjet/types": "^1.0.1",
"@types/node": "15.12.5"
"@types/node": "20.16.11"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion bdd/data/sequences/deploy-app/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"devDependencies": {
"@scramjet/types": "^1.0.1",
"@types/node": "15.12.5"
"@types/node": "20.16.11"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion bdd/data/sequences/deploy-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"devDependencies": {
"@scramjet/types": "^1.0.1",
"@types/node": "15.12.5"
"@types/node": "20.16.11"
},
"repository": {
"type": "git",
Expand Down
47 changes: 47 additions & 0 deletions bdd/data/test-data/hello-alice-out/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"name":"Alice",
"age":31,
"city":"New York"
},
{
"name":"Ada",
"age":31,
"city":"New York"
},
{
"name":"Aga",
"age":31,
"city":"New York"
},
{
"name":"Basia",
"age":31,
"city":"New York"
},
{
"name":"Natalia",
"age":31,
"city":"New York"
},
{
"name":"Wojtek",
"age":31,
"city":"New York"
},
{
"name":"Michał",
"age":31,
"city":"New York"
},
{
"name":"Patryk",
"age":31,
"city":"New York"
},
{
"name":"Rafał",
"age":31,
"city":"New York"
}
]
2 changes: 1 addition & 1 deletion bdd/features/e2e/E2E-002-stop.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Stop e2e tests
@ci-instance-node
Scenario: E2E-002 TC-001 API test - Send stop, sequence sends keepAlive, runner closes successfully
Given host is running
When sequence "../packages/can-keep-alive.tar.gz" loaded
When sequence "../refapps/can-keep-alive.tar.gz" loaded
And instance started with arguments "SEND_KEEPALIVE"
And wait for instance healthy is "true"
And get runner PID
Expand Down
2 changes: 1 addition & 1 deletion bdd/features/e2e/E2E-003-kill.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Kill e2e tests
@ci-instance-node
Scenario: E2E-003 TC-003 API test - Kill instance when it's not responding
Given host is running
When sequence "../packages/process-not-responding.tar.gz" loaded
When sequence "../refapps/process-not-responding.tar.gz" loaded
And instance started
And wait for instance healthy is "true"
And get runner PID
Expand Down
4 changes: 2 additions & 2 deletions bdd/features/e2e/E2E-007-host-client.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Test for host client used by sequences
@ci-api @cli
Scenario: E2E-007 TC-001 Test sequence with basic host client methods like getVersion(), getStatus(), etc.
Given I set config for local Hub
When I execute CLI with "seq send ../packages/js-hostclient-basic.tar.gz"
When I execute CLI with "seq send ../refapps/js-hostclient-basic.tar.gz"
When I execute CLI with "seq start -"
And wait for "3000" ms
When I execute CLI with "inst output -" without waiting for the end
Expand All @@ -18,7 +18,7 @@ Feature: Test for host client used by sequences
@ci-api @cli
Scenario: E2E-007 TC-002 Test Sequence that starts another Sequence
Given I set config for local Hub
When I execute CLI with "seq send ../packages/js-hostclient-basic.tar.gz"
When I execute CLI with "seq send ../refapps/js-hostclient-basic.tar.gz"
And I execute CLI with "seq info -"
And I get sequence id
Then I start "js-hostclient-start-seq" with the first sequence id
Expand Down
40 changes: 20 additions & 20 deletions bdd/features/e2e/E2E-010-cli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-003 Test Sequence 'pack' option
When I execute CLI with "seq pack data/sequences/simple-stdio -o ../packages/simple-stdio.tar.gz"
Then I get location "../packages/simple-stdio.tar.gz" of compressed directory
When I execute CLI with "seq pack data/sequences/simple-stdio -o ../refapps/simple-stdio.tar.gz"
Then I get location "../refapps/simple-stdio.tar.gz" of compressed directory

@ci-api @cli
Scenario: E2E-010 TC-004 Test Sequence options
When I execute CLI with "seq --help"
When I execute CLI with "seq send ../packages/args-to-output.tar.gz"
When I execute CLI with "seq send ../packages/checksum-sequence.tar.gz"
When I execute CLI with "seq send ../packages/hello-alice-out.tar.gz"
When I execute CLI with "seq send ../refapps/args-to-output.tar.gz"
When I execute CLI with "seq send ../refapps/checksum-sequence.tar.gz"
When I execute CLI with "seq send ../refapps/hello-alice-out.tar.gz"
When I execute CLI with "seq info -"
When I execute CLI with "seq list"
When I execute CLI with "seq delete -"
Expand All @@ -47,8 +47,8 @@ Feature: CLI tests
@ci-api @cli
Scenario: E2E-010 TC-006 Test Sequence 'prune --force' option
Given I set config for local Hub
When I execute CLI with "seq send ../packages/checksum-sequence.tar.gz"
When I execute CLI with "seq send ../packages/csv-transform.tar.gz"
When I execute CLI with "seq send ../refapps/checksum-sequence.tar.gz"
When I execute CLI with "seq send ../refapps/csv-transform.tar.gz"
When I execute CLI with "seq list"
When I execute CLI with "seq start -"
When I execute CLI with "inst list"
Expand All @@ -59,7 +59,7 @@ Feature: CLI tests
@ci-api @cli
Scenario: E2E-010 TC-007 Test Instance options
When I execute CLI with "inst --help"
When I execute CLI with "seq send ../packages/csv-transform.tar.gz"
When I execute CLI with "seq send ../refapps/csv-transform.tar.gz"
When I execute CLI with "seq start -"
When I execute CLI with "inst info -"
When I execute CLI with "inst health -"
Expand All @@ -69,7 +69,7 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-008 Test Instances 'stop' option
When I execute CLI with "seq send ../packages/checksum-sequence.tar.gz"
When I execute CLI with "seq send ../refapps/checksum-sequence.tar.gz"
When I execute CLI with "seq start -"
When I execute CLI with "inst ls"
When I execute CLI with "inst stop - 3000"
Expand All @@ -80,7 +80,7 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-009 Get 404 on health endpoint for finished Instance
When I execute CLI with "seq send ../packages/js-inert-function.tar.gz"
When I execute CLI with "seq send ../refapps/js-inert-function.tar.gz"
When I execute CLI with "seq start -"
When I execute CLI with "inst health -"
And I wait for Instance to end
Expand All @@ -89,40 +89,40 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-010 Test Instance 'log' option
When I execute CLI with "seq send ../packages/js-inert-function.tar.gz"
When I execute CLI with "seq send ../refapps/js-inert-function.tar.gz"
When I execute CLI with "seq start -"
When I execute CLI with "inst log -" without waiting for the end
Then I confirm instance logs received

@ci-api @cli
Scenario: E2E-010 TC-011 Test Instance 'input' option
When I execute CLI with "seq deploy ../packages/checksum-sequence.tar.gz"
When I execute CLI with "seq deploy ../refapps/checksum-sequence.tar.gz"
When I execute CLI with "inst input - data/test-data/checksum.json"

@ci-api @cli
Scenario: E2E-010 TC-012 Test Instance 'input --end' option and confirm output received
When I execute CLI with "seq deploy ../packages/checksum-sequence.tar.gz"
When I execute CLI with "seq deploy ../refapps/checksum-sequence.tar.gz"
When I execute CLI with "inst input - data/test-data/checksum.json --end"
When I execute CLI with "inst output -"
Then I confirm data named "checksum" received

@ci-api @cli
Scenario: E2E-010 TC-013 Test Instance 'event' option with payload
When I execute CLI with "seq deploy ../packages/event-sequence-v2.tar.gz"
When I execute CLI with "seq deploy ../refapps/event-sequence-v2.tar.gz"
When I execute CLI with "inst event emit - test-event test message"
When I execute CLI with "inst event on - test-event-response"
Then I get event "test-event-response" with event message "\"message from sequence\"" from Instance

@ci-api @cli
Scenario: E2E-010 TC-013a Test Instance 'event' option without payload
When I execute CLI with "seq deploy ../packages/event-sequence-v2.tar.gz"
When I execute CLI with "seq deploy ../refapps/event-sequence-v2.tar.gz"
When I execute CLI with "inst event emit - test-event"
When I execute CLI with "inst event on - test-event-response"
Then I get event "test-event-response" with event message "\"message from sequence\"" from Instance

@ci-api @cli
Scenario: E2E-010 TC-014 Test Sequence 'start' with multiple JSON arguments
When I execute CLI with "seq send ../packages/args-to-output.tar.gz"
When I execute CLI with "seq send ../refapps/args-to-output.tar.gz"
When I execute CLI with "seq start - --args [\"Hello\",123,{\"abc\":456},[\"789\"]]"
When I execute CLI with "inst output -" without waiting for the end
Then I confirm data named "args-on-output" will be received
Expand All @@ -141,7 +141,7 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-017 Test Instance 'restart' option
When I execute CLI with "seq deploy ../packages/hello.tar.gz"
When I execute CLI with "seq deploy ../refapps/hello.tar.gz"
When I execute CLI with "inst restart -"
Then I confirm instance status is "killing"
When I execute CLI with "inst info -"
Expand All @@ -152,7 +152,7 @@ Feature: CLI tests
##
@ci-api @cli
Scenario: E2E-010 TC-018 Test Set instance id
When I execute CLI with "seq send ../packages/hello.tar.gz"
When I execute CLI with "seq send ../refapps/hello.tar.gz"
When I execute CLI with "seq start - --inst-id <instanceId>"
When I execute CLI with "inst ls"
Then I confirm instance id is: <instanceId>
Expand All @@ -172,14 +172,14 @@ Feature: CLI tests

@ci-api @cli
Scenario: E2E-010 TC-020 Test Start sequence with startup-config
When I execute CLI with "seq send ../packages/endless-names-output.tar.gz"
When I execute CLI with "seq send ../refapps/endless-names-output.tar.gz"
And I execute CLI with "seq start - --startup-config ../bdd/data/seq-startup-config.json"
And I execute CLI with "inst info -"
Then Instance info should contain provided parameters in "seq-startup-config.json"

@ci-api @cli
Scenario: E2E-010 TC-021 Test Start sequence in python with startup-config
When I execute CLI with "seq send ../packages/python-weather-args.tar.gz"
When I execute CLI with "seq send ../refapps/python-weather-args.tar.gz"
And I execute CLI with "seq start - --startup-config ../bdd/data/python-weather-startup-config.json"
And I execute CLI with "inst info -"
Then Instance info should contain provided parameters in "python-weather-startup-config.json"
8 changes: 4 additions & 4 deletions bdd/features/e2e/E2E-011-cli-topic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This feature checks topic functionalities over CLI

@ci-topic @cli
Scenario: E2E-011 TC-002 Instance to API
When I execute CLI with "seq send ../packages/endless-names-output.tar.gz"
When I execute CLI with "seq send ../refapps/endless-names-output.tar.gz"
When I execute CLI with "seq start -"
Then I execute CLI with "topic get names" without waiting for the end
Then I confirm data named "endless-names-10" will be received
Expand All @@ -21,7 +21,7 @@ This feature checks topic functionalities over CLI
Scenario: E2E-011 TC-003 API to Instance
# Given I set config for local Hub
When I execute CLI with "topic send avengers data/data.json" without waiting for the end
When I execute CLI with "seq send ../packages/hello-input-out.tar.gz"
When I execute CLI with "seq send ../refapps/hello-input-out.tar.gz"
When I execute CLI with "seq start - --input-topic avengers "
And wait for "10000" ms
And I execute CLI with "inst output -" without waiting for the end
Expand All @@ -31,10 +31,10 @@ This feature checks topic functionalities over CLI
# TODO: need to test this via separate two sequences
@ci-topic @cli
Scenario: E2E-011 TC-004 Instance to Instance
When I execute CLI with "seq send ../packages/endless-names-output.tar.gz"
When I execute CLI with "seq send ../refapps/endless-names-output.tar.gz"
When I execute CLI with "seq start -"
And wait for "6000" ms
When I execute CLI with "seq send ../packages/hello-input-out.tar.gz"
When I execute CLI with "seq send ../refapps/hello-input-out.tar.gz"
When I execute CLI with "seq start -"
And wait for "4000" ms
And I execute CLI with "inst output -" without waiting for the end
Expand Down
4 changes: 2 additions & 2 deletions bdd/features/e2e/E2E-012-stream-flooding-test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Stream flooding tests. Ensure that even if a large amount of data is se
@ci-api @runner-cleanup
Scenario: E2E-012 TC-001 Flood stdin of Instance, do not consume it and check if Instance responds to event sent.
Given host is running
When sequence "../packages/event-sequence-v2.tar.gz" loaded
When sequence "../refapps/event-sequence-v2.tar.gz" loaded
And instance started with arguments "500"
And wait for instance healthy is "true"
And get runner PID
Expand All @@ -17,7 +17,7 @@ Feature: Stream flooding tests. Ensure that even if a large amount of data is se
@ci-api @runner-cleanup
Scenario: E2E-012 TC-002 Instance floods wrtites stdout, then Host checks whether even sent by Instance can be still received.
Given host is running
When sequence "../packages/flood-stdout-sequence.tar.gz" loaded
When sequence "../refapps/flood-stdout-sequence.tar.gz" loaded
And instance started with arguments "4000 10000"
And wait for instance healthy is "true"
And get runner PID
Expand Down
Loading
Loading