Skip to content

Commit 9887ad8

Browse files
committed
Add 100 institution test file
1 parent 29d96c5 commit 9887ad8

File tree

3 files changed

+118
-6
lines changed

3 files changed

+118
-6
lines changed

cluster/src/test/resources/application.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ hmda {
66
port = ${?HMDA_BENCHMARK_PORT}
77
adminPort = 8081
88
adminPort = ${?HMDA_BENCHMARK_ADMIN_PORT}
9-
nrOfUsers = 10
10-
rampUpTime = 5
11-
feederFile = "institutions10.csv"
9+
nrOfUsers = 50
10+
rampUpTime = 30
11+
feederFile = "institutions100.csv"
1212
}
1313
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
institutionId,fileName
2+
74140,clean_164-lars.txt
3+
24949,clean_164-lars.txt
4+
212465,clean_164-lars.txt
5+
288853,clean_164-lars.txt
6+
18827,clean_164-lars.txt
7+
23456,clean_164-lars.txt
8+
35570,clean_164-lars.txt
9+
886,clean_164-lars.txt
10+
60143,clean_164-lars.txt
11+
3458,clean_164-lars.txt
12+
792,clean_164-lars.txt
13+
27614,clean_164-lars.txt
14+
11640,clean_164-lars.txt
15+
16551,clean_164-lars.txt
16+
2277093,clean_164-lars.txt
17+
2027364,clean_164-lars.txt
18+
5210,clean_164-lars.txt
19+
2318482,clean_164-lars.txt
20+
2282,clean_164-lars.txt
21+
13082,clean_164-lars.txt
22+
77422,clean_164-lars.txt
23+
208244,clean_164-lars.txt
24+
2350222,clean_164-lars.txt
25+
457,clean_164-lars.txt
26+
13103,clean_164-lars.txt
27+
12281,clean_164-lars.txt
28+
63573,clean_164-lars.txt
29+
339858,clean_164-lars.txt
30+
34742,clean_164-lars.txt
31+
143662,clean_164-lars.txt
32+
1864722,clean_164-lars.txt
33+
2161,clean_164-lars.txt
34+
4192,clean_164-lars.txt
35+
27070,clean_164-lars.txt
36+
17259,clean_164-lars.txt
37+
24453,clean_164-lars.txt
38+
18489,clean_164-lars.txt
39+
16748,clean_164-lars.txt
40+
4231,clean_164-lars.txt
41+
14874,clean_164-lars.txt
42+
14865,clean_164-lars.txt
43+
1072246,clean_164-lars.txt
44+
7979,clean_164-lars.txt
45+
26176,clean_164-lars.txt
46+
370271,clean_164-lars.txt
47+
27847,clean_164-lars.txt
48+
7287,clean_164-lars.txt
49+
10849,clean_164-lars.txt
50+
11387,clean_164-lars.txt
51+
3720,clean_164-lars.txt
52+
23504,clean_164-lars.txt
53+
9357,clean_164-lars.txt
54+
2351078,clean_164-lars.txt
55+
64150,clean_164-lars.txt
56+
4839,clean_164-lars.txt
57+
2399940,clean_164-lars.txt
58+
6329,clean_164-lars.txt
59+
31255,clean_164-lars.txt
60+
379920,clean_164-lars.txt
61+
1223440,clean_164-lars.txt
62+
17147,clean_164-lars.txt
63+
229801,clean_164-lars.txt
64+
58243,clean_164-lars.txt
65+
75633,clean_164-lars.txt
66+
48374,clean_164-lars.txt
67+
2376,clean_164-lars.txt
68+
26242,clean_164-lars.txt
69+
9807,clean_164-lars.txt
70+
85052,clean_164-lars.txt
71+
2554,clean_164-lars.txt
72+
18788,clean_164-lars.txt
73+
249612,clean_164-lars.txt
74+
1655797,clean_164-lars.txt
75+
354,clean_164-lars.txt
76+
12030,clean_164-lars.txt
77+
1829,clean_164-lars.txt
78+
1578449,clean_164-lars.txt
79+
1074736,clean_164-lars.txt
80+
266271,clean_164-lars.txt
81+
13390,clean_164-lars.txt
82+
17473,clean_164-lars.txt
83+
33147,clean_164-lars.txt
84+
29878,clean_164-lars.txt
85+
233031,clean_164-lars.txt
86+
41245,clean_164-lars.txt
87+
1454,clean_164-lars.txt
88+
2213046,clean_164-lars.txt
89+
12937,clean_164-lars.txt
90+
28255,clean_164-lars.txt
91+
17464,clean_164-lars.txt
92+
214807,clean_164-lars.txt
93+
26765,clean_164-lars.txt
94+
2318437,clean_164-lars.txt
95+
3588,clean_164-lars.txt
96+
242,clean_164-lars.txt
97+
28013,clean_164-lars.txt
98+
18854,clean_164-lars.txt
99+
2198,clean_164-lars.txt
100+
66154,clean_164-lars.txt
101+
41629,clean_164-lars.txt

cluster/src/test/scala/api/http/benchmark/FilingSimulation.scala

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class FilingSimulation extends Simulation {
1414
val adminPort = config.getInt("hmda.benchmark.adminPort")
1515
val nrOfUsers = config.getInt("hmda.benchmark.nrOfUsers")
1616
val rampUpTime = config.getInt("hmda.benchmark.rampUpTime")
17-
val feeder = csv(config.getString("hmda.benchmark.feederFile"))
17+
val feeder = csv(config.getString("hmda.benchmark.feederFile")).random
1818

1919
val httpProtocol = http
2020
.baseURL(s"http://$host:$port")
@@ -51,7 +51,7 @@ class FilingSimulation extends Simulation {
5151
.header("cfpb-hmda-institutions", "${institutionId}")
5252
.check(status is 201)
5353
.check(jsonPath("$.id.sequenceNumber").saveAs("submissionId")))
54-
.pause(1)
54+
.pause(2)
5555
.exec(http("Upload file")
5656
.post("/institutions/${institutionId}/filings/2017/submissions/${submissionId}")
5757
.header("cfpb-hmda-institutions", "${institutionId}")
@@ -79,8 +79,19 @@ class FilingSimulation extends Simulation {
7979
.exec(http("Get Summary")
8080
.get("/institutions/${institutionId}/filings/2017/submissions/${submissionId}/summary")
8181
.header("cfpb-hmda-institutions", "${institutionId}")
82+
.check(status is 200))
83+
.pause(1)
84+
.exec(http("IRS Report")
85+
.get("/institutions/${institutionId}/filings/2017/submissions/${submissionId}/irs")
86+
.header("cfpb-hmda-institutions", "${institutionId}")
87+
.check(status is 200))
88+
.pause(1)
89+
.exec(http("Sign Submission")
90+
.post("/institutions/${institutionId}/filings/2017/submissions/${submissionId}/sign")
91+
.header("cfpb-hmda-institutions", "${institutionId}")
92+
.body(StringBody(""" { "signed": true } """)).asJSON
8293
.check(status is 200)
83-
.check(jsonPath("$.file.totalLARS") is "164"))
94+
.check(jsonPath("$.status.code") is "10"))
8495

8596
}
8697

0 commit comments

Comments
 (0)