Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 63cab04

Browse files
put ui & api tests
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 9be498e commit 63cab04

File tree

69 files changed

+9024
-22
lines changed

Some content is hidden

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

69 files changed

+9024
-22
lines changed

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ export TRUSTIFY_URL=http://localhost:8080
2121

2222
- Run tests:
2323

24-
```shell
25-
npx playwright test
26-
```
27-
28-
- Or if you prefer to run the tests and see the Playwright UI use:
29-
3024
```shell
3125
npm run test
3226
```
3327

3428
## Environment Variables
3529

30+
For UI tests:
31+
3632
| Variable | Default Value | Description |
3733
| ---------------------- | --------------------- | ------------------------------------------- |
3834
| TRUSTIFY_URL | http://localhost:8080 | The UI URL |
@@ -41,14 +37,25 @@ npm run test
4137
| TRUSTIFY_AUTH_PASSWORD | admin | Password to be used when authenticating |
4238
| SKIP_INGESTION | false | If to skip initial data ingestion / cleanup |
4339

40+
For API tests:
41+
42+
| Variable | Default Value | Description |
43+
| --------------------------- | ----------------------------------- | ------------------------------------------- |
44+
| TRUSTIFY_URL | http://localhost:8080 | The UI URL |
45+
| TRUSTIFY_AUTH_ENABLED | false | Whether or not auth is enabled in the UI |
46+
| TRUSTIFY_AUTH_URL | http://localhost:9090/realms/trustd | User name to be used when authenticating |
47+
| TRUSTIFY_AUTH_CLIENT_ID | cli | Password to be used when authenticating |
48+
| TRUSTIFY_AUTH_CLIENT_SECRET | secret | Password to be used when authenticating |
49+
| SKIP_INGESTION | false | If to skip initial data ingestion / cleanup |
50+
4451
## Available commands
4552

4653
There are come preconfigured commands you can use:
4754

48-
| Variable | Description |
49-
| ------------------ | ------------------------------------------------- |
50-
| npm run test | Execute tests |
51-
| npm run test:trace | Execute tests and take screenshots |
52-
| npm run test:host | Opens the Playwright UI in the browser of your OS |
55+
| Variable | Description |
56+
| --------------------- | ------------------------------------------------- |
57+
| npm run test | Execute tests |
58+
| npm run test:ui:trace | Execute tests and take screenshots |
59+
| npm run test:ui:host | Opens the Playwright UI in the browser of your OS |
5360

5461
You can also execute any playwright or [playwright-bdd](https://vitalets.github.io/playwright-bdd) command directly in your terminal.

config/openapi-ts.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from "@hey-api/openapi-ts";
2+
3+
export default defineConfig({
4+
plugins: [
5+
"@hey-api/client-axios",
6+
{
7+
asClass: true, // default
8+
name: "@hey-api/sdk",
9+
},
10+
],
11+
input: "config/openapi.yaml",
12+
output: {
13+
path: "tests/api/client",
14+
format: "prettier",
15+
lint: "eslint",
16+
},
17+
});

0 commit comments

Comments
 (0)