Sha256: d11e4e9ed76336b7d5baf504e6e8596c2f1430323e3d56efec4d488d06510df6

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

require_relative '../export_operation_tests'

module BulkDataTestKit
  module BulkDataV101
    class BulkDataKickOffTest < Inferno::Test
      include BulkDataTestKit::BulkDataExportOperationTests
      include BulkDataTestKit::ExportKickOffPerformer

      id :bulk_data_kick_off

      title 'Bulk Data Server returns "202 Accepted" and "Content-location" for bulk data $export operations'
      description <<~DESCRIPTION
        Response - Success

        * HTTP Status Code of 202 Accepted
        * Content-Location header with the absolute URL of an endpoint for subsequent status requests (polling location)
      DESCRIPTION
      # link 'http://hl7.org/fhir/uv/bulkdata/STU1.0.1/export/index.html#response---success'

      input :bearer_token,
            optional: true
      output :polling_url

      def self.properties
        @properties ||= BulkDataTestKitProperties.new(
          resource_type: config.options[:resource_type],
          bulk_export_url: config.options[:bulk_export_url]
        )
      end

      run do
        polling_url = export_kick_off_success
        output polling_url:
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bulk_data_test_kit-0.10.1 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_kick_off_test.rb
bulk_data_test_kit-0.10.0 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_kick_off_test.rb