Skip to content

Commit f22747f

Browse files
committed
Add Football Lambda Handler integration test
1 parent 33f760a commit f22747f

7 files changed

Lines changed: 786 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ project/boot/
1616
project/plugins/project/
1717
dynamodb-local/
1818
dynamodb-local-common/
19+
dynamodb-local-football/
1920
dynamodb-local-schedule-lambda/
2021
dynamodb-local-live-activities/
2122

build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,14 @@ lazy val commonEventBusPusher = project
311311

312312
lazy val football = lambda("football", "football")
313313
.dependsOn(commonEventBusPusher)
314+
.settings(LocalDynamoDBFootball.settings)
315+
.settings(
316+
startDynamoDBLocal := startDynamoDBLocal.dependsOn(Test / compile).value,
317+
Test / test := (Test / test).dependsOn(startDynamoDBLocal).value,
318+
Test / testOnly := (Test / testOnly).dependsOn(startDynamoDBLocal).evaluated,
319+
Test / testQuick := (Test / testQuick).dependsOn(startDynamoDBLocal).evaluated,
320+
Test / testOptions += dynamoDBLocalTestCleanup.value,
321+
)
314322
.settings(
315323
resolvers += "Guardian GitHub Releases" at "https://guardian.github.com/maven/repo-releases",
316324
libraryDependencies ++= Seq(
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<matches>
3+
<match matchID="4484328" date="11/02/2025" koTime="20:00">
4+
<competition competitionID="300" seasonID="5990">The Emirates FA Cup 24/25</competition>
5+
<stage stageNumber="1" stageType="Knockout"></stage>
6+
<round roundNumber="4">Fourth Round</round>
7+
<leg>1</leg>
8+
<liveMatch>No</liveMatch>
9+
<result>Yes</result>
10+
<previewAvailable>No</previewAvailable>
11+
<reportAvailable>No</reportAvailable>
12+
<lineupsAvailable>Yes</lineupsAvailable>
13+
<matchStatus>FT</matchStatus>
14+
<attendance>8330</attendance>
15+
<referee refereeID="603491">Andrew Kitchen</referee>
16+
<venue venueID="7671">St James Park</venue>
17+
<homeTeam teamID="76">
18+
<teamName>Exeter</teamName>
19+
<score>2</score>
20+
<htScore>1</htScore>
21+
<aggregateScore></aggregateScore>
22+
<scorers>
23+
<![CDATA[Josh Magennis (5),Josh Magennis (50)]]>
24+
</scorers>
25+
</homeTeam>
26+
<awayTeam teamID="15">
27+
<teamName>Nottm Forest</teamName>
28+
<score>2</score>
29+
<htScore>2</htScore>
30+
<aggregateScore></aggregateScore>
31+
<scorers>
32+
<![CDATA[Ramon Sosa (15),Taiwo Awoniyi (37)]]>
33+
</scorers>
34+
</awayTeam>
35+
<comments>Nottm Forest win 4-2 on penalties.</comments>
36+
</match>
37+
</matches>

0 commit comments

Comments
 (0)