Skip to content

Commit f13be57

Browse files
committed
final review
1 parent a0f63e8 commit f13be57

File tree

6 files changed

+2
-4
lines changed

6 files changed

+2
-4
lines changed

backend/src/fhir_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ def search_immunizations(self, aws_event: APIGatewayProxyEventV1) -> dict:
431431
for vaccine_type in search_params.immunization_targets
432432
if ApiOperationCode.SEARCH in expanded_permissions.get(vaccine_type.lower(), [])
433433
]
434+
print(f"vax type perm: {vax_type_perm}, expanded_permissions {expanded_permissions} ")
434435
if not vax_type_perm:
435436
raise UnauthorizedVaxError
436437
except UnauthorizedVaxError as unauthorized:

backend/src/fhir_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def delete_immunization(
358358
if not item:
359359
raise ResourceNotFoundError(resource_type="Immunization", resource_id=imms_id)
360360

361-
if item.get("DeletedAt") == "reinstated":
361+
if not item.get("DeletedAt") or item.get("DeletedAt") == "reinstated":
362362
vaccine_type = self._vaccine_type(item["PatientSK"])
363363
if not validate_permissions(imms_vax_type_perms, ApiOperationCode.DELETE, [vaccine_type]):
364364
raise UnauthorizedVaxError()

backend/tests/sample_data/permissions_config.py

Whitespace-only changes.

e2e/test_deployment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
You can ignore these tests if you are running them in your local environment"""
1212

1313

14-
@unittest.skip("This test is skipped because it requires a live FHIR server connection.")
1514
class TestDeployment(unittest.TestCase):
1615
proxy_url: str
1716
status_api_key: str

e2e/test_proxy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from lib.env import get_service_base_path, get_status_endpoint_api_key
88

99

10-
@unittest.skip("Skipping test for now")
1110
class TestProxyHealthcheck(unittest.TestCase):
1211

1312
proxy_url: str

e2e/test_sqs_dlq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from botocore.exceptions import ClientError # Handle potential errors
88

99

10-
@unittest.skip("This test is skipped because it requires a live SQS connection.")
1110
class TestSQS(unittest.TestCase):
1211

1312
def setUp(self):

0 commit comments

Comments
 (0)