Skip to content

Commit

Permalink
private method
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Nov 7, 2023
1 parent df57439 commit 65e96a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions maven_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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))
Expand Down

0 comments on commit 65e96a2

Please sign in to comment.