Skip to content

Commit

Permalink
fix(tests): extend pod name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
rwos committed Jan 16, 2019
1 parent ef82b77 commit 26add98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/api/tests/test_pods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26add98

Please sign in to comment.