Skip to content

Commit c368bb8

Browse files
authored
chore: remove local integration tests (#285)
1 parent 2eeeeba commit c368bb8

41 files changed

Lines changed: 10 additions & 6795 deletions

Some content is hidden

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

.eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@
3838
}
3939
}
4040
},
41-
"ignorePatterns": [
42-
"integration"
43-
]
41+
"ignorePatterns": []
4442
}

.github/workflows/test.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,6 @@ jobs:
9494
- name: Compile project
9595
run: npm run compile
9696

97-
- name: Run integration tests
98-
run: npm run integration-tests
99-
env:
100-
TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
101-
102-
- name: Run integration tests cli
103-
working-directory: integration
104-
run: bash ./run_its.sh
105-
env:
106-
TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
107-
10897
- name: Upload coverage reports
10998
if: ${{ matrix.node == env.MAIN_NODE_VER }}
11099
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_modules
44
dist
55
http_requests
66
json_responses
7-
integration/**/package-lock.json
87
unit-tests-result.json
98
.gradle
109
build

CONTRIBUTING.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -67,49 +67,10 @@ excluded from both linting and coverage.
6767
to the _Backend_.
6868
Use [java_maven.js](src/providers/java_maven.js) as an example to get you started.
6969
* Import the new _Provider_ and list in the in _availableProviders_ array in [provider.js](src/provider.js).
70-
* Update the _choices_ configuration for the _manifest-name_ positional argument in [cli.js](src/cli.js).
71-
* Add Integration Test scenarios for the added provider in [integration/scenarios](integration/scenarios).
72-
Use the [java scenarios](integration/scenarios/maven) as an example.
70+
* Update the _choices_ configuration for the _manifest-name_ positional argument in [cli.js](src/cli.js).
71+
* Add Integration Test scenarios for the added provider in the [trustification/integration](https://github.com/trustification/exhort-integration-tests/) repository.
7372
* Update the documentation. This document and [README.md](README.md).
7473

75-
### Integration Tests
76-
77-
Integration tests are performed with a _bash_ script executing _node_ scripts.<br/>
78-
In [integration/run_its.sh](integration/run_its.sh) we start with a function called _match_ taking 2 arguments:
79-
* `$1` is a file name for the holding the expected result (scenarios)
80-
* `$2` is a command execution for evaluation (testers)
81-
82-
The _match_ function will match the content of the file to the output of the command.
83-
Typically, test cases in [integration/run_its.sh](integration/run_its.sh) will invoke the _match_ function with
84-
a scenario from the [integration/scenarios](integration/scenarios) and a _node_ command invoking one of the _node_
85-
scripts in [integration/testers](integration/testers).<br/>
86-
87-
We have 3 _testers_:
88-
* [integration/testers/cli](integration/testers/cli) is a _package.json_ used for installing the _ESM module_.
89-
Invoking the CLI Script is done against the _@trustify-da/trustify-da-javascript-client/dist/src/cli.js_ in the tester's
90-
_node_modules_.
91-
* [integration/testers/javascript](integration/testers/javascript) is a _javascript_ script invoking the _ESM module_.
92-
* [integration/testers/typescript](integration/testers/typescript) is a _typescript_ script invoking the _ESM module_.
93-
94-
Run integration tests from the project's root:
95-
96-
> Don't forget to run `npm run compile` before running the integration tests.
97-
98-
```shell
99-
(cd integration/ && bash ./run_its.sh)
100-
```
101-
102-
Integration tests are executed against a mocked _Backend_ server.<br/>
103-
If you need to run against the actual _Backend_ server, use the _TRUSTIFY_DA_ITS_USE_REAL_API_ environment variable:
104-
105-
```shell
106-
(cd integration/ && TRUSTIFY_DA_ITS_USE_REAL_API=true bash ./run_its.sh)
107-
```
108-
109-
The mocked server implementation is [integration/server/mock_server.js](integration/server/mock_server.js). See the
110-
[integration/server/mock_server_config.json](integration/server/mock_server_config.json) for configuring the mock
111-
server.
112-
11374
## Certificate of Origin
11475

11576
By contributing to this project you agree to the Developer Certificate of

integration/run_its.sh

Lines changed: 0 additions & 153 deletions
This file was deleted.

integration/scenarios/maven/component_request_json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)