Allow separate URLs for omsimulator client and server
This commit is contained in:
parent
52e5dc905f
commit
9e496e5d67
|
@ -110,11 +110,14 @@ def run(module):
|
|||
params['server_file'] = SERVER_FILE_NAME
|
||||
params['client_file'] = CLIENT_FILE_NAME
|
||||
|
||||
params['url'] = params['server_url'] or params['url']
|
||||
server = ('%(python)s simulator.py '
|
||||
# '--topic %(topic)s '
|
||||
'--url %(url)s '
|
||||
'--json %(server_file)s '
|
||||
'%(server_tool)s ') % params
|
||||
|
||||
params['url'] = params['client_url'] or params['url']
|
||||
client = ('%(python)s simulator.py '
|
||||
# '--topic %(topic)s '
|
||||
'--url=%(url)s '
|
||||
|
@ -178,6 +181,8 @@ def main():
|
|||
mode=dict(required=True,
|
||||
choices=['call', 'cast', 'fanout', 'notify']),
|
||||
url=dict(required=True),
|
||||
client_url=dict(),
|
||||
server_url=dict(),
|
||||
threads=dict(type='int', default=10),
|
||||
duration=dict(type='int', default=10),
|
||||
timeout=dict(type='int', default=5),
|
||||
|
|
|
@ -5,7 +5,9 @@ description:
|
|||
|
||||
parameters:
|
||||
tester_hosts: List of hosts were omsimulator will be executed
|
||||
rabbit_url: RabbitMQ address
|
||||
rabbit_url: RabbitMQ address used by both server and client
|
||||
client_url: RabbitMQ address used by the client
|
||||
server_url: RabbitMQ address used by the server
|
||||
|
||||
setup:
|
||||
-
|
||||
|
@ -40,6 +42,8 @@ execution:
|
|||
threads: 1
|
||||
host_count: 1
|
||||
url: {{ rabbit_url }}
|
||||
client_url: {{ client_url }}
|
||||
server_url: {{ server_url }}
|
||||
|
||||
report:
|
||||
template: omsimulator-ha-call.rst
|
||||
|
|
Loading…
Reference in New Issue