Top Level Namespace

Defined Under Namespace

Classes: Hash, NCC, NOMS

Instance Method Summary collapse

Instance Method Details

#init_testObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/spec_helper.rb', line 11

def init_test
    if ENV['TEST_DEBUG'] and ENV['TEST_DEBUG'].length > 0
        $debug = (ENV['TEST_DEBUG'].to_i == 0 ? 2 : ENV['TEST_DEBUG'].to_i)
    else
        $debug = 0
    end

    $server = 'noms-server'
    $cmdbapi = '/cmdb_api/v1'
    $api = '/ncc_api/v2'
    $opt = {
        'ncc' => { 'url' => "http://#{$server}#{$api}" },
        'debug' => $debug,
        'cmdb' => { 'url' => "http://#{$server}#{$cmdbapi}" }
    }
end