onc_certification_g10_test_kit 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adbba68d88b3af6ac68f713093db688cf40e238e00435cfc25f1dd7a533dcdb5
4
- data.tar.gz: 78d90d908e7c9dac8bb0e78072aa75014db120d11fc9daf09bd247118a0bc6bd
3
+ metadata.gz: 5832d54e7182c9e925adf882a5aeb0e42aa38b403bc712d4ca056138c48fe716
4
+ data.tar.gz: be2d8b5b41ac9847c228fad7e87b46e89523a28b2197324b7576a4d4dc4aa58e
5
5
  SHA512:
6
- metadata.gz: 7bfe60790522993322888d224c41556f61010a800f378f14a0a4597d70c198d887f68b9e97819cfb5696988a26ad07de386e8c2af92e1ca34bd541ff918fb575
7
- data.tar.gz: 90f2b6a0cfed1eaaf46519e68faec2937f210f5504f3d4cd1ad72070fd4a031db5e0cc5b136fe9bf895005483dcac673ff282b2b8c7cdb647447ff49df7d4c7e
6
+ metadata.gz: 3d0420d215217f5e66463044b6bf102cf2ba1c2326057fdcf96a3628c419a748708612d118afd1af98f328677f80e256f410053ad586dc843525a265f8f5edd8
7
+ data.tar.gz: 43abf570742f05d4fffa836031b50059657ebc396aacb9aa2924e7a0ed1521bebf8d276b77a422808cdeed05d41ae87184ba579d4f77197975ece719dd71999f
@@ -1,3 +1,5 @@
1
+ require_relative 'smart_invalid_token_refresh_test'
2
+
1
3
  module ONCCertificationG10TestKit
2
4
  class BaseTokenRefreshGroup < Inferno::TestGroup
3
5
  title 'Token Refresh'
@@ -32,7 +32,7 @@ module ONCCertificationG10TestKit
32
32
 
33
33
  run do
34
34
  ['application/fhir+ndjson', 'application/ndjson', 'ndjson'].each do |format|
35
- perform_export_kick_off_request(params: "_outputFormat=#{format}")
35
+ perform_export_kick_off_request(params: { _outputFormat: format })
36
36
  assert_response_status(202)
37
37
 
38
38
  delete_export_kick_off_request
@@ -1,13 +1,14 @@
1
1
  module ONCCertificationG10TestKit
2
2
  module ExportKickOffPerformer
3
- def perform_export_kick_off_request(use_token: true, params: '')
3
+ def perform_export_kick_off_request(use_token: true, params: {})
4
4
  skip_if use_token && bearer_token.blank?, 'Could not verify this functionality when bearer token is not set'
5
5
 
6
6
  headers = { accept: 'application/fhir+json', prefer: 'respond-async' }
7
7
  headers.merge!({ authorization: "Bearer #{bearer_token}" }) if use_token
8
8
 
9
9
  url = "Group/#{group_id}/$export"
10
- url.concat("?#{params}") unless params.empty?
10
+ param_str = params.map { |k, v| URI.encode_www_form(k => v) }.join('&')
11
+ url.concat("?#{param_str}") unless param_str.empty?
11
12
  get(url, client: :bulk_server, name: :export, headers: headers)
12
13
  end
13
14