Sha256: 764e1a3fc3d8cbff53cc5829e79d028e8b1af755d3abd2c0fc64ac407610b74f
Contents?: true
Size: 1.87 KB
Versions: 6
Compression:
Stored size: 1.87 KB
Contents
require_relative '../../../search_test' require_relative '../../../generator/group_metadata' module DaVinciPlanNetTestKit module DaVinciPlanNetV110 class InsurancePlanIncludeInsurancePlanOwnedBySearchTest < Inferno::Test include DaVinciPlanNetTestKit::SearchTest title 'Server returns Organization resources from InsurancePlan search with _include=InsurancePlan:owned-by' description %( A server SHALL be capable of supporting _includes on search parameter InsurancePlan:owned-by. This test will perform a search on InsurancePlan with _include=InsurancePlan:owned-by and the '_id' search parameter using an id with a reference to an Organization identified during instance gathering. The test will pass if at least one Organization resource is found in the response and each instance that does is referenced by a returned InsurancePlan instance. ) id :davinci_plan_net_v110_include_insurance_plan_insurance_plan_owned_by_search_test def properties @properties ||= SearchTestProperties.new( resource_type: 'InsurancePlan', search_param_names: [], include_param: 'InsurancePlan:owned-by', inc_param_sp: 'owned-by', additional_resource_type: 'Organization' ) 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__, '..', 'organization', 'metadata.yml'), aliases: true)) end def scratch_resources scratch[:insurance_plan_resources] ||= {} end def scratch_additional_resources scratch[:organization_resources] ||= {} end run do run_include_search_test end end end end
Version data entries
6 entries across 6 versions & 1 rubygems