Skip to content

Commit

Permalink
Merge pull request #37094 from hmcts/EM-6540-test-file-creation
Browse files Browse the repository at this point in the history
Added in config for em-hrs-api on perftest
  • Loading branch information
yogesh-hullatti authored Feb 28, 2025
2 parents 13977ed + da8db05 commit 90d6830
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/em/automation/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resources:
- ../em-showcase/image-policy.yaml
- ../em-hrs-api/image-repo.yaml
- ../em-hrs-api/demo-image-policy.yaml
- ../em-hrs-api/perftest-image-policy.yaml
- ../em-hrs-api/image-policy.yaml
- ../em-stitching/image-repo.yaml
- ../em-stitching/image-policy.yaml
Expand Down
17 changes: 17 additions & 0 deletions apps/em/em-hrs-api/perftest-image-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: perftest-em-hrs-api
annotations:
# hmcts.github.com/prod-automated: enabled
hmcts.github.com/prod-automated: disabled
spec:
filterTags:
# pattern: '^prod-[a-f0-9]+-(?P<ts>[0-9]+)'
pattern: '^pr-2351-[a-f0-9]+-(?P<ts>[0-9]+)'
extract: '$ts'
policy:
alphabetical:
order: asc
imageRepositoryRef:
name: em-hrs-api
6 changes: 6 additions & 0 deletions apps/em/em-hrs-api/perftest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ metadata:
spec:
values:
java:
image: hmctspublic.azurecr.io/em/hrs-api:pr-2351-3c83ce7-20250228100826 #{"$imagepolicy": "flux-system:perftest-em-hrs-api"}
cpuRequests: "1000m"
cpuLimits: "2000m"
environment:
TTL_ENABLED: false
JOB_TEST_FILE_CREATION_ENABLED: true
JOB_TEST_FILE_CREATION_SCHEDULE: '0 15 17 * * *'
JOB_TEST_FILE_CREATION_TEST_CASES: 10
JOB_TEST_FILE_CREATION_MAX_CONCURRENT_UPLOADS: 10

0 comments on commit 90d6830

Please sign in to comment.