MCPcopy Create free account
hub / github.com/kubernetes/test-infra / test_github_commit_links

Method test_github_commit_links

gubernator/view_build_test.py:320–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

318 ('49', 'kubernetes-sigs/testing_frameworks/', 'kubernetes-sigs/testing_frameworks'))
319
320 def test_github_commit_links(self):
321 def check(build_dir, result):
322 init_build(build_dir)
323 response = app.get('/build' + build_dir)
324 self.assertIn(result, response)
325
326 check('/kubernetes-jenkins/logs/ci-kubernetes-e2e/2/',
327 'github.com/kubernetes/kubernetes/commit/')
328 check('/kubernetes-jenkins/pr-logs/pull/charts/123/e2e/40/',
329 'github.com/kubernetes/charts/commit/')
330 check('/kubernetes-jenkins/pr-logs/pull/google_cadvisor/432/e2e/296/',
331 'github.com/google/cadvisor/commit/')
332
333 def test_build_pr_link(self):
334 """ The build page for a PR build links to the PR results."""

Callers

nothing calls this directly

Calls 1

checkFunction · 0.50

Tested by

no test coverage detected