From d48ad07aa3361a64e81172ef53714795b8661284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20Echterh=C3=B6lter?= Date: Tue, 2 Jul 2024 10:33:19 +0200 Subject: [PATCH] fix: updating snapshot --- .../content-configs_test.yaml.snap | 96 ++++++++++++++++++- 1 file changed, 92 insertions(+), 4 deletions(-) diff --git a/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap b/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap index c5e3726..82f1df5 100644 --- a/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap +++ b/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap @@ -1,5 +1,95 @@ matches the snapshot: 1: | + apiVersion: core.openmfp.io/v1alpha1 + kind: ContentConfiguration + metadata: + name: accounts + namespace: NAMESPACE + spec: + inlineConfiguration: + content: |2- + { + "name": "overview", + "luigiConfigFragment": [ + { + "data": { + "nodes": [ + { + "entityType": "main", + "pathSegment": "accounts", + "label": "Account List", + "keepSelectedForChildren": true, + "icon": "home", + "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html", + "context": { + "title": "Welcome to Account List", + "content": " " + }, + "children": [ + { + "pathSegment": ":accountId", + "hideFromNav": true, + "keepSelectedForChildren": false, + "defineEntity": { + "id": "account" + }, + "context": { + "accountId": ":accountId" + } + } + ] + }, + { + "entityType": "main.account", + "pathSegment": "overview", + "label": "Overview", + "icon": "curriculum", + "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html?acc=:accountId", + "context": { + "title": ":accountId", + "content": " " + } + } + ] + } + } + ] + } + contentType: json + 2: | + apiVersion: core.openmfp.io/v1alpha1 + kind: ContentConfiguration + metadata: + name: gardener + namespace: NAMESPACE + spec: + inlineConfiguration: + content: |2- + { + "name": "gardener", + "luigiConfigFragment": [ + { + "data": { + "nodes": [ + { + "entityType": "main.account", + "pathSegment": "gardener", + "label": "Gardener Dashboard", + "virtualTree": true, + "initialRoute": "projects", + "url": "https://d.ing.gardener-op.mfp-dev.shoot.canary.k8s-hana.ondemand.com?account=:accountId", + "icon": "https://d.ing.gardener-op.mfp-dev.shoot.canary.k8s-hana.ondemand.com/static/assets/logo.svg", + "loadingIndicator": { + "enabled": false + } + } + ] + } + } + ] + } + contentType: json + 3: | apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: @@ -17,16 +107,14 @@ matches the snapshot: { "entityType": "global", "pathSegment": "home", - "label": "Overview", - "icon": "home", "hideFromNav": true, "defineEntity": { - "id": "example" + "id": "main" }, "children": [ { "pathSegment": "overview", - "label": "Overview", + "label": "Overview Home", "icon": "home", "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html", "context": {