Sha256: 88dc4dd770d87e5ba9ed17eebec252a2ccdd7c655a357eafb4f3511cb4492c5c
Contents?: true
Size: 1.95 KB
Versions: 4
Compression:
Stored size: 1.95 KB
Contents
require_relative '../../../search_test' require_relative '../../../generator/group_metadata' module DaVinciPlanNetTestKit module DaVinciPlanNetV110 class OrgAffilIncludeOrganizationAffiliationNetworkSearchTest < Inferno::Test include DaVinciPlanNetTestKit::SearchTest title 'Server returns Organization resources from OrganizationAffiliation search with _include=OrganizationAffiliation:network' description %( A server SHALL be capable of supporting _includes on search parameter OrganizationAffiliation:network. This test will perform a search on OrganizationAffiliation with _include=OrganizationAffiliation:network 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 OrganizationAffiliation instance. ) id :davinci_plan_net_v110_include_org_affil_organization_affiliation_network_search_test def properties @properties ||= SearchTestProperties.new( resource_type: 'OrganizationAffiliation', search_param_names: [], include_param: 'OrganizationAffiliation:network', inc_param_sp: 'network', 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[:org_affil_resources] ||= {} end def scratch_additional_resources scratch[:organization_resources] ||= {} end run do run_include_search_test end end end end
Version data entries
4 entries across 4 versions & 1 rubygems