Skip to content

Commit

Permalink
Add some url and connection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billdueber committed Sep 17, 2024
1 parent de692f0 commit 1adec13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/med_installer/indexing_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ def initialize(zipfile:,
end

def index

# Do some basic checks against the solr

url = Dromedary::Services[:solr_url]
connection_url = @connection.url
logger.info "Trying to connect to #{Dromedary::Services[:solr_url]}"
logger.info "Connection thinks its url is #{@connection.url}"
logger.info "Trying to use curl -I to hit #{connection_url}:"
curl_output = `curl -I #{connection_url}`
logger.info "Curl output: #{curl_output}"
require "yaml"
logger.info "System: #{@connection.system.to_yaml}\n\n"

prepare_build_directory
extract_zip_to_build_directory
verify_unzipped_files!
Expand Down

0 comments on commit 1adec13

Please sign in to comment.