Skip to content

Commit

Permalink
Fix a few remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tstrass committed Dec 5, 2024
1 parent 699a8e6 commit 1092289
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/davinci_dtr_test_kit/endpoints/mock_ehr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def resource_server_client
def metadata(_env)
cs = resource_server_client.capability_statement
if cs.present?
[200, RESPONSE_HEADERS, [cs.to_json]]
[200, { 'Content-Type' => 'application/json', 'Access-Control-Allow-Origin' => '*' }, [cs.to_json]]
else
[500, {}, ['Unexpected error occurred while fetching metadata']]
[500, { 'Access-Control-Allow-Origin' => '*' }, ['Unexpected error occurred while fetching metadata']]
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def make_response
response.status = 201
response.format = :json
response['Access-Control-Allow-Origin'] = '*'
response.body = request.body
response.body = request.body.string
end

def update_result
Expand Down
2 changes: 0 additions & 2 deletions lib/davinci_dtr_test_kit/ext/inferno_core/runnable.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'record_response_route'

module Inferno
module DSL
module Runnable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@
post(questionnaire_package_url, request_body_conformant)
expect(last_response.ok?).to be(true)

get(resume_pass_url)

result = results_repo.find(result.id)
expect(result.result).to eq('pass')
end
Expand Down

0 comments on commit 1092289

Please sign in to comment.