MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / deleteAllReleasesInProject

Function deleteAllReleasesInProject

test/integration/release_test.go:22–30  ·  view source on GitHub ↗
(t *testing.T, apiClient *octopusApiClient.Client, project *projects.Project)

Source from the content-addressed store, hash-verified

20const space1ID = "Spaces-1"
21
22func deleteAllReleasesInProject(t *testing.T, apiClient *octopusApiClient.Client, project *projects.Project) {
23 projectReleases, err := apiClient.Projects.GetReleases(project)
24 if !testutil.AssertSuccess(t, err) {
25 return
26 }
27 for _, r := range projectReleases {
28 _ = apiClient.Releases.DeleteByID(r.ID)
29 }
30}
31
32func TestReleaseCreateBasics(t *testing.T) {
33 runId := uuid.New()

Callers 2

TestReleaseCreateBasicsFunction · 0.85
TestReleaseListAndDeleteFunction · 0.85

Calls 1

AssertSuccessFunction · 0.92

Tested by

no test coverage detected