From 65e96a233fb8f14da354e6c58a28bad22d5609e9 Mon Sep 17 00:00:00 2001 From: attiasas Date: Tue, 7 Nov 2023 14:00:22 +0200 Subject: [PATCH] private method --- gradle_test.go | 2 +- maven_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle_test.go b/gradle_test.go index 0fd1b472a..b629b096b 100644 --- a/gradle_test.go +++ b/gradle_test.go @@ -82,7 +82,7 @@ func TestGradleBuildWithServerID(t *testing.T) { searchSpec, err := tests.CreateSpec(tests.SearchAllGradle) assert.NoError(t, err) inttestutils.VerifyExistInArtifactory(tests.GetGradleDeployedArtifacts(), searchSpec, serverDetails, t) - verifyExistInArtifactoryByProps(tests.GetGradleDeployedArtifacts(), tests.GradleRepo+"/*", "build.name="+tests.GradleBuildName+";build.number="+buildNumber+";build.timestamp="+GetBuildTimestamp(tests.GradleBuildName, buildNumber, t), t) + verifyExistInArtifactoryByProps(tests.GetGradleDeployedArtifacts(), tests.GradleRepo+"/*", "build.name="+tests.GradleBuildName+";build.number="+buildNumber+";build.timestamp="+getBuildTimestamp(tests.GradleBuildName, buildNumber, t), t) assert.NoError(t, artifactoryCli.Exec("bp", tests.GradleBuildName, buildNumber)) publishedBuildInfo, found, err := tests.GetBuildInfo(serverDetails, tests.GradleBuildName, buildNumber) diff --git a/maven_test.go b/maven_test.go index ac4eb696c..d8c2cb783 100644 --- a/maven_test.go +++ b/maven_test.go @@ -203,7 +203,7 @@ func createHomeConfigAndLocalRepo(t *testing.T, encryptPassword bool) (err error } // Get the build timestamp from the build info. -func GetBuildTimestamp(buildName, buildNumber string, t *testing.T) string { +func getBuildTimestamp(buildName, buildNumber string, t *testing.T) string { service := build.NewBuildInfoService() bld, err := service.GetOrCreateBuild(buildName, buildNumber) if assert.NoError(t, err) { @@ -221,7 +221,7 @@ func TestMavenBuildIncludePatterns(t *testing.T) { searchSpec, err := tests.CreateSpec(tests.SearchAllMaven) assert.NoError(t, err) inttestutils.VerifyExistInArtifactory(tests.GetMavenMultiIncludedDeployedArtifacts(), searchSpec, serverDetails, t) - verifyExistInArtifactoryByProps(tests.GetMavenMultiIncludedDeployedArtifacts(), tests.MvnRepo1+"/*", "build.name="+tests.MvnBuildName+";build.number="+buildNumber+";build.timestamp="+GetBuildTimestamp(tests.MvnBuildName, buildNumber, t), t) + verifyExistInArtifactoryByProps(tests.GetMavenMultiIncludedDeployedArtifacts(), tests.MvnRepo1+"/*", "build.name="+tests.MvnBuildName+";build.number="+buildNumber+";build.timestamp="+getBuildTimestamp(tests.MvnBuildName, buildNumber, t), t) // Validate build info. assert.NoError(t, artifactoryCli.Exec("build-publish", tests.MvnBuildName, buildNumber))