Exemple #1
0
 def test_check_docker_by_image_name_202(self, m1, m2, m3):
     response, code = check_docker_by_image_name('fake_id')
     self.assertEqual(code, 202)
Exemple #2
0
 def test_check_docker_by_image_name_400(self):
     response, code = check_docker_by_image_name(None)
     self.assertEqual(code, 400)
Exemple #3
0
 def test_check_docker_by_image_name_404(self):
     response, code = check_docker_by_image_name('fake_id')
     self.assertEqual(code, 404)
Exemple #4
0
 def test_check_docker_by_image_name_and_pull_error(self, m1, m2, m3):
     response, code = check_docker_by_image_name('fake_id')
     self.assertEqual(code, 404)
Exemple #5
0
 def test_check_docker_by_image_name_and_tag_202_and_pull(self, m1, m2, m3):
     response, code = check_docker_by_image_name('fake_id:latest')
     self.assertEqual(code, 202)
Exemple #6
0
 def test_check_docker_by_image_name_202_and_pull(self, m1, m2, m3):
     response, code = check_docker_by_image_name('fake_id')
     self.assertEqual(code, 202)
Exemple #7
0
 def test_check_docker_by_image_name_404(self):
     response, code = check_docker_by_image_name('fake_id')
     self.assertEqual(code, 404)
Exemple #8
0
 def test_check_docker_by_image_name_400(self):
     response, code = check_docker_by_image_name(None)
     self.assertEqual(code, 400)