-
Notifications
You must be signed in to change notification settings - Fork 1
FI-4186: UDAP Attestation tests #41
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4f3bcb2
Attestation tests
ChristineDuong 7eacab9
Fix requirements
ChristineDuong bc71e8b
Fix duplicate test name
ChristineDuong d0e20e2
Change to verb
ChristineDuong a8a2b25
Linting
ChristineDuong feda649
Line lengths
ChristineDuong 4a3002f
Fix requirements
ChristineDuong 2dc1d49
Fix indentations; added some links
ChristineDuong ce1df91
Separate tests
ChristineDuong 5eebe31
Added coverage
ChristineDuong 67f7f74
Updated requirements file
ChristineDuong f5dbf9a
Fixed test id
ChristineDuong 64b75d6
made attestation tests optional
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 30 additions & 30 deletions
60
...p_security_test_kit/requirements/generated/udap_security_client_requirements_coverage.csv
Large diffs are not rendered by default.
Oops, something went wrong.
82 changes: 41 additions & 41 deletions
82
lib/udap_security_test_kit/requirements/generated/udap_security_requirements_coverage.csv
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 35 additions & 33 deletions
68
...ty_test_kit/visual_inspection_and_attestation/client/idp_supports_required_scopes_test.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,42 @@ | ||
| module UDAPSecurityTestKit | ||
| class IdPSupportsRequiredScopesAttestationTest < Inferno::Test | ||
| title 'IdP supports required scopes' | ||
| id :udap_security_idp_supports_scopes | ||
| description %( | ||
| Identity Providers (IdPs) SHALL include `"openid"` and `"udap"` in the array of scopes returned for the `scopes_supported` parameter. | ||
| title 'Supports required scopes in IdPs' | ||
| id :udap_security_idp_supports_scopes | ||
| description %( | ||
| Identity Provider (IdP) includes `"openid"` and `"udap"` in the array of scopes returned | ||
| for the `scopes_supported` parameter. | ||
| ) | ||
| verifies_requirements 'hl7.fhir.us.udap-security@235' | ||
| verifies_requirements 'hl7.fhir.us.udap-security_1.0.0@235' | ||
|
|
||
| input :idp_supports_required_scopes, | ||
| title: "IdP supports required scopes", | ||
| description: %( | ||
| I attest that the Identity Provider (IdP) includes `"openid"` and `"udap"` in the array of scopes returned for the `scopes_supported` parameter. | ||
| input :idp_supports_required_scopes, | ||
| title: 'Supports required scopes', | ||
| description: %( | ||
| I attest that the Identity Provider (IdP) includes `"openid"` and `"udap"` in the array of scopes returned | ||
| for the `scopes_supported` parameter. | ||
| ), | ||
| type: 'radio', | ||
| default: 'false', | ||
| options: { | ||
| list_options: [ | ||
| { | ||
| label: 'Yes', | ||
| value: 'true' | ||
| }, | ||
| { | ||
| label: 'No', | ||
| value: 'false' | ||
| } | ||
| ] | ||
| } | ||
| input :idp_supports_required_scopes_note, | ||
| title: 'Notes, if applicable:', | ||
| type: 'textarea', | ||
| optional: true | ||
| type: 'radio', | ||
| default: 'false', | ||
| options: { | ||
| list_options: [ | ||
| { | ||
| label: 'Yes', | ||
| value: 'true' | ||
| }, | ||
| { | ||
| label: 'No', | ||
| value: 'false' | ||
| } | ||
| ] | ||
| } | ||
| input :idp_supports_required_scopes_note, | ||
| title: 'Notes, if applicable:', | ||
| type: 'textarea', | ||
| optional: true | ||
|
|
||
| run do | ||
| assert idp_supports_required_scopes == 'true', | ||
| 'Identity Provider (IdP) did not demonstrate support for required scopes.' | ||
| pass idp_supports_required_scopes_note if idp_supports_required_scopes_note.present? | ||
| end | ||
| run do | ||
| assert idp_supports_required_scopes == 'true', | ||
| 'Identity Provider (IdP) did not demonstrate support for required scopes.' | ||
| pass idp_supports_required_scopes_note if idp_supports_required_scopes_note.present? | ||
| end | ||
| end | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.