Hi Tom
Thanks for the MP - looks like a good feature to have.
Right now this branch introduces a test failure:
====================================================================== FAIL: test_swift_storage_server_context (unit_tests.test_swift_storage_context.SwiftStorageContextTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jamespage/src/charms/review/swift-storage/unit_tests/test_swift_storage_context.py", line 71, in test_swift_storage_server_context self.assertEquals(ex, result) AssertionError: {'container_server_port': '502', 'local_ip': '10.0.0.5', 'account_server_port': [truncated]... != {'local_ip': '10.0.0.5', 'workers': 4, 'object_server_threads_per_disk': 4, 'con [truncated]... {'account_server_port': '500', 'container_server_port': '502', 'local_ip': '10.0.0.5', - 'object_server_port': '501'} ? ^
+ 'object_server_port': '501', ? ^
+ 'object_server_threads_per_disk': 4, + 'workers': 4}
Please could you fix up - you can run units tests by using 'make test'. You will need to patch out psutils.NUM_CPU's as well in order to make the test deterministic.
Cheers
James
« Back to merge proposal
Hi Tom
Thanks for the MP - looks like a good feature to have.
Right now this branch introduces a test failure:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= storage_ server_ context (unit_tests. test_swift_ storage_ context. SwiftStorageCon textTests) ------- ------- ------- ------- ------- ------- ------- ------- ------- jamespage/ src/charms/ review/ swift-storage/ unit_tests/ test_swift_ storage_ context. py", line 71, in test_swift_ storage_ server_ context assertEquals( ex, result) server_ port': '502', 'local_ip': '10.0.0.5', 'account_ server_ port': [truncated]... != {'local_ip': '10.0.0.5', 'workers': 4, 'object_ server_ threads_ per_disk' : 4, 'con [truncated]... server_ port': '500', server_ port': '502', server_ port': '501'}
FAIL: test_swift_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: {'container_
{'account_
'container_
'local_ip': '10.0.0.5',
- 'object_
? ^
+ 'object_ server_ port': '501',
? ^
+ 'object_ server_ threads_ per_disk' : 4,
+ 'workers': 4}
Please could you fix up - you can run units tests by using 'make test'. You will need to patch out psutils.NUM_CPU's as well in order to make the test deterministic.
Cheers
James