Sha256: bc1abd612105de932fbedbb0829929b55fe21e16eb7605a70f5bd4f9eca60736
Contents?: true
Size: 1.37 KB
Versions: 6
Compression:
Stored size: 1.37 KB
Contents
require 'marklogic' require 'mark_mapper' # These environment variables can be set if wanting to test against a database # that is not on the local machine. ENV["MARKMAPPER_SPEC_HOST"] ||= "localhost" ENV["MARKMAPPER_SPEC_PORT"] ||= "8009" ENV["MARKMAPPER_SPEC_APP_SERVICES_PORT"] ||= "8000" ENV["MARKMAPPER_SPEC_ADMIN_PORT"] ||= "8001" ENV["MARKMAPPER_SPEC_MANAGE_PORT"] ||= "8002" ENV["MARKMAPPER_SPEC_USER"] ||= "admin" ENV["MARKMAPPER_SPEC_PASSWORD"] ||= "admin" ENV["MARKMAPPER_SKIP_APP_CREATION"] ||= "false" # These are used when creating any connection in the test suite. HOST = ENV["MARKMAPPER_SPEC_HOST"] PORT = ENV["MARKMAPPER_SPEC_PORT"].to_i APP_SERVICES_PORT = ENV["MARKMAPPER_SPEC_APP_SERVICES_PORT"] MANAGE_PORT = ENV["MARKMAPPER_SPEC_MANAGE_PORT"] ADMIN_PORT = ENV["MARKMAPPER_SPEC_ADMIN_PORT"] USER = ENV["MARKMAPPER_SPEC_USER"] PASSWORD = ENV["MARKMAPPER_SPEC_PASSWORD"] ADMIN_USER = ENV["MARKMAPPER_SPEC_ADMIN_USER"] ADMIN_PASSWORD = ENV["MARKMAPPER_SPEC_ADMIN_PASSWORD"] MarkLogic::Connection.configure({ :host => HOST, :manage_port => MANAGE_PORT, :admin_port => ADMIN_PORT, :app_services_port => APP_SERVICES_PORT, :default_user => ADMIN_USER, :default_password => ADMIN_PASSWORD }) CONNECTION = MarkLogic::Connection.new(HOST, PORT) puts "Configuring application again" MarkMapper.application = MarkLogic::Application.new("sample-app", connection: CONNECTION )
Version data entries
6 entries across 6 versions & 1 rubygems