From d27ff28f5310a0d0316eb580c05b23b5d616e2de Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 26 Nov 2019 14:04:37 +0100 Subject: [PATCH] fixtures: include service name in container name --- tests/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index 0c6829c..674ba5c 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -33,7 +33,7 @@ def containers(project="default", containers=[]): return [ { 'Id': container.get('id', generate_sha256()), - 'Name': ''.join(random.choice(string.ascii_lowercase) for i in range(16)), + 'Name': container.get('service') + '_' + ''.join(random.choice(string.ascii_lowercase) for i in range(16)), 'Config': { 'Image': 'restic-volume-backup_backup', 'Labels': {