Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-3011: Rest hook notification validation #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dclark43
Copy link

Work in progress - creating a PR as a placeholder

Need to figure out how to test the rest-hook notifications, unsure how to run those tests currently

@dclark43 dclark43 self-assigned this Oct 31, 2024
@dclark43 dclark43 marked this pull request as ready for review January 8, 2025 19:15
assert(request.content_type_header == mime_type,
'Content type of request does not match the Subscription MIME type')
# Verification for hl7.fhir.uv.subscriptions_1.1.0@27
assert(request.header.include?(subscription&.channel&.header),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Subscription.channel.header is a list, so some looping will be needed. Check if include? is the right comparison.

'Content type of request does not match the Subscription MIME type')
# Verification for hl7.fhir.uv.subscriptions_1.1.0@27
assert(request.header.include?(subscription&.channel&.header),
'Subscriptoin channel header is not conveyed as HTTP request header')
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo Subscriptoin -> Subscription

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.

2 participants