Sha256: f14ffdc1d4c27608a838713dfb3961f4670073bc390d1da013b425a70eebc7b9

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

require_relative '../../../reference_resolution_test'
require_relative '../resource_list'

module IpaTestKit
  module IpaV100
    class ConditionReferenceResolutionTest < Inferno::Test
      include IpaTestKit::ReferenceResolutionTest
      include ResourceList

      title 'MustSupport references within Condition resources are valid'
      description %(
        This test will attempt to read external references provided within elements
        marked as 'MustSupport', if any are available.

        It verifies that at least one external reference for each MustSupport Reference element
        can be accessed by the test client, and conforms to corresponding IPA profile.

        Elements which may provide external references include:

        * Condition.subject
      )

      id :ipa_v100_condition_reference_resolution_test

      def resource_type
        'Condition'
      end

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

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

      run do
        perform_reference_resolution_test(scratch_resources[:all])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ipa_test_kit-0.4.1 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.4.0 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.3.4 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.3.3 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.3.2 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.3.1 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb
ipa_test_kit-0.3.0 lib/ipa_test_kit/generated/v1.0.0/condition/condition_reference_resolution_test.rb