Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: support for credential and present-proof flows with thid (#609)
- Loading branch information
Anton Baliasnikov
committed
Aug 3, 2023
1 parent
4fb1ca7
commit 9cef8c0
Showing
11 changed files
with
278 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
MERCURY_MEDIATOR_VERSION=0.3.0 | ||
IRIS_SERVICE_VERSION=0.1.0 | ||
PRISM_AGENT_VERSION=1.6.0 | ||
PRISM_NODE_VERSION=v2.1.3 | ||
PRISM_AGENT_VERSION=1.9.2 | ||
PRISM_NODE_VERSION=2.2.1 | ||
PORT=80 | ||
NETWORK=prism | ||
VAULT_DEV_ROOT_TOKEN_ID=root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...formance-tests/atala-performance-tests-k6/src/tests/credentials/credential-schema-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { group } from 'k6'; | ||
import { Options } from 'k6/options'; | ||
import { Issuer } from '../../actors'; | ||
|
||
export let options: Options = { | ||
scenarios: { | ||
smoke: { | ||
executor: 'constant-vus', | ||
vus: 3, | ||
duration: "1s", | ||
}, | ||
}, | ||
thresholds: { | ||
'http_req_duration{group:::Issuer creates credential schema}': ['max >= 0'], | ||
'http_reqs{group:::Issuer creates credential schema}': ['count >= 0'], | ||
'group_duration{group:::Issuer creates credential schema}': ['max >= 0'], | ||
checks: ['rate==1'], | ||
http_req_duration: ['p(95)<=100'], | ||
}, | ||
}; | ||
|
||
export const issuer = new Issuer(); | ||
|
||
export function setup() { | ||
group('Issuer publishes DID', function () { | ||
issuer.createUnpublishedDid(); | ||
issuer.publishDid(); | ||
}); | ||
|
||
return { | ||
issuerDid: issuer.did, | ||
}; | ||
} | ||
|
||
export default (data: { issuerDid: string; }) => { | ||
|
||
// This is the only way to pass data from setup to default | ||
issuer.did = data.issuerDid; | ||
|
||
group('Issuer creates credential schema', function () { | ||
issuer.createCredentialSchema(); | ||
}); | ||
}; |
Oops, something went wrong.