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)
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)
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)
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('/')))
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('/')))