Skip to content

Commit

Permalink
fix(RHIDP-4302): fix test user names introduced in redhat-performance#91
Browse files Browse the repository at this point in the history


Signed-off-by: Pavel Macík <[email protected]>
  • Loading branch information
pmacik committed Oct 3, 2024
1 parent 1f0a4ea commit 0805310
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scenarios/mvp-1dot1.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def on_test_start(environment, **_kwargs):
if not isinstance(environment.runner, WorkerRunner):
users = []
for i in range(1, int(environment.runner.target_user_count)+1):
users.append(f"test{i}")
users.append(f"t{i}")

worker_count = environment.runner.worker_count
chunk_size = int(len(users) / worker_count)
Expand Down
51 changes: 51 additions & 0 deletions scenarios/mvp-1dot2.metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Results
{%macro results_scenario(name) -%}
- name: results.{{name | replace('.', '_')}}.locust_requests_avg_response_time
monitoring_query: max(locust_requests_avg_response_time{name=~"{{name}}"})
monitoring_step: 15
- name: results.{{name | replace('.', '_')}}.locust_requests_avg_content_length
monitoring_query: max(locust_requests_avg_content_length{name=~"{{name}}"})
monitoring_step: 15
- name: results.{{name | replace('.', '_')}}.locust_requests_current_rps
monitoring_query: max(locust_requests_current_rps{name=~"{{name}}"})
monitoring_step: 15
- name: results.{{name | replace('.', '_')}}.locust_requests_current_fail_per_sec
monitoring_query: max(locust_requests_current_fail_per_sec{name=~"{{name}}"})
monitoring_step: 15
- name: results.{{name | replace('.', '_')}}.locust_requests_num_failures
monitoring_query: sum(locust_requests_num_failures{name=~"{{name}}"})
monitoring_step: 15
- name: results.{{name | replace('.', '_')}}.locust_errors
monitoring_query: sum(locust_errors{name=~"{{name}}"})
monitoring_step: 15
{%- endmacro %}

{{ results_scenario('/api/auth/oauth2Proxy/refresh') }}
{{ results_scenario('/auth/realms/backstage/login-actions/authenticate\\\\?session_code=.*&.*&client_id=backstage&.*&execution=.*')}}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dapi') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dapi%2Crelations\\\\.ownedBy%3D.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dcomponent') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Duser%3A.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Duser%3A.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+%2Cspec_type%3Dlibrary') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=0&filter=kind%3Dcomponent%2Cspec_type%3Dlibrary') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&cursor=.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&filter=kind%3Dapi%2Crelations\\\\.ownedBy%3Duser%3A.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&filter=kind%3Dcomponent') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Duser%3A.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+') }}
{{ results_scenario('/api/catalog/entities/by-query\\\\?limit=20&orderField=metadata\\\\.name%2Casc&filter=kind%3Dcomponent%2Crelations\\\\.ownedBy%3Duser%3A.+%2Crelations\\\\.ownedBy%3Dgroup%3A.+%2Cspec_type%3Dlibrary') }}
{{ results_scenario('/api/catalog/entities/by-refs') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=kind') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.namespace') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.namespace&filter=kind%3Dapi') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.namespace&filter=kind%3Dcomponent') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.tags') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.tags&filter=kind%3Dapi') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=metadata\\\\.tags&filter=kind%3Dcomponent') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=relations\\\\.ownedBy') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=spec\\\\.lifecycle') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=spec\\\\.lifecycle&filter=kind%3Dapi') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=spec\\\\.lifecycle&filter=kind%3Dcomponent') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=spec\\\\.type&filter=kind%3Dapi') }}
{{ results_scenario('/api/catalog/entity-facets\\\\?facet=spec\\\\.type&filter=kind%3Dcomponent') }}
Loading

0 comments on commit 0805310

Please sign in to comment.