Class: EnvTest

Inherits:
BaseCase
  • Object
show all
Includes:
Env
Defined in:
lib/common/socket/env.rb,
lib/common/socket/network.rb

Instance Method Summary collapse

Methods included from Env

#bak_conf, #copy_conf, #get_conf, #get_thread_num, #is_process_running?, #kill_process, #modify_conf, #modify_conf_single, #recover_conf, #start_process

Instance Method Details

#no_test_get_local_ipObject



294
295
296
# File 'lib/common/socket/env.rb', line 294

def no_test_get_local_ip
	puts Util.get_local_ip
end

#no_test_get_thread_numObject



306
307
308
309
# File 'lib/common/socket/env.rb', line 306

def no_test_get_thread_num
	num = get_thread_num '10.81.14.45', 'mlstar'
	puts num
end

#no_test_kill_processObject



311
312
313
314
315
# File 'lib/common/socket/env.rb', line 311

def no_test_kill_process
	kill_process '10.81.14.45', 'mlstar'
	puts is_process_running? '10.81.14.45', 'mlstar'
	puts start_process '10.81.14.45', 'mlstar', '/home/space/mlstar/'
end

#no_test_modify_conf_singleObject



298
299
300
301
302
303
304
# File 'lib/common/socket/env.rb', line 298

def no_test_modify_conf_single
	value1 = get_conf '10.81.11.32', "#{TEST_ROOT}env/simple.conf", 'a'
	puts value1
	modify_conf_single '10.81.11.32', "#{TEST_ROOT}env/simple.conf", 'a', "#{value1}1"
	value2 = get_conf '10.81.11.32', "#{TEST_ROOT}env/simple.conf", 'a'
	puts value2
end

#no_test_start_process_remoteObject



290
291
292
# File 'lib/common/socket/env.rb', line 290

def no_test_start_process_remote
	start_process '10.81.14.45', 'mlcommitui', '/home/space/mlcommitui/'
end

#testObject



111
112
113
# File 'lib/common/socket/network.rb', line 111

def test
	nshead_send_2 :ip=>'127.0.0.1'
end