Sha256: 3c5d5aca70a4f3dcd479545b1946fe917084fc5b540910ac8a807f5883d1b3dc

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

require_relative '../export_cancel_tests'

module BulkDataTestKit
  module BulkDataV101
    class BulkDataExportCancelTest < Inferno::Test
      include BulkDataTestKit::BulkDataExportCancelTests
      include BulkDataTestKit::ExportKickOffPerformer

      id :bulk_data_export_cancel

      title 'Bulk Data Server returns "202 Accepted" for delete request'
      description <<~DESCRIPTION
        After a bulk data request has been started, a client MAY send a delete request to the URL provided in the Content-Location header to cancel the request.
        Bulk Data Server MUST support client's delete request and return HTTP Status Code of "202 Accepted"
      DESCRIPTION
      # link 'http://hl7.org/fhir/uv/bulkdata/STU1.0.1/export/index.html#bulk-data-delete-request'

      output :cancelled_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
        cancelled_polling_url = perform_export_cancel_test
        output cancelled_polling_url:
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulk_data_test_kit-0.9.3 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_cancel_test.rb
bulk_data_test_kit-0.9.2 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_cancel_test.rb
bulk_data_test_kit-0.9.1 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_cancel_test.rb
bulk_data_test_kit-0.9.0 lib/bulk_data_test_kit/v1.0.1/bulk_data_export_cancel_test.rb