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

Add Containerization To Load Test #1130

Merged
merged 23 commits into from
Jun 17, 2024
Merged

Conversation

jorg3lopez
Copy link
Contributor

Run API in Docker During Load Test

This PR adds the logic to run the API in a docker container when performing the load test.

Issue

#1121

saquino0827 and others added 21 commits June 4, 2024 16:44
Co-authored-by: James Herr<[email protected]>
…nerating and linking placer order id, replaced in message
Bring back silence
@saquino0827 saquino0827 marked this pull request as ready for review June 12, 2024 15:20
README.md Outdated Show resolved Hide resolved
warm_up_api() {
echo 'Warming up API...'
pem=$(pwd)/mock_credentials/organization-trusted-intermediary-private-key-local.pem
token=$(jwt encode --exp='+5min' --jti $(uuidgen) --alg RS256 --no-iat -S@${pem})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could read the JWT from the mock_credentials .jwt file to remove the dependency with the jwt CLI

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of the reason for this is to also warm up the Auth endpoint. I found that individually calling the endpoints helps those endpoints perform faster.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I mean is that you could replace the jwt CLI command, for something like this: cat mock_credentials/trusted-intermediary-valid-token.jwt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, for some reason I thought the mock_credentials/trusted-intermediary-valid-token.jwt was the latter step in auth but that makes sense. I'll change this asap.

docker-load-execute.sh Outdated Show resolved Hide resolved
docker-load-execute.sh Outdated Show resolved Hide resolved
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@saquino0827 saquino0827 merged commit 9ea1a90 into main Jun 17, 2024
16 checks passed
@saquino0827 saquino0827 deleted the story/1121/dockerize-load-tests branch June 17, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants