Back to index

rabbitmq-server  2.8.4
Functions
test_util Namespace Reference

Functions

def ensure_ssl_auth_user
def enable_implicit_connect
def disable_implicit_connect
def enable_default_user
def disable_default_user
def switch_config
def rabbitmqctl

Function Documentation

Definition at line 25 of file test_util.py.

00025 
00026 def disable_default_user():
00027     switch_config(default_user='[]')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 19 of file test_util.py.

00019 
00020 def disable_implicit_connect():
00021     switch_config(implicit_connect='false', default_user='[]')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file test_util.py.

00022 
00023 def enable_default_user():
00024     switch_config(default_user='[{login, "guest"}, {passcode, "guest"}]')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 16 of file test_util.py.

00016 
00017 def enable_implicit_connect():
00018     switch_config(implicit_connect='true', default_user='[{login, "guest"}, {passcode, "guest"}]')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 7 of file test_util.py.

00007 
00008 def ensure_ssl_auth_user():
00009     user = 'O=client,CN=%s' % socket.gethostname()
00010     rabbitmqctl(['stop_app'])
00011     rabbitmqctl(['reset'])
00012     rabbitmqctl(['start_app'])
00013     rabbitmqctl(['add_user', user, 'foo'])
00014     rabbitmqctl(['clear_password', user])
00015     rabbitmqctl(['set_permissions', user, '.*', '.*', '.*'])

Here is the call graph for this function:

def test_util.rabbitmqctl (   args)

Definition at line 37 of file test_util.py.

00037 
00038 def rabbitmqctl(args):
00039     ctl = os.path.normpath(os.path.join(os.getcwd(), sys.argv[0], '../../../../rabbitmq-server/scripts/rabbitmqctl'))
00040     cmdline = [ctl, '-n', 'rabbit-test']
00041     cmdline.extend(args)
00042     subprocess.check_call(cmdline)
00043 

Here is the caller graph for this function:

def test_util.switch_config (   implicit_connect = '',
  default_user = '' 
)

Definition at line 28 of file test_util.py.

00028 
00029 def switch_config(implicit_connect='', default_user=''):
00030     cmd = 'application:stop(rabbitmq_stomp),'
00031     if implicit_connect:
00032         cmd += 'application:set_env(rabbitmq_stomp,implicit_connect,' + implicit_connect + '),'
00033     if default_user:
00034         cmd += 'application:set_env(rabbitmq_stomp,default_user,' + default_user + '),'
00035     cmd += 'application:start(rabbitmq_stomp).'
00036     rabbitmqctl(['eval', cmd])

Here is the call graph for this function:

Here is the caller graph for this function: