From d9ad1b57033c787b367480608f4e02d626ab2a49 Mon Sep 17 00:00:00 2001 From: Jose Melo Date: Thu, 1 Aug 2024 15:51:31 +0100 Subject: [PATCH] fix (app manifest): Fixed packageType to "Grafana" The packageType attribute was changed from "General" to "Grafana" --- .../init/app_deployment_manifest.xml | 23 +++++--------- .../pack/app/app_deployment_manifest.xml | 30 +++++-------------- tests/Specs/Pack.cs | 5 +--- 3 files changed, 16 insertions(+), 42 deletions(-) diff --git a/cmf-cli/resources/template_feed/init/app_deployment_manifest.xml b/cmf-cli/resources/template_feed/init/app_deployment_manifest.xml index 4d601412..a4944b6a 100644 --- a/cmf-cli/resources/template_feed/init/app_deployment_manifest.xml +++ b/cmf-cli/resources/template_feed/init/app_deployment_manifest.xml @@ -162,24 +162,17 @@ true true true - - Viewer + Viewer true true - - X-FORWARDED-USER - - username + X-FORWARDED-USER + username true - - Role:X-Forwarded-Grafana-Role + Role:X-Forwarded-Grafana-Role false - {{ - Global.GetInstallationId() }} - - /var/opt/envmanager/installation/$(SYSTEM_NAME) - {{ - Global.Deployable.BaseSystemName }}CDM + {{ Global.GetInstallationId() }} + /var/opt/envmanager/installation/$(SYSTEM_NAME) + {{ Global.Deployable.BaseSystemName }}CDM true @@ -269,7 +262,7 @@ internal="/var/lib/grafana/" /> diff --git a/tests/Fixtures/pack/app/app_deployment_manifest.xml b/tests/Fixtures/pack/app/app_deployment_manifest.xml index a69dabf9..1a23799c 100644 --- a/tests/Fixtures/pack/app/app_deployment_manifest.xml +++ b/tests/Fixtures/pack/app/app_deployment_manifest.xml @@ -167,33 +167,17 @@ true true true - - Viewer - + Viewer true true - - X-FORWARDED-USER - - - username - + X-FORWARDED-USER + username true - - Role:X-Forwarded-Grafana-Role - + Role:X-Forwarded-Grafana-Role false - - {{ - Global.GetInstallationId() }} - - - /var/opt/envmanager/installation/$(SYSTEM_NAME) - - - {{ - Global.Deployable.BaseSystemName }}CDM - + {{ Global.GetInstallationId() }} + /var/opt/envmanager/installation/$(SYSTEM_NAME) + {{ Global.Deployable.BaseSystemName }}CDM true diff --git a/tests/Specs/Pack.cs b/tests/Specs/Pack.cs index 11b46edf..6e7f4b9d 100644 --- a/tests/Specs/Pack.cs +++ b/tests/Specs/Pack.cs @@ -195,10 +195,7 @@ public void Grafana() ""packageId"": ""Cmf.Custom.Grafana"", ""version"": ""{version}"", ""description"": ""Cmf Custom Grafana Package"", - ""packageType"": ""Generic"", - ""targetLayer"": ""grafana"", - ""isInstallable"": true, - ""isUniqueInstall"": true, + ""packageType"": ""Grafana"", ""steps"": [ {{ ""order"": ""1"",