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

refactoring prompted by the addition of load and eba testing #162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
49b1136
added filerBaseUrl, REG_PILOT_FILER, and --filer-url. Still need fixes
2byrds Dec 24, 2024
48998f6
Fixed filerBaseUrl setting for eba test
2byrds Dec 27, 2024
0a56383
Run specified keria container for run-workflow-bank-api tests. Needs …
2byrds Jan 1, 2025
4d46d47
run-workflow-bank-api working if run-bank-reports-download is run
2byrds Jan 2, 2025
b845053
Refactor empty tests to normal typescript files
2byrds Jan 3, 2025
e3028e8
refactored tests including fast run
2byrds Jan 6, 2025
a320572
Fixed src vs test data dir creation/configuration, all tests pass
2byrds Jan 6, 2025
4bf3f25
more path fixes for unit tests, but scripts still need work
2byrds Jan 8, 2025
2edfb0f
remote script and unit tests working. local mode still needs work
2byrds Jan 9, 2025
9e1b191
ssuccess local mode test by setting --api-url
2byrds Jan 9, 2025
b6c8568
remote testing successful
2byrds Jan 9, 2025
4c10c41
improve keria bank docker container startup during tests. needed VERI…
2byrds Jan 14, 2025
63e9c20
refactored TestEnvironment to singleton. api unit testing passed, api…
2byrds Jan 17, 2025
05b8cd8
removed more environment variables. only multiple eba tests isn't pas…
2byrds Jan 18, 2025
daecf41
more optimizations for successful eba testing
2byrds Jan 19, 2025
6bf4ebc
cleanup script added
2byrds Jan 19, 2025
fdc424a
merged latest timing updates
2byrds Jan 19, 2025
ecc8805
Added max-report-size functionality to specify the largest file upload
2byrds Jan 20, 2025
2eb3d84
updated errp UIVersion and default max-report-size is now zero which …
2byrds Jan 21, 2025
2b70861
updated test arguments to be named
2byrds Jan 21, 2025
25621fe
added test pdf file and refactored test bank report functionality
2byrds Jan 21, 2025
6f7659f
removed test zip and added install/build step to test-load-parallel
2byrds Jan 21, 2025
ccd7201
updated staging to be test based and added better cleanup
2byrds Jan 22, 2025
740eba0
only stop keria container if not staging
2byrds Jan 22, 2025
58d523b
bank num is used as a divisor for the eba test report generation
2byrds Jan 23, 2025
b1629fa
small fixes to for staging
2byrds Jan 23, 2025
aacde23
segregated eba_reports by bank name
2byrds Jan 23, 2025
fcaf5ea
temporarily removing upload
2byrds Jan 23, 2025
1a7ef08
added back eba uploads. load testing attempts can begin
2byrds Jan 23, 2025
9d45284
truncating login request console log
2byrds Jan 23, 2025
10e2514
added load cheat sheet
2byrds Jan 23, 2025
ac73529
added docker run for keria instances to cheat sheet
2byrds Jan 23, 2025
9bfdcba
stop keria on success or failure and other small fixes
2byrds Jan 23, 2025
4409417
Now generating/signing report as separate steps in the workflow
2byrds Jan 27, 2025
1e810ab
api test also uses generated signed reports with pdfs based on max fi…
2byrds Jan 28, 2025
ba31672
Small adjustments to prep for merge
2byrds Jan 29, 2025
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ examples/signify-react-ts/.cache
/signify-ts-test/test/data/600-banks-test-data/
/signify-ts-test/test/data/tmp_reports/
/signify-ts-test/test/data/tmp_reports_unpacked/
/signify-ts-test/test/data/eba_reports/*
/signify-ts-test/bank_test_logs/
/images/
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"deepscan.enable": true
"deepscan.enable": true,
"jest.jestCommandLine": "npm test --",
"jestrunner.configPath": "./signify-ts-test/jest.config.js",
"jest.rootPath": "./signify-ts-test"
}
6 changes: 5 additions & 1 deletion signify-ts-test/docker-compose-banktest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ services:
- VERIFIER_AUTHORIZATIONS=http://vlei-verifier:7676/authorizations/
- VERIFIER_PRESENTATIONS=http://vlei-verifier:7676/presentations/
- FILER_REPORTS=http://reg-pilot-filer:7878/reports/
- VERIFIER_REPORTS=http://vlei-verifier:7676/reports/
- VERIFIER_REQUESTS=http://vlei-verifier:7676/request/verify/
- VERIFIER_ADD_ROT=http://vlei-verifier:7676/root_of_trust/
healthcheck:
Expand All @@ -93,14 +94,17 @@ services:
start_period: 2s

vlei-verifier:
image: gleif/vlei-verifier:dev
image: gleif/vlei-verifier:latest
container_name: vlei-verifier
hostname: vlei-verifier
depends_on:
- vlei-server
- witness-demo
ports:
- 7676:7676
environment:
- KERI_BASER_MAP_SIZE=1500000000
- FILER_CHUNK_SIZE=5000000
healthcheck:
test: ["CMD", "wget", "--spider", "http://vlei-verifier:7676/health"]
interval: 2s
Expand Down
11 changes: 10 additions & 1 deletion signify-ts-test/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ import { Config } from "jest";

const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["<rootDir>/test/*.test.ts"],
projects: ["<rootDir>/test"],
moduleNameMapper: {
"^@src/(.*)$": "<rootDir>/src/$1"
},
globals: {
"ts-jest": {
tsconfig: "tsconfig.json"
}
}
};

export default config;
export default config;
Loading