Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi destination #26

Closed
wants to merge 16 commits into from
Closed
Prev Previous commit
Next Next commit
Take multiple server address in argument
  • Loading branch information
jhlee-mitre committed Sep 7, 2022
commit 893fb1a253dc978686a54ce9c54b87cde4592665
6 changes: 5 additions & 1 deletion lib/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
elsif parameter.include?('.json') || parameter.include?('.xml')
testscript_file = parameter
=======
endpoints = ['https://hapi.fhir.org/baseR4/', 'https://server.fire.ly/', 'https://api.logicahealth.org/TSEngineR4Endpoint1/open', 'https://api.logicahealth.org/TSEngineR4Endpoint2/open', 'https://api.logicahealth.org/TSEngineR4Endpoint3/open', 'https://api.logicahealth.org/TSEngineR4Endpoint4/open', 'https://api.logicahealth.org/TSEngineR4Endpoint5/open']
endpoints = []
directory_path = '../TestScripts'
file_name = nil

Expand All @@ -24,11 +24,15 @@
if parameter.include?('.json') || parameter.include?('.xml')
jhlee-mitre marked this conversation as resolved.
Show resolved Hide resolved
file_name = parameter
>>>>>>> c6f4de8 (Added multi-destination features, example testscript)
elsif parameter.include?('http')
endpoints << parameter
else
directory_path = parameter
end
end

endpoints = ['https://server.fire.ly/'] if endpoints.length == 0

puts "SERVER: #{endpoints}"
puts "TESTSCRIPT PATH: #{directory_path}"
puts "TESTSCRIPT FILE: #{file_name}"
Expand Down