From edd3ac81c6eb912f7ff06958bc43d9a1cd3dd13e Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Wed, 7 May 2025 15:51:55 +0200 Subject: [PATCH 01/10] TA-3725: Add list command options to filter by variable value and type. --- src/api/batch-import-export-api.ts | 14 ++++++++++++++ src/commands/config.command.ts | 15 ++++++++++++++- src/content-cli-config.ts | 4 +++- .../batch-import-export-service.ts | 15 +++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/api/batch-import-export-api.ts b/src/api/batch-import-export-api.ts index c14d3840..83d8f9f8 100644 --- a/src/api/batch-import-export-api.ts +++ b/src/api/batch-import-export-api.ts @@ -21,6 +21,20 @@ class BatchImportExportApi { }); } + public findActivePackagesByVariableValue(flavors: string[], variableValue:string, variableType:string): Promise { + const queryParams = new URLSearchParams(); + + queryParams.set("variableValue", variableValue); + if(variableType) { + queryParams.set("variableType", variableType); + } + flavors.forEach(flavor => queryParams.append("flavors", flavor)) + + return httpClientV2.get(`/package-manager/api/core/packages/export/list-by-variable-value?${queryParams.toString()}`).catch(e => { + throw new FatalError(`Problem getting active packages by variable value: ${e}`); + }); + } + public findActivePackagesByKeys(packageKeys: string[], withDependencies: boolean = false): Promise { const queryParams = new URLSearchParams(); diff --git a/src/commands/config.command.ts b/src/commands/config.command.ts index f2ad14ed..bbca0c56 100644 --- a/src/commands/config.command.ts +++ b/src/commands/config.command.ts @@ -4,7 +4,12 @@ import {diffService} from "../services/package-manager/diff-service"; export class ConfigCommand { - public async listActivePackages(jsonResponse: boolean, flavors: string[], withDependencies: boolean, packageKeys:string[]): Promise { + public async listActivePackages(jsonResponse: boolean, flavors: string[], withDependencies: boolean, packageKeys:string[], variableValue:string, variableType:string): Promise { + if(variableValue) { + await this.listPackagesByVariableValue(jsonResponse, flavors, variableValue, variableType); + return; + } + if (jsonResponse) { await batchImportExportService.findAndExportListOfActivePackages(flavors ?? [], packageKeys ?? [], withDependencies) } else { @@ -31,4 +36,12 @@ export class ConfigCommand { public diffPackages(file: string, hasChanges: boolean, jsonResponse: boolean): Promise { return diffService.diffPackages(file, hasChanges, jsonResponse); } + + public async listPackagesByVariableValue(jsonResponse: boolean, flavors: string[], variableValue:string, variableType:string): Promise { + if (jsonResponse) { + await batchImportExportService.findAndExportListOfActivePackagesByVariableValue(flavors ?? [], variableValue, variableType ) + } else { + await batchImportExportService.listActivePackagesByVariableValue(flavors ?? [], variableValue, variableType); + } + } } \ No newline at end of file diff --git a/src/content-cli-config.ts b/src/content-cli-config.ts index 060972b7..a8cc0716 100644 --- a/src/content-cli-config.ts +++ b/src/content-cli-config.ts @@ -14,8 +14,10 @@ export class Config { .option("--flavors ", "Lists only active packages of the given flavors") .option("--withDependencies", "Include dependencies", "") .option("--packageKeys ", "Lists only given package keys") + .option("--variableValue ", "Variable value for filtering packages by.") + .option("--variableType ", "Variable type for filtering packages by.") .action(async cmd => { - await new ConfigCommand().listActivePackages(cmd.json, cmd.flavors, cmd.withDependencies, cmd.packageKeys); + await new ConfigCommand().listActivePackages(cmd.json, cmd.flavors, cmd.withDependencies, cmd.packageKeys, cmd.variableValue, cmd.variableType); process.exit(); }); diff --git a/src/services/package-manager/batch-import-export-service.ts b/src/services/package-manager/batch-import-export-service.ts index b304d8d2..d0fb0fc8 100644 --- a/src/services/package-manager/batch-import-export-service.ts +++ b/src/services/package-manager/batch-import-export-service.ts @@ -155,6 +155,21 @@ class BatchImportExportService { } return null; } + + public async findAndExportListOfActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string): Promise { + let packagesToExport = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); + + packagesToExport = await studioService.getExportPackagesWithStudioData(packagesToExport, false); + + this.exportListOfPackages(packagesToExport); + } + + public async listActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string) : Promise { + const packagesByVariableValue = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); + packagesByVariableValue.forEach(pkg => { + logger.info(`${pkg.name} - Active Key: "${pkg.key}"`) + }); + } } export const batchImportExportService = new BatchImportExportService(); \ No newline at end of file From 88c72b28c3d20642f6efd34792b11407dd6a1794 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Wed, 7 May 2025 17:08:25 +0200 Subject: [PATCH 02/10] TA-3725: Fix existing tests --- tests/config/config-list.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/config/config-list.spec.ts b/tests/config/config-list.spec.ts index d3657f8e..e87102b8 100644 --- a/tests/config/config-list.spec.ts +++ b/tests/config/config-list.spec.ts @@ -30,7 +30,7 @@ describe("Config list", () => { mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list?" + urlParams.toString(), [firstPackage, secondPackage]); - await new ConfigCommand().listActivePackages(false, flavorsArray, false, []); + await new ConfigCommand().listActivePackages(false, flavorsArray, false, [], null, null); expect(testTransport.logMessages.length).toBe(2); expect(testTransport.logMessages[0].message).toContain(`${firstPackage.name} - Key: "${firstPackage.key}"`); @@ -47,7 +47,7 @@ describe("Config list", () => { mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list?withDependencies=false", [{...firstPackage}, {...secondPackage}]); mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); - await new ConfigCommand().listActivePackages(true, [], false, []); + await new ConfigCommand().listActivePackages(true, [], false, [], null, null); const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; @@ -93,7 +93,7 @@ describe("Config list", () => { }; mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/compute-pools/data-models/details", [dataModelDetailResponse]); - await new ConfigCommand().listActivePackages(true, [], true, []); + await new ConfigCommand().listActivePackages(true, [], true, [], null, null); const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; @@ -118,7 +118,7 @@ describe("Config list", () => { mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-keys?packageKeys=key-1&packageKeys=key-2&withDependencies=false", [{...firstPackage}, {...secondPackage}]); mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); - await new ConfigCommand().listActivePackages(true, [], false, [firstPackage.key, secondPackage.key]); + await new ConfigCommand().listActivePackages(true, [], false, [firstPackage.key, secondPackage.key], null, null); const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; @@ -164,7 +164,7 @@ describe("Config list", () => { }; mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/compute-pools/data-models/details", [dataModelDetailResponse]); - await new ConfigCommand().listActivePackages(true, [], true, [firstPackage.key, secondPackage.key]); + await new ConfigCommand().listActivePackages(true, [], true, [firstPackage.key, secondPackage.key], null, null); const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; From 3c619fe5c130b6cd90e330b05bd4ca5771261163 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Wed, 7 May 2025 17:12:30 +0200 Subject: [PATCH 03/10] TA-3725: Add two tests, one for json and one for non json response --- tests/config/config-list.spec.ts | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/config/config-list.spec.ts b/tests/config/config-list.spec.ts index e87102b8..218ac3a0 100644 --- a/tests/config/config-list.spec.ts +++ b/tests/config/config-list.spec.ts @@ -179,4 +179,43 @@ describe("Config list", () => { expect(exportedSecondPackage).toEqual(secondPackage); expect(exportedFirstPackage).toEqual({...firstPackage, datamodels: [{...dataModelDetailResponse}]}); }) + + it("Should list all packages filtered by variable value", async () => { + const firstPackage = PackageManagerApiUtils.buildPackageExportTransport("key-1", "name-1"); + const secondPackage = PackageManagerApiUtils.buildPackageExportTransport("key-2", "name-2"); + + const studioPackage: ContentNodeTransport = PackageManagerApiUtils.buildContentNodeTransport("key-1", "spaceId-1"); + + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-variable-value?variableValue=1", [{...firstPackage}, {...secondPackage}]); + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); + + await new ConfigCommand().listActivePackages(true, [], false, [], "1", null); + + const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; + + expect(mockWriteFileSync).toHaveBeenCalledWith(path.resolve(process.cwd(), expectedFileName), expect.any(String), {encoding: "utf-8"}); + + const exportedTransports = JSON.parse(mockWriteFileSync.mock.calls[0][1]) as PackageExportTransport[]; + expect(exportedTransports.length).toBe(2); + }) + + it("Should export all packages for json response filtered by variable value", async () => { + const firstPackage = PackageManagerApiUtils.buildPackageExportTransport("key-1", "name-1"); + const secondPackage = PackageManagerApiUtils.buildPackageExportTransport("key-2", "name-2"); + + const studioPackage: ContentNodeTransport = PackageManagerApiUtils.buildContentNodeTransport("key-1", "spaceId-1"); + + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-variable-value?variableValue=1", [{...firstPackage}, {...secondPackage}]); + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); + + await new ConfigCommand().listActivePackages(true, [], false, [], "1", null); + + const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; + + expect(mockWriteFileSync).toHaveBeenCalledWith(path.resolve(process.cwd(), expectedFileName), expect.any(String), {encoding: "utf-8"}); + + const exportedTransports = JSON.parse(mockWriteFileSync.mock.calls[0][1]) as PackageExportTransport[]; + expect(exportedTransports.length).toBe(2); + }) + }) \ No newline at end of file From e97fe2d3d70e0998c4ba79c319a3019c0a6bf094 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Wed, 7 May 2025 17:26:37 +0200 Subject: [PATCH 04/10] TA-3725: Lint --- src/api/batch-import-export-api.ts | 2 +- src/commands/config.command.ts | 4 ++-- src/content-cli-config.ts | 2 +- src/services/package-manager/batch-import-export-service.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/batch-import-export-api.ts b/src/api/batch-import-export-api.ts index 83d8f9f8..5a56c12a 100644 --- a/src/api/batch-import-export-api.ts +++ b/src/api/batch-import-export-api.ts @@ -25,7 +25,7 @@ class BatchImportExportApi { const queryParams = new URLSearchParams(); queryParams.set("variableValue", variableValue); - if(variableType) { + if (variableType) { queryParams.set("variableType", variableType); } flavors.forEach(flavor => queryParams.append("flavors", flavor)) diff --git a/src/commands/config.command.ts b/src/commands/config.command.ts index bbca0c56..91df5364 100644 --- a/src/commands/config.command.ts +++ b/src/commands/config.command.ts @@ -5,7 +5,7 @@ import {diffService} from "../services/package-manager/diff-service"; export class ConfigCommand { public async listActivePackages(jsonResponse: boolean, flavors: string[], withDependencies: boolean, packageKeys:string[], variableValue:string, variableType:string): Promise { - if(variableValue) { + if (variableValue) { await this.listPackagesByVariableValue(jsonResponse, flavors, variableValue, variableType); return; } @@ -37,7 +37,7 @@ export class ConfigCommand { return diffService.diffPackages(file, hasChanges, jsonResponse); } - public async listPackagesByVariableValue(jsonResponse: boolean, flavors: string[], variableValue:string, variableType:string): Promise { + private async listPackagesByVariableValue(jsonResponse: boolean, flavors: string[], variableValue:string, variableType:string): Promise { if (jsonResponse) { await batchImportExportService.findAndExportListOfActivePackagesByVariableValue(flavors ?? [], variableValue, variableType ) } else { diff --git a/src/content-cli-config.ts b/src/content-cli-config.ts index a8cc0716..6908ed8c 100644 --- a/src/content-cli-config.ts +++ b/src/content-cli-config.ts @@ -15,7 +15,7 @@ export class Config { .option("--withDependencies", "Include dependencies", "") .option("--packageKeys ", "Lists only given package keys") .option("--variableValue ", "Variable value for filtering packages by.") - .option("--variableType ", "Variable type for filtering packages by.") + .option("--variableType ", "Variable type for filtering packages by.") .action(async cmd => { await new ConfigCommand().listActivePackages(cmd.json, cmd.flavors, cmd.withDependencies, cmd.packageKeys, cmd.variableValue, cmd.variableType); process.exit(); diff --git a/src/services/package-manager/batch-import-export-service.ts b/src/services/package-manager/batch-import-export-service.ts index d0fb0fc8..67ed76a5 100644 --- a/src/services/package-manager/batch-import-export-service.ts +++ b/src/services/package-manager/batch-import-export-service.ts @@ -167,7 +167,7 @@ class BatchImportExportService { public async listActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string) : Promise { const packagesByVariableValue = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); packagesByVariableValue.forEach(pkg => { - logger.info(`${pkg.name} - Active Key: "${pkg.key}"`) + logger.info(`${pkg.name} - Key: "${pkg.key}"`) }); } } From 7d71f1922a9bb92fdeb6be838bb6ce1b5e6634d5 Mon Sep 17 00:00:00 2001 From: Jeta Date: Thu, 8 May 2025 11:15:03 +0200 Subject: [PATCH 05/10] Update src/commands/config.command.ts Co-authored-by: Laberion Ajvazi <93651741+LaberionAjvazi@users.noreply.github.com> --- src/commands/config.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/config.command.ts b/src/commands/config.command.ts index 91df5364..adc46033 100644 --- a/src/commands/config.command.ts +++ b/src/commands/config.command.ts @@ -4,7 +4,7 @@ import {diffService} from "../services/package-manager/diff-service"; export class ConfigCommand { - public async listActivePackages(jsonResponse: boolean, flavors: string[], withDependencies: boolean, packageKeys:string[], variableValue:string, variableType:string): Promise { + public async listActivePackages(jsonResponse: boolean, flavors: string[], withDependencies: boolean, packageKeys: string[], variableValue: string, variableType: string): Promise { if (variableValue) { await this.listPackagesByVariableValue(jsonResponse, flavors, variableValue, variableType); return; From f755b5d697a2d00d649d0109d4455af4e503727b Mon Sep 17 00:00:00 2001 From: Jeta Date: Thu, 8 May 2025 11:15:11 +0200 Subject: [PATCH 06/10] Update src/commands/config.command.ts Co-authored-by: Laberion Ajvazi <93651741+LaberionAjvazi@users.noreply.github.com> --- src/commands/config.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/config.command.ts b/src/commands/config.command.ts index adc46033..b77071e2 100644 --- a/src/commands/config.command.ts +++ b/src/commands/config.command.ts @@ -37,7 +37,7 @@ export class ConfigCommand { return diffService.diffPackages(file, hasChanges, jsonResponse); } - private async listPackagesByVariableValue(jsonResponse: boolean, flavors: string[], variableValue:string, variableType:string): Promise { + private async listPackagesByVariableValue(jsonResponse: boolean, flavors: string[], variableValue: string, variableType: string): Promise { if (jsonResponse) { await batchImportExportService.findAndExportListOfActivePackagesByVariableValue(flavors ?? [], variableValue, variableType ) } else { From dc2f77b1b62d22a5e6adcbc6306dc2597f4be8d6 Mon Sep 17 00:00:00 2001 From: Jeta Date: Thu, 8 May 2025 11:15:19 +0200 Subject: [PATCH 07/10] Update src/api/batch-import-export-api.ts Co-authored-by: Laberion Ajvazi <93651741+LaberionAjvazi@users.noreply.github.com> --- src/api/batch-import-export-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/batch-import-export-api.ts b/src/api/batch-import-export-api.ts index 5a56c12a..ce23e145 100644 --- a/src/api/batch-import-export-api.ts +++ b/src/api/batch-import-export-api.ts @@ -21,7 +21,7 @@ class BatchImportExportApi { }); } - public findActivePackagesByVariableValue(flavors: string[], variableValue:string, variableType:string): Promise { + public findActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string): Promise { const queryParams = new URLSearchParams(); queryParams.set("variableValue", variableValue); From a623be285f7ed847832b5bbc9b14f0eab15275e1 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Thu, 8 May 2025 11:36:37 +0200 Subject: [PATCH 08/10] TA-3725: reorder methods --- .../batch-import-export-service.ts | 30 +++++++++---------- tests/config/config-list.spec.ts | 15 ++++------ 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/services/package-manager/batch-import-export-service.ts b/src/services/package-manager/batch-import-export-service.ts index 67ed76a5..b52a4fff 100644 --- a/src/services/package-manager/batch-import-export-service.ts +++ b/src/services/package-manager/batch-import-export-service.ts @@ -95,6 +95,21 @@ class BatchImportExportService { logger.info("Config import report file: " + reportFileName); } + public async findAndExportListOfActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string): Promise { + let packagesToExport = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); + + packagesToExport = await studioService.getExportPackagesWithStudioData(packagesToExport, false); + + this.exportListOfPackages(packagesToExport); + } + + public async listActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string) : Promise { + const packagesByVariableValue = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); + packagesByVariableValue.forEach(pkg => { + logger.info(`${pkg.name} - Key: "${pkg.key}"`) + }); + } + private exportListOfPackages(packages: PackageExportTransport[]): void { const filename = uuidv4() + ".json"; fileService.writeToFileWithGivenName(JSON.stringify(packages), filename); @@ -155,21 +170,6 @@ class BatchImportExportService { } return null; } - - public async findAndExportListOfActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string): Promise { - let packagesToExport = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); - - packagesToExport = await studioService.getExportPackagesWithStudioData(packagesToExport, false); - - this.exportListOfPackages(packagesToExport); - } - - public async listActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string) : Promise { - const packagesByVariableValue = await batchImportExportApi.findActivePackagesByVariableValue(flavors, variableValue, variableType); - packagesByVariableValue.forEach(pkg => { - logger.info(`${pkg.name} - Key: "${pkg.key}"`) - }); - } } export const batchImportExportService = new BatchImportExportService(); \ No newline at end of file diff --git a/tests/config/config-list.spec.ts b/tests/config/config-list.spec.ts index 218ac3a0..c54c76a1 100644 --- a/tests/config/config-list.spec.ts +++ b/tests/config/config-list.spec.ts @@ -189,24 +189,19 @@ describe("Config list", () => { mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-variable-value?variableValue=1", [{...firstPackage}, {...secondPackage}]); mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); - await new ConfigCommand().listActivePackages(true, [], false, [], "1", null); - - const expectedFileName = testTransport.logMessages[0].message.split(FileService.fileDownloadedMessage)[1]; + await new ConfigCommand().listActivePackages(false, [], false, [], "1", null); - expect(mockWriteFileSync).toHaveBeenCalledWith(path.resolve(process.cwd(), expectedFileName), expect.any(String), {encoding: "utf-8"}); - - const exportedTransports = JSON.parse(mockWriteFileSync.mock.calls[0][1]) as PackageExportTransport[]; - expect(exportedTransports.length).toBe(2); + expect(testTransport.logMessages.length).toBe(2); + expect(testTransport.logMessages[0].message).toContain(`${firstPackage.name} - Key: "${firstPackage.key}"`); + expect(testTransport.logMessages[1].message).toContain(`${secondPackage.name} - Key: "${secondPackage.key}"`); }) it("Should export all packages for json response filtered by variable value", async () => { const firstPackage = PackageManagerApiUtils.buildPackageExportTransport("key-1", "name-1"); const secondPackage = PackageManagerApiUtils.buildPackageExportTransport("key-2", "name-2"); - const studioPackage: ContentNodeTransport = PackageManagerApiUtils.buildContentNodeTransport("key-1", "spaceId-1"); - mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-variable-value?variableValue=1", [{...firstPackage}, {...secondPackage}]); - mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", []); await new ConfigCommand().listActivePackages(true, [], false, [], "1", null); From c1fdc615320363aece1436ed6354b45473ef4de6 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Thu, 8 May 2025 11:38:55 +0200 Subject: [PATCH 09/10] TA-3725: update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d3a81d77..c7cbea82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@celonis/content-cli", - "version": "0.13.4", + "version": "0.13.5", "description": "CLI Tool to help manage content in Celonis EMS", "main": "content-cli.js", "bin": { From ff0f229418f24f12b918c253559dfb5c4d2f1d66 Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Thu, 8 May 2025 11:40:22 +0200 Subject: [PATCH 10/10] TA-3725: remove studio package --- tests/config/config-list.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/config/config-list.spec.ts b/tests/config/config-list.spec.ts index c54c76a1..53433907 100644 --- a/tests/config/config-list.spec.ts +++ b/tests/config/config-list.spec.ts @@ -184,10 +184,9 @@ describe("Config list", () => { const firstPackage = PackageManagerApiUtils.buildPackageExportTransport("key-1", "name-1"); const secondPackage = PackageManagerApiUtils.buildPackageExportTransport("key-2", "name-2"); - const studioPackage: ContentNodeTransport = PackageManagerApiUtils.buildContentNodeTransport("key-1", "spaceId-1"); mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/core/packages/export/list-by-variable-value?variableValue=1", [{...firstPackage}, {...secondPackage}]); - mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", [studioPackage]); + mockAxiosGet("https://myTeam.celonis.cloud/package-manager/api/packages/with-variable-assignments?type=DATA_MODEL", []); await new ConfigCommand().listActivePackages(false, [], false, [], "1", null);