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
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
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
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
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
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
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
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
83970fb5a4
Convert all of Helm functions to be DI
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-04 17:55:29 -04:00
Sebastian Malton
2f57644801
Making apiBase injectable
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-04 17:55:29 -04:00
Sebastian Malton
ed073d6562
Revert "Remove mac-ca usage since it was only in tests ( #6043 )" ( #6319 )
...
This reverts commit f544386619 .
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-04 17:52:55 -04:00
Sebastian Malton
032e6d968c
Validate ClusterModel before trying to update or create a Cluster ( #4515 )
...
* Validate ClusterModel before trying to update or create a Cluster
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-03 12:36:28 -04:00
Sebastian Malton
f544386619
Remove mac-ca usage since it was only in tests ( #6043 )
...
* Make injecting CAs injectable, remove mac-ca as dependency
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix win-ca failing on electron renderer on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix the matcher under features/ for main
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-03 10:41:59 -04:00
Sebastian Malton
b9cc0d5687
Fix kubeconfig-sync sometimes producing multiple identical entities ( #5855 )
2022-10-03 10:38:41 -04:00
Sebastian Malton
4c49134dbc
Fix crash on clean startup ( #6276 )
...
* Convert ReleaseChannel into an InitializableState
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix init timing for DefaultUpdateChannel
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Make UserStore loading seperate from creation to fix initialization timing errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix overrides of UserStore
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix UserStore tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Move userStoreFileMigration call to the init runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add global override for userStoreFileMigratiom
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-09-20 08:19:09 +02:00
Sebastian Malton
a52e7be272
Fix typing issue with missing build.publish field ( #6264 )
2022-09-16 09:19:06 -04:00
Sebastian Malton
67ac1692b2
Clean up versioning and packageJson uses ( #6196 )
2022-09-15 17:20:58 -04:00
Sebastian Malton
a784ca70b1
Fix beta->latest->beta upgrade loop ( #6189 )
2022-09-15 08:02:14 -04:00
Jim Ehrismann and Sebastian Malton
a2d52fa6b8
Made welcome page configurable ( #6232 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-09-14 09:07:44 -04:00
ec78080d99
Make opening of release details work properly when release has resources without namespace ( #6088 )
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-09-08 13:57:11 -04:00
Sebastian Malton
bab1b13317
Fix envFrom.prefix not being applied in container's env view ( #5434 )
2022-09-02 13:49:53 -04:00
Sebastian Malton
6ef284560a
Use extension version as projectVersion for exported ExtensionStore ( #6161 )
2022-09-02 09:43:06 -04:00
fc3512daf2
Introduce a centralised way to emit telemetry from calls of injectable functions ( #6164 )
...
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi >
Co-authored-by: Juho Heikka <juho.heikka@gmail.com >
2022-09-02 09:33:22 -04:00
Sebastian Malton
b0d72b78d0
Bump typescript, @typescript-eslint/eslint-plugin, and @typescript-eslint/parser ( #6143 )
2022-09-01 10:05:32 -04:00
Sebastian Malton
4b1c9fb5fd
Fix doughnut graphs on workload overview sometimes not showing ( #5727 )
2022-08-30 07:54:18 -04:00
Sebastian Malton
7767216167
Fix issues when using newer @types/semver ( #6132 )
...
- All the removed uses of `includePrerelease` that are removed were not
actually used within the semver package
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-08-30 09:46:52 +03:00
Janne Savolainen
81f7bd3c2c
Replace jest.mock's with overriding dependencies ( #6014 )
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-08-23 13:04:00 +03:00
Sebastian Malton
03d2389f01
Use default export to fix issue with package lying with types ( #6081 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-08-22 16:42:06 -04:00
Sebastian Malton
436aa3dcda
Use abort-controller package to fix typing issues ( #6077 )
2022-08-22 11:18:01 -04:00
Piotr Roszatycki
2e7fbac9fa
Add Service Account in pods details ( #6050 )
...
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com >
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com >
2022-08-19 04:40:43 -07:00
Janne Savolainen
63d5a34379
Replace static application window with ability to create many ( #5979 )
...
* Replace static application window with ability to create as many as you wish
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
* Adapt tests for replacing static application window with ability to create as many as you wish and separate starting of main and window in behaviours
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
* Make first render of application smaller in test that proves to be hard for CI
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
* Remove redundant code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
* Simplify code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-08-16 15:55:42 +03:00
Sebastian Malton
6d37019089
Upgrade to electron@^19 ( #5369 )
...
* Upgrade to use electron 19.0.4
- Update documentation
- Updated disturl in .yarnrc to fix build issue
- Remove use of abort-controller package
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove support for webview tags
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-08-12 05:17:06 -07:00
Janne Savolainen
33834e34b7
Optimize getting injectable paths only once for all test suites ( #6013 )
2022-08-11 09:42:52 -04:00