Skip to content

Commit 4acdd6a

Browse files
committed
Fixing integration tests for sonar issues fixes
1 parent 81af001 commit 4acdd6a

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

application/event_replay/event_replay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Configure boto3 client with explicit timeout to prevent hanging in Lambda
1717
# Timeouts tuned for typical DynamoDB/SQS operations while preventing indefinite hangs
18-
boto_config = Config(connect_timeout=10, read_timeout=15)
18+
boto_config = Config(connect_timeout=60, read_timeout=60)
1919

2020
# Create clients at module level for connection reuse across Lambda invocations
2121
dynamodb_client = client("dynamodb", config=boto_config)

application/ingest_change_event/ingest_change_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from common.utilities import extract_body, get_sequence_number
1818

1919
# Configure boto3 client with explicit timeout to prevent hanging in Lambda
20-
boto_config = Config(connect_timeout=10, read_timeout=15)
20+
boto_config = Config(connect_timeout=60, read_timeout=60)
2121

2222
logger = Logger()
2323
tracer = Tracer()

application/service_matcher/service_matcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from common.utilities import extract_body
1919

2020
# Configure boto3 client with explicit timeout to prevent hanging in Lambda
21-
boto_config = Config(connect_timeout=10, read_timeout=15)
21+
boto_config = Config(connect_timeout=60, read_timeout=60)
2222

2323
logger = Logger()
2424
tracer = Tracer()

application/service_sync/service_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
tracer = Tracer()
2323
logger = Logger()
24-
boto_config = Config(connect_timeout=10, read_timeout=15)
24+
boto_config = Config(connect_timeout=60, read_timeout=60)
2525
sqs_client = client("sqs", config=boto_config)
2626

2727

test/integration/features/F006_Opening_Times.feature

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Feature: F006. Opening times
3333
@complete @opening_times
3434
Scenario: F006SXX6. Confirm recently added specified opening date can be removed from Dos
3535
Given a basic service is created
36-
And the change event is "open" on date "Jan 01 2026"
36+
And the change event is "open" on date "Jan 01 2027"
3737
When the Changed Event is sent for processing with "valid" api key
38-
Then DoS is open on "Jan 01 2026"
38+
Then DoS is open on "Jan 01 2027"
3939
Given the change event has no specified opening dates
4040
When the Changed Event is sent for processing with "valid" api key
41-
Then there is no longer a specified opening on "Jan 01 2026"
41+
Then there is no longer a specified opening on "Jan 01 2027"
4242
And the service history is updated with the "removed" specified opening times
4343

4444
@complete @opening_times
@@ -55,29 +55,29 @@ Feature: F006. Opening times
5555
@complete @opening_times
5656
Scenario: F006SX8. Additional date changes open to closed
5757
Given an entry is created in the services table
58-
And the service is "open" on date "Jan 01 2026"
58+
And the service is "open" on date "Jan 01 2027"
5959
And the entry is committed to the services table
60-
And the change event is "closed" on date "Jan 01 2026"
60+
And the change event is "closed" on date "Jan 01 2027"
6161
When the Changed Event is sent for processing with "valid" api key
62-
Then DoS is closed on "Jan 01 2026"
62+
Then DoS is closed on "Jan 01 2027"
6363

6464
@complete @opening_times
6565
Scenario: F006SX9. Additional date changes closed to open
6666
Given an entry is created in the services table
67-
And the service is "closed" on date "Jan 01 2026"
67+
And the service is "closed" on date "Jan 01 2027"
6868
And the entry is committed to the services table
69-
And the change event is "open" on date "Jan 01 2026"
69+
And the change event is "open" on date "Jan 01 2027"
7070
When the Changed Event is sent for processing with "valid" api key
71-
Then DoS is open on "Jan 01 2026"
71+
Then DoS is open on "Jan 01 2027"
7272

7373
@complete @opening_times
7474
Scenario: F006SX10. Additional date changes times changed
7575
Given an entry is created in the services table
76-
And the service is "open" on date "Jan 01 2026"
76+
And the service is "open" on date "Jan 01 2027"
7777
And the entry is committed to the services table
78-
And the change event specified opening is "open" from "10:00" to "16:00" on date "Jan 01 2026"
78+
And the change event specified opening is "open" from "10:00" to "16:00" on date "Jan 01 2027"
7979
When the Changed Event is sent for processing with "valid" api key
80-
Then DoS is open from "10:00" until "16:00" on "Jan 01 2026"
80+
Then DoS is open from "10:00" until "16:00" on "Jan 01 2027"
8181
And the "service-sync" lambda does not show "report_key" with value "BLANK_STANDARD_OPENINGS"
8282

8383
@complete @opening_times

0 commit comments

Comments
 (0)