Skip to content

Commit bc6c5a8

Browse files
committed
libcloud tests: allow to specify local server port
1 parent b0e991d commit bc6c5a8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/libcloud_create_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
cls = get_driver(Provider.KAMATERA)
99

1010
if os.environ.get('API_SERVER') == 'localhost':
11-
kwargs = {'secure':False, 'host':'localhost', 'port':8000}
11+
kwargs = {'secure': False, 'host': 'localhost', 'port': int(os.environ.get('CLOUDCLI_SERVER_PORT', '8000'))}
1212
driver = cls(os.environ['API_CLIENT_ID'], os.environ['API_SECRET'], **kwargs)
1313

1414
# set create node params from capabilities, locations and size lists

tests/libcloud_node_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
cls = get_driver(Provider.KAMATERA)
99

1010
if os.environ.get('API_SERVER') == 'localhost':
11-
kwargs = {'secure':False, 'host':'localhost', 'port':8000}
11+
kwargs = {'secure':False, 'host':'localhost', 'port': int(os.environ.get('CLOUDCLI_SERVER_PORT', '8000'))}
1212
driver = cls(os.environ['API_CLIENT_ID'], os.environ['API_SECRET'], **kwargs)
1313

1414
nodes = driver.list_nodes('test_libcloud_server.*')

0 commit comments

Comments
 (0)