1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

2982 Commits

Author SHA1 Message Date
Sebastian Malton
9b23595d6b Update snapshots relating no longer using getAbsolutePath
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
a71b43f8e5 Fix opening application window tests by making override properly absolute
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
75eed35f3a Replace all uses of getAbsolutePath with joinPaths as it is more correct and less confusing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
2058860412 Fix getElectronAppPathInjectable override not returning absolute paths
- Also fixes the listing-active-helm-repos-in-prefs tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
1fbe3c482b Fix build issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
69bd42357f Fix <Extensions> tests by removing mockFs and making everything injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
46db3a6b7a Fix kubeconfig-sync tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:33 -04:00
Sebastian Malton
aec299feb4 Fix flakiness and improve tests for DeleteClusterDialog
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
7e47c633bf Fix flakiness in unit test when using <Animated>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
b8538e87b5 Reupdated upgrade chart new tab test snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Iku-turso
185baf200b Update snapshots to recent changes in master
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2022-10-04 17:55:32 -04:00
Sebastian Malton
339572d72c Fix tests relating to hosted cluster id
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
8dd47b84db Fix installing-helm-chart-from-new-tab tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
6a92ee2c7c fix showing-details-for-helm-release tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
088934290b Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
e6b71ed12b Remove debug message
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
fce3c95733 Add happy path behavioural tests for upgrade chart tab
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
f14e603592 Remove injectable for time since we should just use useMockTime
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
3ef643190c Better fix for formatting urls
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
26ea3f4a80 Fix breaking change on KubeApi.list
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
4f51a5431c Fix crash will looking up api refs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
bde34646cf Improve expects for multiple field values
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
45f07a15c7 Fix bad rebase causing tests to fail
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
c52826b450 Fix unit tests after introducing new injectables that have side effects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
735cc8e7af Convert all KubeApi related tests to use asyncFn
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:32 -04:00
Sebastian Malton
a1c9946e84 Fix bug in KubeApi constructor
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
a254473141 Fix typo
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
18db8d544d Switch to non-reactive way of gettting possible helm release versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
5798f6722e Introduce and use get(Milli)SecondsFromUnixEpochInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
ce614461ce Remove modifying input in requestActivePortForwardInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
c7d694fe76 Improve injectable filenames compared to the injectables inside
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
15792cdcc9 Remove global legacy apiKube
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
c3c736c065 Introduce and use windowLocationInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
fd19280065 Introduce and use isDebuggingInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
2909674beb Remove legacy apiBase global
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
2478136635 Fix create resource tab not working
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
0591c27b3c Fix crash on load due to circular dependency
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
6a359e8ddb Fix residual typing issues related to metrics
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:31 -04:00
Sebastian Malton
d249c4c679 Fix show details and updating helm releases tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
042b679ca6 Fix showing-details-for-helm-release behavioural tests
- Remove HelmChartStore in favour of all injectables

- Create a model for UpgradeChartDockTab

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
4bef236f8c Add new injectable for create KubeJsonApi and JsonApi instances
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
5f612dd595 Fix tests with new global override
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
b1d1b69b3d Remove jest-fetch-mock and make fetch injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
5a2a9248e8 Make KubeconfigDialog injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
6cbb87705f Use new createKubeJsonApiForClusterInjectable for openNodeShellSession
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
a0e15c453f Convert the rest of shell sessions to be DI-ed
- This is a prerequesit for using the new
  createKubeJsonApiForClusterInjectable

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
558dbddeb8 Switch KubeJsonApi.forCluster to be injectable but do not use
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:30 -04:00
Sebastian Malton
1809f98046 Replace resource applier with injectables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:29 -04:00
Sebastian Malton
35f3c08279 Convert all metric requests to be injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:29 -04:00
Sebastian Malton
12beacec81 Make PortForward's use of apiBase fully injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:55:29 -04:00