-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(RHIDP-2120): Add resoruces for running performance test for Dev…
…eloper Sandbox (#56) Signed-off-by: Pavel Macík <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi | ||
|
||
ENV RHDH_BASE_URL=localhost | ||
|
||
RUN yum install -y jq && yum clean all | ||
|
||
COPY mvp.sh /tmp/mvp.sh | ||
|
||
CMD /tmp/mvp.sh |
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,9 @@ | ||
#!/bin/bash | ||
|
||
RHDH_BASE_URL=${RHDH_BASE_URL:-localhost} | ||
|
||
curl="curl -sSL --insecure" | ||
|
||
token=$($curl "${RHDH_BASE_URL}/api/auth/guest/refresh" | jq -r '.backstageIdentity.token') | ||
|
||
$curl -H "Authorization: Bearer $token" "${RHDH_BASE_URL}/api/catalog/entities?filter=kind=api" | jq -r |
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,21 @@ | ||
kind: Template | ||
apiVersion: template.openshift.io/v1 | ||
metadata: | ||
name: user-workloads | ||
objects: | ||
- apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: rhdh-perf | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: curl-container | ||
image: quay.io/pmacik-testing/rhdh-perf-testing-client:v1.2 | ||
imagePullPolicy: Always | ||
env: | ||
- name: RHDH_BASE_URL | ||
value: "${RHDH_URL}" | ||
restartPolicy: Never | ||
backoffLimit: 4 |