From 5d694972320e48bb3f5e12fbacef496f55ef5617 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Mon, 14 Nov 2022 19:50:02 +0100 Subject: [PATCH] test: enable test for build_branch pipeline_branch for build feature (#496) --- pipelines/src/test/groovy/RepoHandlerTest.groovy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pipelines/src/test/groovy/RepoHandlerTest.groovy b/pipelines/src/test/groovy/RepoHandlerTest.groovy index 8bd64f6af..fc5ef1025 100644 --- a/pipelines/src/test/groovy/RepoHandlerTest.groovy +++ b/pipelines/src/test/groovy/RepoHandlerTest.groovy @@ -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) @@ -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)