From 26add981765947c9819d43cef29f0b6c3af806a7 Mon Sep 17 00:00:00 2001 From: Richard Wossal Date: Tue, 18 Dec 2018 12:00:53 +0100 Subject: [PATCH] fix(tests): extend pod name regex --- rootfs/api/tests/test_pods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/api/tests/test_pods.py b/rootfs/api/tests/test_pods.py index ecc48ca93..a9902b76e 100644 --- a/rootfs/api/tests/test_pods.py +++ b/rootfs/api/tests/test_pods.py @@ -322,7 +322,7 @@ def test_container_str(self, mock_requests): self.assertIn(pod['type'], ['web', 'worker']) self.assertEqual(pod['release'], 'v2') # pod name is auto generated so use regex - self.assertRegex(pod['name'], app_id + '-(worker|web)-[0-9]{8,10}-[a-z0-9]{5}') + self.assertRegex(pod['name'], app_id + '-(worker|web)-[0-9]{7,10}-[a-z0-9]{5}') def test_pod_command_format(self, mock_requests): # regression test for https://github.com/deisthree/deis/pull/1285