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

Feature/tri 387 load and performance tests #199

Merged
merged 9 commits into from
Mar 16, 2023

Conversation

ds-jhartmann
Copy link

  • Added load test module using Gatling
  • Added simple load test scenario

final String clientId = System.getenv("KEYCLOAK_CLIENT_ID");
String body = "grant_type=client_credentials&client_id=" + clientId + "&client_secret=" + clientSecret;
final String irsUrl = System.getenv("IRS_HOST");
final int testCycles = Integer.parseInt(System.getenv("TEST_CYCLES"));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

Potential uncaught 'java.lang.NumberFormatException'.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ds-jhartmann ds-jhartmann merged commit 0ab27c9 into main Mar 16, 2023
@ds-jhartmann ds-jhartmann deleted the feature/TRI-387-Load-and-Performance-Tests branch March 16, 2023 09:46
ds-psosnowski added a commit that referenced this pull request Mar 12, 2024
ds-psosnowski added a commit that referenced this pull request Mar 12, 2024
ds-psosnowski added a commit that referenced this pull request Mar 13, 2024
ds-psosnowski added a commit that referenced this pull request Mar 13, 2024
dsmf added a commit that referenced this pull request Mar 13, 2024
 1) harden test PolicyStoreServiceTest#whenUpdate by asserting that the creation timestamp is not changed and that the validUntil timestamp is changed as expected

 2) clean method signature by moving loop from controller to the service method
dsmf added a commit that referenced this pull request Mar 13, 2024
dsmf added a commit that referenced this pull request Mar 13, 2024
dsmf added a commit that referenced this pull request Mar 13, 2024
- updatePolicies_shouldAddPolicyToEachBpn
- updatePolicies_shouldAddBpnsToEachPolicy
dsmf added a commit that referenced this pull request Mar 14, 2024
dsmf added a commit that referenced this pull request Mar 14, 2024
dsmf added a commit that referenced this pull request Mar 14, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
By moving business logic from PolicyStoreController to PolicyStoreService the PolicyStoreServiceTest can test all business logic while the PolicyStoreControllerTest can focus on web layer concerns such as parameter validation.

Besides this, tests were structured via Nested in order to group tests for each method together. This helps not to forget about test cases.
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
dsmf added a commit that referenced this pull request Mar 28, 2024
- fix Get all policies
- add Get policies for BPN
- fix Create policy body ("payload" with single policy instead of array named "policies"), see #249
dsmf added a commit that referenced this pull request Apr 8, 2024
dsmf added a commit that referenced this pull request Apr 8, 2024
dsmf added a commit that referenced this pull request Apr 9, 2024
dsmf added a commit that referenced this pull request Apr 9, 2024
reason: better distinguish between configured and registered default policy/policies
dsmf added a commit that referenced this pull request Apr 9, 2024
dsmf added a commit that referenced this pull request Apr 9, 2024
including:
- additional tests
- improved test naming
- superfluous SuppressWarnings removed
dsmf added a commit that referenced this pull request Apr 9, 2024
dsmf added a commit that referenced this pull request Apr 9, 2024
dsmf added a commit that referenced this pull request Apr 9, 2024
dsmf added a commit that referenced this pull request Apr 10, 2024
dsmf added a commit that referenced this pull request Apr 10, 2024
dsmf added a commit that referenced this pull request Apr 10, 2024
dsmf added a commit that referenced this pull request Apr 10, 2024
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.

2 participants