Permalink
Browse files

Fix unit tests breaking as a result of #2071

  • Loading branch information...
anish committed Mar 25, 2016
1 parent a0c1e1f commit bec055ae47e614486d39ec459462b2fba2196b93
Showing with 2 additions and 2 deletions.
  1. +2 −2 master/buildbot/test/unit/test_worker_docker.py
@@ -80,14 +80,14 @@ def test_constructor_all_docker_parameters(self):
def test_volume_no_suffix(self):
bs = self.ConcreteWorker('bot', 'pass', 'tcp://1234:2375', 'worker', ['bin/bash'], volumes=['/src/webapp:/opt/webapp'])
self.assertEqual(bs.volumes, ['/src/webapp'])
self.assertEqual(bs.volumes, ['/src/webapp:/opt/webapp'])
self.assertEqual(bs.binds, {'/src/webapp': {'bind': '/opt/webapp', 'ro': False}})
def test_ro_rw_volume(self):
bs = self.ConcreteWorker('bot', 'pass', 'tcp://1234:2375', 'worker', ['bin/bash'],
volumes=['/src/webapp:/opt/webapp:ro',
'~:/backup:rw'])
self.assertEqual(bs.volumes, ['/src/webapp', '~'])
self.assertEqual(bs.volumes, ['/src/webapp:/opt/webapp:ro', '~:/backup:rw'])
self.assertEqual(bs.binds, {'/src/webapp': {'bind': '/opt/webapp', 'ro': True},
'~': {'bind': '/backup', 'ro': False}})

0 comments on commit bec055a

Please sign in to comment.