Skip to content

VED-0000: internal-qa dependency test fixes#1352

Closed
Thomas-Boyle wants to merge 2 commits intomasterfrom
internal-qa-dependency-test-fix
Closed

VED-0000: internal-qa dependency test fixes#1352
Thomas-Boyle wants to merge 2 commits intomasterfrom
internal-qa-dependency-test-fix

Conversation

@Thomas-Boyle
Copy link
Copy Markdown
Contributor

Cause 1: DELETE MNS validation relied on context.gp_code and context.patient_age being populated in the CREATE path. When CREATE message lookup failed, teardown still validated DELETE with unset fields, producing GP mismatch / missing attribute errors.

Fix 1: Added a shared populate_expected_mns_fields(context) helper and call it before both CREATE and DELETE validation. Also initialized patient_age in ScenarioContext.

Cause 2: After the requests upgrade (2.32.5 → 2.33.0) in the MNS publishing path, CREATE notification processing became slower/more variable in the environment (cold start + downstream call timing), and the existing poll budget was too tight, causing intermittent empty CREATE queue reads.

Fix 2: Increased CREATE polling tolerance (max_empty_polls from 3 to 6) to absorb the post-upgrade latency variance while keeping assertion behavior and message validation unchanged.

…cted MNS fields, improving data handling for SQS message validation. Updated context to include patient age and GP code. Adjusted message reading logic to allow for configurable wait times and polling limits based on action type.
…values gracefully. Added checks to prevent overwriting existing context attributes for GP code and patient age, and improved error handling for age calculation to avoid failures during teardown.
@sonarqubecloud
Copy link
Copy Markdown

@Thomas-Boyle
Copy link
Copy Markdown
Contributor Author

Closing as Fatima raising PR with fixes for MNS tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant