Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

RDM-4217 - Create Case Data with document attachment in perftest env #16

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4bdc0bb
Added extra config parameters to simualate real user conditions duri…
Jul 26, 2018
27ce73d
Added extra config parameters to simualate real user conditions duri…
Jul 26, 2018
a3bd088
Added extra config parameters to simualate real user conditions duri…
Jul 30, 2018
6daf565
Merge branch 'master' of github.com:hmcts/ccd-test-performance
Jul 30, 2018
26ecfa1
Doc Store Performance Test added
Aug 14, 2018
15a4e77
Ignore mac files and results
Aug 14, 2018
7e87c7e
added ES endpoint tests
Oct 31, 2018
74f8a73
Amended ES scenarion
Nov 1, 2018
738cfc8
Align SPROD CCD Data
Mar 12, 2019
baaa325
Adding Probate Data Injection
Mar 22, 2019
5c83999
adding DIV & SSCS create case data
Mar 25, 2019
6de74a7
Adding updated config
Mar 25, 2019
c21ae2f
RDM-4217 Create Case Data with Document attached
Jun 11, 2019
491138f
Removing listofcases csv and SPROD, Sandbox environment configuration
Jun 12, 2019
caf42db
add gradle scripts
Jun 17, 2019
f78ff5c
Merge branch 'master' of https://github.com/hmcts/ccd-test-performanc…
Jun 17, 2019
94744e4
Merge branch 'master' of https://github.com/hmcts/ccd-test-performanc…
Jun 17, 2019
10bbf06
Merge branch 'master' of https://github.com/hmcts/ccd-test-performanc…
Jun 17, 2019
212dae4
Addressing giri's comments
Jun 19, 2019
3134fb5
Addressing reviewing comments from Giri - Moving Elastic Search test …
Jun 19, 2019
d007f60
Removing build folder
Jun 19, 2019
d77d02f
Removing .gradle folder
Jun 19, 2019
ea80273
Updated application.conf and removed the sensitive info
Jun 19, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*.iml
.idea/*
target/*

results/
src.zip
.DS_Store
/gatling.log
*.zip
92 changes: 52 additions & 40 deletions src/test/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,56 +69,67 @@ test {
createCaseUrl = "caseworkers/6687/jurisdictions/TEST/case-types/MarkdownTestCaseType/cases/1519030229912349"
}

cnp_sanbox {
maxSimulationDurationMinutes = 99999
httpProxyHost = "proxyout.reform.hmcts.net"
httpProxyPort = "8080"
userCcdId = 6687
userImportId = 445
idamS2SUrl = "http://betaDevBccidamS2SLB.reform.hmcts.net"
idamUserTokenUrl = "http://betaDevBccidamAppLB.reform.hmcts.net"
userProfileUrl = "https://ccd-user-profile-api-sandbox.service.core-compute-sandbox.internal"
caseDataUrl = "https://ccd-data-store-api-sandbox.service.core-compute-sandbox.internal"
caseDefinitionUrl = "https://ccd-definition-store-api-sandbox.service.core-compute-sandbox.internal"
dataStoreS2STokenGeneratorSecret = "${IDAM_KEY_CCD_DATA_STORE}"
gatewayS2STokenGeneratorSecret = "${IDAM_KEY_CCD_GATEWAY}"
getCaseUrl = "caseworkers/6687/jurisdictions/DIVORCE/case-types/DIVORCE/cases/1512470862480575"
createCaseUrl = "caseworkers/6687/jurisdictions/PROBATE/case-types/GrantOfRepresentation/cases"
}

cnp_sprod {
cnp_perftest {
maxSimulationDurationMinutes = 99999
maxResponseTime = 20000
meanResponseTime = 1000
minthinktime = 2
maxthinktime = 3
minWaitForNextIteration = 4
maxWaitForNextIteration = 5
totalDuration = 2
reachRPSTarget = 20
reachRPSDuration = 10
reachRPSHoldForDuration = 60
jumptoRPSTarget = 50
minthinktime = 10
maxthinktime = 25
minWaitForNextIteration = 10
maxWaitForNextIteration = 25
totalDuration = 1
reachRPSTarget = 100
reachRPSDuration = 600
reachRPSHoldForDuration = 300
jumptoRPSTarget = 400
jumptoRPSDuration = 900
httpProxyHost = "proxyout.reform.hmcts.net"
httpProxyPort = "8080"
userCcdId = 176475
userImportId = 445
idamS2SUrl = "http://rpe-service-auth-provider-sprod.service.core-compute-sprod.internal"
idamUserTokenUrl = "http://betaDevBccidamAppLB.reform.hmcts.net"
userProfileUrl = "https://ccd-user-profile-api-sprod.service.core-compute-sprod.internal"
caseDataUrl = "https://ccd-data-store-api-sprod.service.core-compute-sprod.internal"
caseDefinitionUrl = "https://ccd-definition-store-api-sprod.service.core-compute-sprod.internal"
userCcdId = "81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c"
userImportId = "d174b21b-d8e9-4616-8bdd-ae6fca91388e"
idamS2SUrl = "http://rpe-service-auth-provider-perftest.service.core-compute-perftest.internal"
idamUserTokenUrl = "http://idam-api-idam-perftest.service.core-compute-idam-perftest.internal:80"
userProfileUrl = "https://ccd-user-profile-api-perftest.service.core-compute-perftest.internal"
escaseDataUrl = "https://ccd-api-gateway-web-perftest.service.core-compute-perftest.internal"
caseDataUrl = "https://ccd-data-store-api-perftest.service.core-compute-perftest.internal"
caseDefinitionUrl = "https://ccd-definition-store-api-perftest.service.core-compute-perftest.internal"
ccdCaseMgmtUrl = "https://ccd-case-management-web-perftest.service.core-compute-perftest.internal"
dataStoreS2STokenGeneratorSecret = "${IDAM_KEY_CCD_DATA_STORE}"
gatewayS2STokenGeneratorSecret = "${IDAM_KEY_CCD_GATEWAY}"
getCaseUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases/1525778314235511"
createCaseUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases"
getUserProfileUrl = "caseworkers/176475/profile"
searchCases = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases?state=CaseCreated"
getCaseUrl = "aggregated/caseworkers/a2fe2e87-94f7-44a9-a272-5c413a4775c0/jurisdictions/AUTOTEST1/case-types/AAT/cases/1531212825013102"
getCaseUrlV2 = "internal/cases/1559642192860544"
createCaseUrl = "caseworkers/a2fe2e87-94f7-44a9-a272-5c413a4775c0/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
validateCaseUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases"
getUserProfileUrl = "caseworkers/a2fe2e87-94f7-44a9-a272-5c413a4775c0/profile"
getUserProfileUrlV2 = "caseworkers/539560/profile"
searchCases = "aggregated/caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases?state=CaseCreated"
getPaginationMetadataUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases/pagination_metadata?state=CaseCreated"
saveEventUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases/1525778314235511/events"
saveEventUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/CASETYPE2/cases/1531207599597587/events"
searchInputDetails = "aggregated/caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/inputs"
workbasketInputDetails = "/aggregated/caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/work-basket-inputs"
getPrintableDocumentsForEvent = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/CASETYPE2/cases/1531207599597587/documents"
validateCaseDetails = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/validate"
ESSearch = "searchCases"
docStoreBashURL123 = "https://dm-store-perftest.service.core-compute-perftest.internal"
Copy link
Contributor

Choose a reason for hiding this comment

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

docStoreBashURL123? what does that means?

Copy link
Author

Choose a reason for hiding this comment

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

docStoreBashURL123 not needed. removed

docStoreBashURL = "https://gateway-ccd.perftest.platform.hmcts.net"
prodSSCSWorkBasket = "aggregated/caseworkers/560966/jurisdictions/SSCS/case-types/Benefit/cases?view=WORKBASKET&page=1&case.caseReference=test1234567"
prodSSCSPagination = "caseworkers/560966/jurisdictions/SSCS/case-types/Benefit/cases/pagination_metadata?case.caseReference=test123456"
Copy link
Contributor

Choose a reason for hiding this comment

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

560966 used in multiple places. Duplication problem. Perhaps extract in a variable and reuse it?

prodDIVORCED8caseReference = "aggregated/caseworkers/560966/jurisdictions/DIVORCE/case-types/DIVORCE/cases?page=1&case.D8caseReference=EZ12D81234"
prodDIVORCED8caseReferencePagination = "caseworkers/560966/jurisdictions/DIVORCE/case-types/DIVORCE/cases/pagination_metadata?case.D8caseReference=EZ12D81234"
createCaseDIVUrl = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
Copy link
Contributor

Choose a reason for hiding this comment

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

createCaseDIVUrl, createCaseSSCSUrl, createCaseCMCUrl... all duplicated. Needs sorting out

createCaseSSCSUrl = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createCaseCMCUrl = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createCaseProbateGrantApplicationUrl = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createCaseProbateCaveatApplicationUrl = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createIACaseAppURL = "caseworkers/81d4aa29-7ba2-4884-a5a4-e2a0211bfe7c/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createFPLCaseAppURL = "caseworkers/77a5a58b-4d17-43b1-8df4-5cccd6cb1472/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createFRCaseAppURL = "caseworkers/44d5d0eb-0739-49e6-8c5e-bd556ef633d2/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
createETHOSCaseAppURL = "caseworkers/b1d866d5-2e78-454a-b18a-95020d0bb603/jurisdictions/:jurisdictions_reference/case-types/:casetype_reference/cases"
saveEventETHOSUploadDocsUrl = "caseworkers/30b48b61-7abf-4747-9270-8e86f466c0d6/jurisdictions/PUBLICLAW/case-types/TRIB_MVP_3_TYPE_Manc/cases/1559571632599539/events"
}



cnp_aat {
maxSimulationDurationMinutes = 99999
maxResponseTime = 20000
Expand All @@ -127,7 +138,7 @@ cnp_aat {
maxthinktime = 2
minWaitForNextIteration = 1
maxWaitForNextIteration = 2
totalDuration = 1000
totalDuration = 1
reachRPSTarget = 50
reachRPSDuration = 10
reachRPSHoldForDuration = 60
Expand All @@ -152,6 +163,7 @@ cnp_aat {
cases = ["1521477620166395", "1521-4779-1892-1964", "1521477967979301", "1521477963778319", "1521-4779-6301-4715", "1521-4779-5350-7637", "1521-4779-4876-0499", "1521-4779-4365-6189"]
getCaseUrl = "caseworkers/18/jurisdictions/SSCS/case-types/Benefit/cases/:case_reference"
saveEventUrl = "caseworkers/6687/jurisdictions/PROBATE/case-types/GrantOfRepresentation/cases/1520505513296274/events"
createCaseUrl = "caseworkers/176475/jurisdictions/AUTOTEST1/case-types/AAT/cases?ignore-warning=false"
createCaseUrl = "caseworkers/6687/jurisdictions/PROBATE/case-types/GrantOfRepresentation/cases"
getPaginationMetadataUrl = "caseworkers/6687/jurisdictions/PROBATE/case-types/GrantOfRepresentation/cases/pagination_metadata?state=CaseCreated"
searchCases = "caseworkers/6687/jurisdictions/PROBATE/case-types/GrantOfRepresentation/cases?state=CaseCreated"
Expand Down
Binary file added src/test/resources/bodies/1MB.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions src/test/resources/data/listoffiles.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
filename
1MB.pdf
41 changes: 17 additions & 24 deletions src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>

<!-- <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern>
<immediateFlush>false</immediateFlush>
</encoder>
</appender> -->
<!-- <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern>
</encoder>
<immediateFlush>false</immediateFlush>
</appender> -->

<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>gatling.log</file>
Expand All @@ -21,22 +17,19 @@
</appender>

<!-- Uncomment for logging ALL HTTP request and responses -->
<!-- <logger name="io.gatling.http" level="TRACE" /> -->
<!-- <logger name="io.gatling.http.ahc" level="TRACE" /> -->
<!-- <logger name="io.gatling.http.response" level="TRACE" /> -->
<!-- Uncomment for logging ONLY FAILED HTTP request and responses -->
<logger name="io.gatling.http" level="TRACE" />
<logger name="io.gatling.http.ahc" level="DEBUG" />
<logger name="io.gatling.http.response" level="DEBUG" />

<root level="WARN">
<appender-ref ref="FILE" />
</root>
<logger name="io.gatling.http.ahc" level="TRACE" />
<logger name="io.gatling.http.response" level="TRACE" />
<!-- Uncomment for logging ONLY FAILED HTTP request and responses -->
<!-- <logger name="io.gatling.http.ahc" level="DEBUG" />-->
<!-- <logger name="io.gatling.http.response" level="DEBUG" />-->

<!-- <root level="WARN">
<appender-ref ref="CONSOLE" />
</root> -->

<root level="WARN">
<appender-ref ref="FILE" />
</root>

<!-- <root level="WARN">
<appender-ref ref="CONSOLE" />
</root> -->

</configuration>
Loading