Create links when creating containers
This commit is contained in:
parent
f0768d4dca
commit
9a81623581
4 changed files with 34 additions and 2 deletions
|
|
@ -18,12 +18,13 @@ class ServiceTestCase(TestCase):
|
|||
self.client.kill(c['Id'])
|
||||
self.client.remove_container(c['Id'])
|
||||
|
||||
def create_service(self, name):
|
||||
def create_service(self, name, **kwargs):
|
||||
return Service(
|
||||
name=name,
|
||||
client=self.client,
|
||||
image="ubuntu",
|
||||
command=["/bin/sleep", "300"],
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue