Sha256: e020c14c459c7cb96ae4d5e46738898f3a471f67f2148f5f8affbf0b7fc48a00

Contents?: true

Size: 1.62 KB

Versions: 4

Compression:

Stored size: 1.62 KB

Contents

require_relative '../../../search_test'
require_relative '../../../generator/group_metadata'

module DaVinciPlanNetTestKit
  module DaVinciPlanNetV110
    class OrgAffilNoParamsSearchTest < Inferno::Test
      include DaVinciPlanNetTestKit::SearchTest

      title 'Client can identify instances of Plan-Net OrganizationAffiliation on the server'
      description %(
This test gathers instances expected to conform to the target profile
for use in the rest of the tests in this sequence. It will perform
an unparameterized search and/or read instance ids provided by the tester
as described in the "Instance Gathering" section of the group description above.

      )

      id :davinci_plan_net_v110_org_affil_no_params_search_test

      input :davinci_plan_net_v110_org_affil_no_params_search_test_ids,
        title: 'ids of Plan-Net OrganizationAffiliation instances',
        optional: true,
        description: 'Required if parameterless searches are not being used for instance gathering.'
      input :no_param_search
      input :max_instances
      input :max_pages

      def self.properties
        @properties ||= SearchTestProperties.new(
          first_search: true,
        resource_type: 'OrganizationAffiliation',
        test_post_search: false
        )
      end

      def self.metadata
        @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
      end

      def scratch_resources
        scratch[:org_affil_resources] ||= {}
      end

      run do
        run_search_no_params_test(davinci_plan_net_v110_org_affil_no_params_search_test_ids)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
davinci_plan_net_test_kit-0.10.1 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_no_params_search_test.rb
davinci_plan_net_test_kit-0.10.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_no_params_search_test.rb
davinci_plan_net_test_kit-0.9.1 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_no_params_search_test.rb
davinci_plan_net_test_kit-0.9.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_no_params_search_test.rb