Class: SMARTAppLaunch::SMARTAccessBrandsValidateEndpoints
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- SMARTAppLaunch::SMARTAccessBrandsValidateEndpoints
- Defined in:
- lib/smart_app_launch/smart_access_brands_validate_endpoints_test.rb
Instance Method Summary collapse
Instance Method Details
#find_referenced_org(bundle_resource, endpoint_id) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/smart_app_launch/smart_access_brands_validate_endpoints_test.rb', line 13 def find_referenced_org(bundle_resource, endpoint_id) bundle_resource .entry .map(&:resource) .select { |resource| resource.resourceType == 'Organization' } .map(&:endpoint) .flatten .map(&:reference) .select { |reference| reference.include? endpoint_id } end |
#skip_message ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/smart_app_launch/smart_access_brands_validate_endpoints_test.rb', line 24 def %( No User Access Brands request was made in the previous test, and no User Access Brands Bundle was provided as input instead. Either provide a User Access Brands Publication URL to retrieve the Bundle via a HTTP GET request, or provide the Bundle as an input. ) end |