onc_certification_g10_test_kit 3.0.1 → 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: 3a997254eeb0f57c4ac69582eff40ed7b5e69566172e9fcc804c5e80dd29ee4f
4
- data.tar.gz: 8b7106dc98a6c860781b5da996ded4833d9a93e3a0127dc36abbdf38a9b2c0a4
3
+ metadata.gz: 5832d54e7182c9e925adf882a5aeb0e42aa38b403bc712d4ca056138c48fe716
4
+ data.tar.gz: be2d8b5b41ac9847c228fad7e87b46e89523a28b2197324b7576a4d4dc4aa58e
5
5
  SHA512:
6
- metadata.gz: c29ad54046764cd1f65c7f9b57ff40d16cd9e2c341116cdbf74c8d4248ba92918f189561c482e635ae701b524a85273bca71f3855435f002dceecdba9676f83c
7
- data.tar.gz: 557fe475426d18719c6dee1fe474d945493d620628d77ea62610af1010d0a60740c0c58744e2d49d06f8a95d3f3275e8218ec5de34e79060f2d69f7de243bb91
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