Skip to content

Commit

Permalink
test: enable test for build_branch pipeline_branch for build feature (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zdtsw committed Nov 14, 2022
1 parent eb6797c commit 5d69497
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pipelines/src/test/groovy/RepoHandlerTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class RepoHandlerTest {
Assertions.assertEquals(adoptJson.repository.build_branch, 'master')
Assertions.assertEquals(adoptJson.repository.pipeline_url, 'https://github.com/adoptium/ci-jenkins-pipelines.git')
Assertions.assertEquals(adoptJson.repository.pipeline_branch, 'master')
// TODO: enable below check when code has merged to "master" , refer to file "pipelines/defaults.json"
// Assertions.assertEquals(adoptJson.repository.helper_ref, "master")
Assertions.assertEquals(adoptJson.repository.helper_ref, "master")

// Jenkins Details
Assertions.assertTrue(adoptJson.jenkinsDetails instanceof Map)
Expand Down Expand Up @@ -82,8 +81,7 @@ class RepoHandlerTest {
Assertions.assertEquals(userJson.repository.build_branch, '20')
Assertions.assertEquals(userJson.repository.pipeline_url, '19')
Assertions.assertEquals(userJson.repository.pipeline_branch, '21')
// TODO: enable below check when code has merged to "master" , refer to file "pipelines/src/test/groovy/fakeDefaults.json"
//Assertions.assertEquals(userJson.repository.helper_ref, "24")
Assertions.assertEquals(userJson.repository.helper_ref, "24")

// Jenkins Details
Assertions.assertTrue(userJson.jenkinsDetails instanceof Map)
Expand Down

0 comments on commit 5d69497

Please sign in to comment.