def inner_fetch
      payload = JSON.generate(build_update_package)
      body = nil

      uri = URI.parse(@status_url)
      use_ssl = uri.scheme == "https"
      Net::HTTP.start(uri.host, uri.port, open_timeout: @read_timeout_secs, read_timeout: @read_timeout_secs, use_ssl: use_ssl) do |http|
        response = http.post(uri, payload, post_headers)
        body = response.read_body
      end

      JSON.parse(body)
    end
def inner_fetch
      payload = JSON.generate(build_update_package)
      body = nil

      uri = URI.parse(@status_url)
      use_ssl = uri.scheme == "https"
      Net::HTTP.start(uri.host, uri.port, open_timeout: @read_timeout_secs, read_timeout: @read_timeout_secs, use_ssl: use_ssl) do |http|
        response = http.post(uri, payload, post_headers)
        body = response.read_body
      end

      JSON.parse(body)
    end
Split this one out for easier mocking/stubbing in the specs