Skip to content

Conversation

@robg-test
Copy link
Contributor

@robg-test robg-test commented Jan 2, 2026

Overview

Jira ticket: TBC

Description

Context

Checklist

Tasks for all changes:

  • 1. I have linked this PR to its Jira ticket.
  • 2. I have run git pre-commits. (WIP)
  • 3. I have added and/or updated relevant tests.
  • 4. I have updated relevant documentation.
  • 5. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
  • 6. I have successfully deployed this change to a sandbox and witnessed unit and e2e tests passing:

Additional tasks for UI changes (delete if not applicable):

  • 1. I have run the UI Smoke Tests against the deployed sandbox and witnessed it passing:
  • 2. I have added evidence (to this PR) e.g. screenshots/gifs of all visual changes.

@robg-test robg-test changed the title Prmp 631 [PRMP-631] Bulk Upload E2e Tests Jan 2, 2026
@robg-test robg-test marked this pull request as ready for review January 2, 2026 15:21
@robg-test robg-test requested review from a team as code owners January 2, 2026 15:21
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2026

if self.workspace in {"pre-prod", "ndr-test"}
else f"api-{self.workspace}.{domain}"
f"api.{self.workspace}.{domain}" if self.workspace in {"pre-prod",
"ndr-test"} else f"api-{self.workspace}.{domain}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks a bit weird. If you commit in the dev container then it should run the pre-commits etc.



class DataHelper:
class PatientRecordDataHelper:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to change this class name?

)
return self.dynamo_service.get_item(table_name=self.dynamo_table, key={"ID": record["id"]})

def scan_lloyd_george_table(self):
Copy link
Contributor

@jameslinnell jameslinnell Jan 2, 2026

Choose a reason for hiding this comment

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

Unless I'm missing something, all of these new methods are only relevant to the Lloyd George tests. So why not put them in the extended LloydGeorgeDataHelper class?

assert (
f"https://{APIM_ENDPOINT}/national-document-repository/FHIR/R4/DocumentReference/{LLOYD_GEORGE_SNOMED}~"
in attachment_url
f"https://{APIM_ENDPOINT}/national-document-repository/FHIR/R4/DocumentReference/{LLOYD_GEORGE_SNOMED}~"
Copy link
Contributor

Choose a reason for hiding this comment

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

Spacing feels wrong compared to main python code are tests different are they supposed to be spaced like this?

fetch_with_retry,
)
from tests.e2e.helpers.data_helper import LloydGeorgeDataHelper
from tests.e2e.helpers.patient_record_data_helper import LloydGeorgeDataHelper
Copy link
Contributor

Choose a reason for hiding this comment

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

wonder if its worth renaming class to from LloydGeorgeDataHelper to something better also? might be to big for this ticket?

@jameslinnell
Copy link
Contributor

Seems to be a lot of formatting going on here. Are you sure you're running pre-commits through the dev container?


def fetch_with_retry_mtls(
session, url, headers, condition_func=None, max_retries=5, delay=10
session, url, headers, condition_func=None, max_retries=5, delay=10
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting doesn't seem right

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.

3 participants