Sha256: d7729bdd4eae7cbd9632b9f4bc71aa959eba3238dfbebb53d43505e7a18cec02

Contents?: true

Size: 650 Bytes

Versions: 43

Compression:

Stored size: 650 Bytes

Contents

require 'test/unit'

# DEFAULTS
module Rex
class Test

$_REX_TEST_NO_MOCK = nil
$_REX_TEST_TIMEOUT = 30
$_REX_TEST_SMB_HOST = '10.4.10.58'
$_REX_TEXT_SMB_USER = 'SMBTest'
$_REX_TEXT_SMB_PASS = 'SMBTest'

# overwrite test defaults with rex/test-config.rb
def self.load()
    file = File.join( ENV.fetch('HOME'), '.msf3', 'test')
    begin
        if File.stat(file + '.rb')
            require file
        end
    rescue
        # just ignore the errors
    end

end

def self.cantmock()
    if (!$_REX_TEST_NO_MOCK)
        raise RuntimeError, "*** $_REX_TEST_NO_MOCK must not be set for this test ***", caller
    end
end

Rex::Test.load()

end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/test.rb
librex-0.0.34 lib/rex/test.rb
librex-0.0.33 lib/rex/test.rb
librex-0.0.32 lib/rex/test.rb
librex-0.0.31 lib/rex/test.rb
librex-0.0.30 lib/rex/test.rb
librex-0.0.29 lib/rex/test.rb
librex-0.0.28 lib/rex/test.rb
librex-0.0.27 lib/rex/test.rb
librex-0.0.26 lib/rex/test.rb
librex-0.0.25 lib/rex/test.rb
librex-0.0.23 lib/rex/test.rb
librex-0.0.21 lib/rex/test.rb
librex-0.0.19 lib/rex/test.rb
librex-0.0.17 lib/rex/test.rb
librex-0.0.13 lib/rex/test.rb
librex-0.0.12 lib/rex/test.rb
librex-0.0.7 lib/rex/test.rb
librex-0.0.6 lib/rex/test.rb
librex-0.0.5 lib/rex/test.rb