diff options
| author | John L. Villalovos <john.l.villalovos@intel.com> | 2015-10-13 13:26:18 -0700 |
|---|---|---|
| committer | John L. Villalovos <john.l.villalovos@intel.com> | 2015-10-13 13:26:18 -0700 |
| commit | 06d34ae5d7fe2ebca17b90c2870aa7a21d71bc02 (patch) | |
| tree | 05a2d622734d1a62a11ed98a775b24ba2b43b3f4 /ironic_python_agent/tests/functional/base.py | |
| parent | b6c2eb6ca6aae039982007c791dfd55c29d70417 (diff) | |
| download | ironic-python-agent-06d34ae5d7fe2ebca17b90c2870aa7a21d71bc02.tar.gz | |
Make calling arguments easier to understand
Use keyword= when doing the call so easier for reader of code to know
what all the arguments are.
Change-Id: I4d781b533b15c6855a3d8ad95bb17bf9d153f1eb
Diffstat (limited to 'ironic_python_agent/tests/functional/base.py')
| -rw-r--r-- | ironic_python_agent/tests/functional/base.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ironic_python_agent/tests/functional/base.py b/ironic_python_agent/tests/functional/base.py index cdbca34a..222f4f98 100644 --- a/ironic_python_agent/tests/functional/base.py +++ b/ironic_python_agent/tests/functional/base.py @@ -33,10 +33,18 @@ class FunctionalBase(test_base.BaseTestCase): self.test_port = os.environ.get('TEST_PORT', '9999') # Build a basic standalone agent using the config option defaults. # 127.0.0.1:6835 is the fake Ironic client. + self.agent = agent.IronicPythonAgent( - 'http://127.0.0.1:6835', 'localhost', - ('0.0.0.0', int(self.test_port)), 3, 10, None, 300, 1, - 'agent_ipmitool', True) + api_url='http://127.0.0.1:6835', + advertise_address='localhost', + listen_address=('0.0.0.0', int(self.test_port)), + ip_lookup_attempts=3, + ip_lookup_sleep=10, + network_interface=None, + lookup_timeout=300, + lookup_interval=1, + driver_name='agent_ipmitool', + standalone=True) self.process = multiprocessing.Process( target=self.agent.run) self.process.start() |
