Exemplo n.º 1
0
 def testKubernetes(self):
     """Test the kubernetes/something prefix."""
     path = bootstrap.pr_paths('kubernetes/prefix', JOB, BUILD, PULL)
     self.assertTrue(any('prefix' in p for p in path.build_log.split('/')),
                     path.build_log)
     self.assertTrue(any(str(PULL) in p for p in path.build_log.split('/')),
                     path.build_log)
Exemplo n.º 2
0
 def testKubernetes(self):
     """Test the kubernetes/something prefix."""
     path = bootstrap.pr_paths('kubernetes/prefix', JOB, BUILD, PULL)
     self.assertTrue(any(
         'prefix' in p for p in path.build_log.split('/')), path.build_log)
     self.assertTrue(any(
         str(PULL) in p for p in path.build_log.split('/')), path.build_log)
Exemplo n.º 3
0
 def testOther(self):
     """Test the none kubernetes prefixes."""
     path = bootstrap.pr_paths('github.com/random/repo', JOB, BUILD, PULL)
     self.assertTrue(any(
         'random_repo' in p for p in path.build_log.split('/')), path.build_log)
     self.assertTrue(any(
         str(PULL) in p for p in path.build_log.split('/')), path.build_log)
Exemplo n.º 4
0
 def testKubernetesKubernetes(self):
     """Test the kubernetes/kubernetes prefix."""
     path = bootstrap.pr_paths('kubernetes/kubernetes', JOB, BUILD, PULL)
     self.assertTrue(any(str(PULL) == p for p in path.build_log.split('/')))
Exemplo n.º 5
0
 def testKubernetesKubernetes(self):
     """Test the kubernetes/kubernetes prefix."""
     path = bootstrap.pr_paths('kubernetes/kubernetes', JOB, BUILD, PULL)
     self.assertTrue(any(
         str(PULL) == p for p in path.build_log.split('/')))