Sha256: 50715489db434212c58a7cf3856db17e9af5d9a91b185819672ff89618a3d845
Contents?: true
Size: 1.9 KB
Versions: 4
Compression:
Stored size: 1.9 KB
Contents
require_relative '../../../search_test' require_relative '../../../generator/group_metadata' module DaVinciPlanNetTestKit module DaVinciPlanNetV110 class HealthcareServiceIncludeHealthcareServiceEndpointSearchTest < Inferno::Test include DaVinciPlanNetTestKit::SearchTest title 'Server returns Endpoint resources from HealthcareService search with _include=HealthcareService:endpoint' description %( A server SHALL be capable of supporting _includes on search parameter HealthcareService:endpoint. This test will perform a search on HealthcareService with _include=HealthcareService:endpoint and the '_id' search parameter using an id with a reference to an Endpoint identified during instance gathering. The test will pass if at least one Endpoint resource is found in the response and each instance that does is referenced by a returned HealthcareService instance. ) id :davinci_plan_net_v110_include_healthcare_service_healthcare_service_endpoint_search_test def properties @properties ||= SearchTestProperties.new( resource_type: 'HealthcareService', search_param_names: [], include_param: 'HealthcareService:endpoint', inc_param_sp: 'endpoint', additional_resource_type: 'Endpoint' ) end def self.metadata @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'))) end def self.additional_metadata @additional_metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, '..', 'endpoint', 'metadata.yml'), aliases: true)) end def scratch_resources scratch[:healthcare_service_resources] ||= {} end def scratch_additional_resources scratch[:endpoint_resources] ||= {} end run do run_include_search_test end end end end
Version data entries
4 entries across 4 versions & 1 rubygems