Skip to content

Commit

Permalink
Updated tests build publish with project
Browse files Browse the repository at this point in the history
  • Loading branch information
bhanurp committed Feb 26, 2025
1 parent 2b16057 commit d148774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func uploadBuildWithArtifactsAndProject(t *testing.T, specFileName, buildName, b
specFile, err := tests.CreateSpec(specFileName)
assert.NoError(t, err)

runRt(t, "upload", "--spec="+specFile, "--build-name="+buildName, "--build-number="+buildNumber)
runRt(t, "upload", "--spec="+specFile, "--build-name="+buildName, "--build-number="+buildNumber, "--project="+projectKey)
runRt(t, "build-publish", buildName, buildNumber, "--project="+projectKey)
}

Expand All @@ -487,7 +487,7 @@ func uploadBuildWithDepsAndProject(t *testing.T, buildName, buildNumber, project
randFile, err := io.CreateRandFile(filepath.Join(tests.Out, "dep-file"), 1000)
assert.NoError(t, err)

runRt(t, "upload", randFile.Name(), tests.RtDevRepo, "--flat")
runRt(t, "upload", randFile.Name(), tests.RtDevRepo, "--flat", "--project="+projectKey)
assert.NoError(t, lcCli.WithoutCredentials().Exec("rt", "bad", buildName, buildNumber, tests.RtDevRepo+"/dep-file", "--from-rt"))

runRt(t, "build-publish", buildName, buildNumber, "--project="+projectKey)
Expand Down

0 comments on commit d148774

Please sign in to comment.