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

3230 Commits

Author SHA1 Message Date
Alex Andreev
a38fdc7c78 Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-05 11:14:26 +03:00
Alex Andreev
be2cb63f6b Remove e2e wrap logs test case
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-05 11:14:13 +03:00
Alex Andreev
1af76e1ccf Check if .wrap class applied properly
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-05 11:11:40 +03:00
Alex Andreev
5f660bbb4a Use click instead of check
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 15:28:52 +03:00
Alex Andreev
f957eb0902 Testing check() instead of click()
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 14:47:47 +03:00
Alex Andreev
178c1f03c5 More testing of bounding box
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 14:22:51 +03:00
Alex Andreev
59d07907ee Testing bounding boxes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 13:56:22 +03:00
Alex Andreev
4fbaa7f43f Use getByText from frame selector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 13:27:50 +03:00
Alex Andreev
8566ae8e9e Using asElement() for assertions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 12:49:17 +03:00
Alex Andreev
5921098bde Search for element using getByTestId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 11:27:28 +03:00
Alex Andreev
a49c947e51 Test for white-space rule changing
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-02 10:43:46 +03:00
Alex Andreev
2c2266e13d Adding hard wait for debugging
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-01 13:38:24 +03:00
Alex Andreev
d19e65bf23 Fix click .wrap-logs click event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-01 12:30:56 +03:00
Alex Andreev
13257f03b2 Set viewport size for the tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-01 11:48:52 +03:00
Alex Andreev
f1810813a1 Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-01 10:08:33 +03:00
Alex Andreev
8d2d9e8458 Insert very long log contents
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-01 09:54:30 +03:00
Alex Andreev
0f6b0f3ceb Fixing finding wrapped log line height
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-30 15:49:16 +03:00
Alex Andreev
5a41265255 Fix logline selector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 14:07:29 +03:00
Alex Andreev
85513859f8 Change namespace to default
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 13:14:04 +03:00
Alex Andreev
3748e943bd Remove unused waitForSelector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 11:46:34 +03:00
Alex Andreev
b88a9c3f13 Navigate to pods at the start of the test
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 11:01:09 +03:00
Alex Andreev
fb2b3ff8ea Add navigateToPods step
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 10:35:59 +03:00
Alex Andreev
f8c00280ac Updating snapshots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 09:54:19 +03:00
Alex Andreev
4e3c596a80 Few line characters, bigger timeout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-29 09:51:50 +03:00
Alex Andreev
c8998eb4e8 Add missing click event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 19:11:24 +03:00
Alex Andreev
cbee79176d Fix selector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 16:15:17 +03:00
Alex Andreev
24d059f9c3 Testing log lines wrap
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 15:30:25 +03:00
Alex Andreev
6a1c60706a Fixing smoke tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 14:59:46 +03:00
Alex Andreev
a1e54ee6f1 Align with latest Virtualizer API
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 14:29:12 +03:00
Alex Andreev
efc79729c4 Fixing log-search tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 11:51:51 +03:00
Alex Andreev
d598ee5c37 Fix download-logs tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 10:46:55 +03:00
Alex Andreev
6b2b9bcc0f Bump @tanstack/react-virtual version
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 10:18:56 +03:00
Alex Andreev
7ce064c21b Fixing to-bottom tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-28 10:17:20 +03:00
Alex Andreev
31c7ae118d Merge branch 'master' into wrap-pod-logs 2022-11-28 10:11:28 +03:00
Sebastian Malton
286e6c8de7
Make PrometheusProviderRegistry fully injectable (#6592)
* Stop using source code in build file

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add new injectable version of binaryName

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add new NormalizedPlatform type

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Switch legacy execHelm to use legacy global DI for binaryPath

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove dead code

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Introduce injectable for kube auth proxy certs

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Introduce injectable forms of PrometheusProviders

- Remove class requirement
- Make everything injectable

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update tests to not use private functions

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Cleanup creating binary names and paths

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-25 09:19:57 -05:00
dependabot[bot]
30bfd6fa88
Bump @pmmmwh/react-refresh-webpack-plugin from 0.5.9 to 0.5.10 (#6646)
Bumps [@pmmmwh/react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin) from 0.5.9 to 0.5.10.
- [Release notes](https://github.com/pmmmwh/react-refresh-webpack-plugin/releases)
- [Changelog](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pmmmwh/react-refresh-webpack-plugin/compare/v0.5.9...v0.5.10)

---
updated-dependencies:
- dependency-name: "@pmmmwh/react-refresh-webpack-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-25 09:14:36 -05:00
Sebastian Malton
65b14b9e7b
Improve UX for shell env sync failure (#6644)
* Move files to be under a feature folder

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add error notification on shell sync failure

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Improve error handling of case where match is not found

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-25 04:53:09 -08:00
Sebastian Malton
27fb128c05
Handle globalAgent having a single non-array CA (#6628)
* Handle globalAgent having a single non-array CA

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Rewrite ternary as IIFE

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-24 11:28:33 -08:00
dependabot[bot]
aedc47551a
Bump @types/lodash from 4.14.189 to 4.14.190 (#6638)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.189 to 4.14.190.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 09:10:16 -05:00
dependabot[bot]
6578dd12b2
Bump playwright from 1.28.0 to 1.28.1 (#6636)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.28.0...v1.28.1)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 09:09:24 -05:00
dependabot[bot]
0b2b9ab423
Bump electron from 19.1.6 to 19.1.7 (#6637)
Bumps [electron](https://github.com/electron/electron) from 19.1.6 to 19.1.7.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v19.1.6...v19.1.7)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 09:02:13 -05:00
Sebastian Malton
6142aad5ab
Make ResourceStack fully injectable (#6591)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-24 08:46:53 -05:00
Janne Savolainen
055a13d4a9
Add eslint support for package.json exports (#6639)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-11-24 08:46:40 -05:00
Jari Kolehmainen
245e132ada
Fix KubeApi watch retry on timeout (#6640)
* fix KubeApi watch retry on timeout

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-11-24 08:44:35 -05:00
Alex Andreev
95cee3bcc8
Removing big padding after cluster settings avatar (#6634)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-23 14:52:13 +03:00
Sebastian Malton
573cd83bfb
Fix crash when upgrading release (#6626)
* Fix crash when upgrading release

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix crash when upgrading helm releases

- Fixes not being able to upgrade helm releases as well.

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix test failures

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-23 03:38:37 -08:00
Alex Andreev
1354fa66a5
Adding spacing between Metrics Settings sections (#6632)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-11-23 13:43:27 +03:00
Janne Savolainen
892b105a6b
Add missing gutter between sections in cluster settings (#6631)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-11-23 12:16:46 +03:00
Sebastian Malton
0eee5a07c5
Remove mac-ca usage since it was only in tests (#6043) (#6321)
* Remove mac-ca usage since it was only in tests (#6043)

* Make injecting CAs injectable, remove mac-ca as dependency
* Fix win-ca failing on electron renderer on windows
* Fix the matcher under features/ for main

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type errors from new types

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Temp change to see windows errors on CI

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix temp change

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Change error message for windows

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Increase maxBuffer size when reading windows CAs

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Switch back to running integration tests on windows

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix usage after rebase

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update lock file

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-22 15:23:01 -05:00
Andreas Hippler
6d7090f8a7
fix: getAllowedResources for all namespaces using SelfSubjectRulesReview (#6614)
* fix: getAllowedResources for all namespaces using SelfSubjectRulesReview

Signed-off-by: Andreas Hippler <andreas.hippler@goto.com>

* fix: refresh accessibility every 15 min

Signed-off-by: Andreas Hippler <andreas.hippler@goto.com>

* chore: remove unused clusterRefreshHandler

Signed-off-by: Andreas Hippler <andreas.hippler@goto.com>

* fix: resolve SelfSubjectRulesReview globs

Signed-off-by: Andreas Hippler <andreas.hippler@goto.com>

Signed-off-by: Andreas Hippler <andreas.hippler@goto.com>
Co-authored-by: Andreas Hippler <andreas.hippler@goto.com>
2022-11-22 09:48:59 -08:00