Class: ServiceBaseURLTestKit::ServiceBaseURLBundleTestGroup
- Inherits:
-
Inferno::TestGroup
- Object
- Inferno::TestGroup
- ServiceBaseURLTestKit::ServiceBaseURLBundleTestGroup
- Defined in:
- lib/service_base_url_test_kit/service_base_url_validate_group.rb
Instance Method Summary collapse
- #find_parent_organization(bundle_resource, org_reference) ⇒ Object
- #find_referenced_endpoint(bundle_resource, endpoint_id_ref) ⇒ Object
- #find_referenced_org(bundle_resource, endpoint_id) ⇒ Object
- #skip_message ⇒ Object
Instance Method Details
#find_parent_organization(bundle_resource, org_reference) ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/service_base_url_test_kit/service_base_url_validate_group.rb', line 79 def find_parent_organization(bundle_resource, org_reference) bundle_resource .entry .map(&:resource) .select { |resource| resource.resourceType == 'Organization' } .find { |parent_org| org_reference.include? parent_org.id } end |
#find_referenced_endpoint(bundle_resource, endpoint_id_ref) ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/service_base_url_test_kit/service_base_url_validate_group.rb', line 70 def find_referenced_endpoint(bundle_resource, endpoint_id_ref) bundle_resource .entry .map(&:resource) .select { |resource| resource.resourceType == 'Endpoint' } .map(&:id) .select { |endpoint_id| endpoint_id_ref.include? endpoint_id } end |
#find_referenced_org(bundle_resource, endpoint_id) ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/service_base_url_test_kit/service_base_url_validate_group.rb', line 58 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
87 88 89 90 91 92 93 |
# File 'lib/service_base_url_test_kit/service_base_url_validate_group.rb', line 87 def %( No Service Base URL request was made in the previous test, and no Service Base URL Publication Bundle was provided as input instead. Either provide a Service Base URL Publication URL to retrieve the Bundle via a HTTP GET request, or provide the Bundle as an input. ) end |