From 484aadb9204e9ba0bc0bf94201a0abf2b6602987 Mon Sep 17 00:00:00 2001
From: Janne Savolainen
Date: Tue, 7 Jun 2022 13:45:55 +0300
Subject: [PATCH] Handle error about no helm repositories when updating
repositories
Co-authored-by: Mikko Aspiala
Signed-off-by: Janne Savolainen
---
...m-repositories-in-preferences.test.ts.snap | 2602 ++++++++---------
...e-helm-repositories-in-preferences.test.ts | 261 +-
...get-active-helm-repositories.injectable.ts | 21 +-
3 files changed, 1440 insertions(+), 1444 deletions(-)
diff --git a/src/behaviours/helm-charts/__snapshots__/listing-active-helm-repositories-in-preferences.test.ts.snap b/src/behaviours/helm-charts/__snapshots__/listing-active-helm-repositories-in-preferences.test.ts.snap
index 992ff35155..e72d9547a1 100644
--- a/src/behaviours/helm-charts/__snapshots__/listing-active-helm-repositories-in-preferences.test.ts.snap
+++ b/src/behaviours/helm-charts/__snapshots__/listing-active-helm-repositories-in-preferences.test.ts.snap
@@ -938,7 +938,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
`;
-exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories resolve when loading repositories resolves with existing repositories renders 1`] = `
+exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories reject with error about no existing repositories renders 1`] = `
+
+
+
+
+
+
+
+
+
+ Kubernetes
+
+
+
+ Kubectl binary download
+
+
+
+
+
+
+ Download mirror
+
+
+
+
+
+
+
+
+ Download mirror for kubectl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Directory for binaries
+
+
+
+
+
+
+
+ The directory to download binaries into.
+
+
+
+
+ Path to kubectl binary
+
+
+
+
+
+
+
+
+
+
+
+ Kubeconfig Syncs
+
+
+
+
+
+ Synced Items
+
+
+
+
+ No files and folders have been synced yet
+
+
+
+
+
+
+ Helm Charts
+
+
+
+
+
+
+
+
+
+
+ Repositories
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ close
+
+
+
+
+ ESC
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories reject with error about no existing repositories when adding default repository reject renders 1`] = `
+
+
+
+
+
+
+
+
+
+ Kubernetes
+
+
+
+ Kubectl binary download
+
+
+
+
+
+
+ Download mirror
+
+
+
+
+
+
+
+
+ Download mirror for kubectl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Directory for binaries
+
+
+
+
+
+
+
+ The directory to download binaries into.
+
+
+
+
+ Path to kubectl binary
+
+
+
+
+
+
+
+
+
+
+
+ Kubeconfig Syncs
+
+
+
+
+
+ Synced Items
+
+
+
+
+ No files and folders have been synced yet
+
+
+
+
+
+
+ Helm Charts
+
+
+
+
+ Error when adding default Helm repository: Some error
+
+
+
+
+
+
+
+
+
+
+
+
+ close
+
+
+
+
+ ESC
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories reject with error about no existing repositories when adding of default repository resolves renders 1`] = `
+
+
+
+
+
+
+
+
+
+ Kubernetes
+
+
+
+ Kubectl binary download
+
+
+
+
+
+
+ Download mirror
+
+
+
+
+
+
+
+
+ Download mirror for kubectl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Directory for binaries
+
+
+
+
+
+
+
+ The directory to download binaries into.
+
+
+
+
+ Path to kubectl binary
+
+
+
+
+
+
+
+
+
+
+
+ Kubeconfig Syncs
+
+
+
+
+
+ Synced Items
+
+
+
+
+ No files and folders have been synced yet
+
+
+
+
+
+
+ Helm Charts
+
+
+
+
+
+
+
+
+
+
+ Repositories
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ close
+
+
+
+
+ ESC
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories resolve when repositories resolves renders 1`] = `
`;
-exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories resolve when loading repositories resolves with no existing repositories renders 1`] = `
-
-
-
-
-
-
-
-
-
- Kubernetes
-
-
-
- Kubectl binary download
-
-
-
-
-
-
- Download mirror
-
-
-
-
-
-
-
-
- Download mirror for kubectl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Directory for binaries
-
-
-
-
-
-
-
- The directory to download binaries into.
-
-
-
-
- Path to kubectl binary
-
-
-
-
-
-
-
-
-
-
-
- Kubeconfig Syncs
-
-
-
-
-
- Synced Items
-
-
-
-
- No files and folders have been synced yet
-
-
-
-
-
-
- Helm Charts
-
-
-
-
-
-
-
-
-
-
- Repositories
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- close
-
-
-
-
- ESC
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories resolve when loading repositories resolves with no existing repositories when adding default repository reject renders 1`] = `
-
-
-
-
-
-
-
-
-
- Kubernetes
-
-
-
- Kubectl binary download
-
-
-
-
-
-
- Download mirror
-
-
-
-
-
-
-
-
- Download mirror for kubectl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Directory for binaries
-
-
-
-
-
-
-
- The directory to download binaries into.
-
-
-
-
- Path to kubectl binary
-
-
-
-
-
-
-
-
-
-
-
- Kubeconfig Syncs
-
-
-
-
-
- Synced Items
-
-
-
-
- No files and folders have been synced yet
-
-
-
-
-
-
- Helm Charts
-
-
-
-
- Error when adding default Helm repository: Some error
-
-
-
-
-
-
-
-
-
-
-
-
- close
-
-
-
-
- ESC
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves when updating repositories resolve when loading repositories resolves with no existing repositories when adding of default repository resolves renders 1`] = `
-
-
-
-
-
-
-
-
-
- Kubernetes
-
-
-
- Kubectl binary download
-
-
-
-
-
-
- Download mirror
-
-
-
-
-
-
-
-
- Download mirror for kubectl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Directory for binaries
-
-
-
-
-
-
-
- The directory to download binaries into.
-
-
-
-
- Path to kubectl binary
-
-
-
-
-
-
-
-
-
-
-
- Kubeconfig Syncs
-
-
-
-
-
- Synced Items
-
-
-
-
- No files and folders have been synced yet
-
-
-
-
-
-
- Helm Charts
-
-
-
-
-
-
-
-
-
-
- Repositories
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- close
-
-
-
-
- ESC
-
-
-
-
-
-
-
-
-
-`;
-
exports[`listing active helm repositories in preferences when navigating to preferences containing helm repositories when configuration resolves without path to repository cache directory renders 1`] = `