diff --git a/lib/testing/src/lib/process-services-cloud/actions/project.ts b/lib/testing/src/lib/process-services-cloud/actions/project.ts index 30d7824820..ea6d0cc55d 100644 --- a/lib/testing/src/lib/process-services-cloud/actions/project.ts +++ b/lib/testing/src/lib/process-services-cloud/actions/project.ts @@ -88,6 +88,16 @@ export class Project { } } + async deleteRelease(releaseId: string): Promise { + Logger.info(`[Project] Delete project release ${releaseId}`); + try { + await this.requestApiHelper.delete(`modeling-service/v1/releases/${releaseId}`); + Logger.info(`[Project] Release ${releaseId} was deleted successfully`); + } catch (error) { + throw new Error(`Delete project release ${releaseId} failed: ${JSON.stringify(error)}`); + } + } + async import(projectFilePath: string): Promise { const fileContent = await fs.createReadStream(projectFilePath); const requestOptions: E2eRequestApiHelperOptions = {