add support for stop_signal to compose file

Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
This commit is contained in:
Jonathan Stewmon 2015-12-04 16:40:09 -06:00
commit 5d8c2d3cec
7 changed files with 39 additions and 0 deletions

View file

@ -887,6 +887,12 @@ class ServiceTest(DockerClientTestCase):
for name in labels_dict:
self.assertIn((name, ''), labels)
def test_stop_signal(self):
stop_signal = 'SIGINT'
service = self.create_service('web', stop_signal=stop_signal)
container = create_and_start_container(service)
self.assertEqual(container.stop_signal, stop_signal)
def test_custom_container_name(self):
service = self.create_service('web', container_name='my-web-container')
self.assertEqual(service.custom_container_name(), 'my-web-container')