# config.compute_node_domain = `hostname --domain`.strip
+ # No need for SSL while testing
+ config.force_ssl = false
+
# config.compute_node_nameservers = ['1.2.3.4', '1.2.3.5']
- require 'net/http'
- config.compute_node_nameservers = ['local', 'public'].collect do |iface|
- Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
- end << '172.16.0.23'
+ config.compute_node_nameservers = [ "172.16.0.23" ]
config.uuid_prefix('test@' + `hostname`.strip)
end
--- /dev/null
+require 'test_helper'
+
+class CollectionsApiTest < ActionDispatch::IntegrationTest
+ fixtures :all
+
+ test "should get index" do
+ get "/orvos/v1/collections", :format => :json
+ @json_response ||= ActiveSupport::JSON.decode @response.body
+ assert_response :success
+ assert_equal "orvos#collectionList", @json_response['kind']
+ end
+
+end