forked from gardener/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes some problems with latest dependency updates (gardener#2000)
* fix and update constraints * fix composable tests * fixed vitest setup * update vitest * update vueuse and allow beta releases * hopefully fixed issue with update cookies after finished tests * fixed some more tests * remove effectScope from tests (does not solve the problem) * mock cookieStore on window * downgrade eslint-plugin-promise and dedupe
- Loading branch information
1 parent
4fbcf24
commit cf78824
Showing
170 changed files
with
1,031 additions
and
2,849 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+77.1 KB
...pping-npm-2.2.1-3da3d624be-92ce5915f8.zip → ...pping-npm-2.3.0-559c14eee4-81d63cca54.zip
Binary file not shown.
Binary file removed
BIN
-24.5 KB
.yarn/cache/@babel-code-frame-npm-7.22.13-2782581d20-f4cc8ae100.zip
Binary file not shown.
Binary file removed
BIN
-65.8 KB
.yarn/cache/@babel-compat-data-npm-7.22.20-f6a6b55915-73c0f7cf4a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-54.8 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.22.15-7aac9e71ad-45b9286861.zip
Binary file not shown.
Binary file removed
BIN
-7.92 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.22.20-260909e014-e762c2d8f5.zip
Binary file not shown.
Binary file removed
BIN
-22.5 KB
.yarn/cache/@babel-helper-function-name-npm-7.23.0-ce38271242-d771dd1f32.zip
Binary file not shown.
Binary file removed
BIN
-8.32 KB
.yarn/cache/@babel-helper-hoist-variables-npm-7.22.5-6db3192347-60a3077f75.zip
Binary file not shown.
Binary file removed
BIN
-55.7 KB
.yarn/cache/@babel-helper-module-imports-npm-7.22.15-687e77ee50-4e0d7fc36d.zip
Binary file not shown.
Binary file removed
BIN
-158 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.23.0-6d065838a4-15a52e401b.zip
Binary file not shown.
Binary file removed
BIN
-13 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.22.5-192e38e1de-d2c4bfe2fa.zip
Binary file not shown.
Binary file removed
BIN
-15.2 KB
.yarn/cache/@babel-helper-simple-access-npm-7.22.5-0a3f578780-f0cf81a30b.zip
Binary file not shown.
Binary file removed
BIN
-12.1 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.22.6-e723505aef-d83e4b623e.zip
Binary file not shown.
Binary file removed
BIN
-32.3 KB
.yarn/cache/@babel-helper-string-parser-npm-7.23.4-b1f0d030c3-f348d5637a.zip
Binary file not shown.
Binary file removed
BIN
-32.5 KB
.yarn/cache/@babel-helper-string-parser-npm-7.24.7-560b175e3f-47840c7004.zip
Binary file not shown.
Binary file added
BIN
+32.5 KB
.yarn/cache/@babel-helper-string-parser-npm-7.24.8-133b2e71e1-6361f72076.zip
Binary file not shown.
Binary file removed
BIN
-50.7 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.22.20-18305bb306-dcad63db34.zip
Binary file not shown.
Binary file removed
BIN
-13.6 KB
.yarn/cache/@babel-helper-validator-option-npm-7.22.15-29aa330042-e9661bf80b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.34 MB
...ypes-npm-7.24.7-43a9e43e29-d9ecbfc3eb.zip → ...ypes-npm-7.24.9-5c021bc930-4970b3481c.zip
Binary file not shown.
Binary file removed
BIN
-79.9 KB
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.3-1815eba94c-376fc11cf5.zip
Binary file not shown.
Binary file removed
BIN
-17.6 KB
.yarn/cache/@jridgewell-set-array-npm-1.1.2-45b82d7fb6-bc7ab4c4c0.zip
Binary file not shown.
Binary file removed
BIN
-164 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.19-9aa1a7e2fd-845e6c6efc.zip
Binary file not shown.
Binary file removed
BIN
-32.5 KB
.yarn/cache/@types-json-schema-npm-7.0.13-679a4a60fe-446fe67228.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+100 KB
...ge-v8-npm-1.6.0-080b3d7e69-a7beaf2a88.zip → ...ge-v8-npm-2.0.4-a62ad51d11-1a841839f7.zip
Binary file not shown.
Binary file renamed
BIN
+141 KB
...xpect-npm-1.6.0-0e382f8212-a4351f912a.zip → ...xpect-npm-2.0.4-2d18d58349-18acdd6b1f.zip
Binary file not shown.
Binary file added
BIN
+45.5 KB
.yarn/cache/@vitest-pretty-format-npm-2.0.4-8b17566cd9-c2ac3ca302.zip
Binary file not shown.
Binary file renamed
BIN
+65.2 KB
...unner-npm-1.6.0-347d69d63d-27d67fa51f.zip → ...unner-npm-2.0.4-f209eae91f-b550372ce5.zip
Binary file not shown.
Binary file renamed
BIN
+67.7 KB
...pshot-npm-1.6.0-b7ed094dc8-be027fd268.zip → ...pshot-npm-2.0.4-c43718a83d-67608c5b1e.zip
Binary file not shown.
Binary file renamed
BIN
+18.8 KB
...t-spy-npm-1.6.0-7b9c4e57ee-df66ea6632.zip → ...t-spy-npm-2.0.4-18722bd777-ef0d0c5e36.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+155 KB
...utils-npm-1.6.0-a0cbbfa622-8b0d198358.zip → ...utils-npm-2.0.4-67bb21cbe1-48e0bad3aa.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-381 KB
.yarn/cache/@vue-server-renderer-npm-3.4.15-fd81b21d4f-43f8606077.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.31 MB
...ore-npm-10.11.0-fb26847db9-5cb0f88581.zip → ...m-11.0.0-beta.2-a572790ffa-75c61a660a.zip
Binary file not shown.
Binary file renamed
BIN
+350 KB
...ons-npm-10.11.0-08a80bc0ba-5f85d077db.zip → ...m-11.0.0-beta.2-281571d252-71eb94fafc.zip
Binary file not shown.
Binary file renamed
BIN
+231 KB
...ata-npm-10.11.0-140a19a778-5a252d6da6.zip → ...m-11.0.0-beta.2-ac658e8e26-3739559245.zip
Binary file not shown.
Binary file renamed
BIN
+29.2 KB
...ter-npm-10.11.0-6b4e767a75-017a83561a.zip → ...m-11.0.0-beta.2-890567e74d-ca4e01de2a.zip
Binary file not shown.
Binary file renamed
BIN
+320 KB
...red-npm-10.11.0-8c3e329c96-9ea0bf86d3.zip → ...m-11.0.0-beta.2-b9ffbfd6a3-b01eda12a5.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.98 KB
.yarn/cache/array-buffer-byte-length-npm-1.0.0-331671f28a-12f84f6418.zip
Binary file not shown.
Binary file removed
BIN
-22.2 KB
.yarn/cache/arraybuffer.prototype.slice-npm-1.0.2-4eda52ad8c-96b6e40e43.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-16 KB
.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-c4df567ca7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.16 MB
.yarn/cache/caniuse-lite-npm-1.0.30001541-a22bd26b8f-96c6967a3e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+15 KB
...error-npm-1.0.3-137994eabc-94aa37a731.zip → ...error-npm-2.1.1-34e4ef357e-979f13ecca.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+42.6 KB
...debug-npm-4.3.4-4513954577-cedbec4529.zip → ...debug-npm-4.3.5-b5001f59b7-082c375a2b.zip
Binary file not shown.
Binary file renamed
BIN
+24.6 KB
...p-eql-npm-4.1.3-020a64f862-ff34e8605d.zip → ...p-eql-npm-5.0.2-3bce58289f-7102cf3b7b.zip
Binary file not shown.
Binary file removed
BIN
-41.9 KB
.yarn/cache/define-data-property-npm-1.1.0-81886104c3-312cab385c.zip
Binary file not shown.
Binary file removed
BIN
-248 KB
.yarn/cache/electron-to-chromium-npm-1.4.536-401b14ef4a-3993c97515.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.9 KB
.yarn/cache/es-shim-unscopables-npm-1.0.0-06186593f1-d54a66239f.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+77.4 KB
...omise-npm-7.0.0-f0a70e73fe-9a9b5e057e.zip → ...omise-npm-6.6.0-8b48ba0714-93a667dbc9.zip
Binary file not shown.
Binary file renamed
BIN
+735 KB
...flate-npm-0.8.1-dec3af34fe-c8e8e11873.zip → ...flate-npm-0.8.2-5129f303f0-03448d630c.zip
Binary file not shown.
Binary file renamed
BIN
+42.1 KB
...atted-npm-3.2.9-0462256d3c-5c91c5a0a2.zip → ...atted-npm-3.3.1-458870f59b-324166b125.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-12.4 KB
.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-23bc3b44c2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.2 KB
.yarn/cache/has-property-descriptors-npm-1.0.0-56289b918d-d4ca882b69.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.8 KB
.yarn/cache/is-shared-array-buffer-npm-1.0.2-32e4181fcd-cfeee6f171.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+37.9 KB
...-maps-npm-5.0.4-9de86ebc9c-48b4829459.zip → ...-maps-npm-5.0.6-e18ad1aaae-ffe75d70b3.zip
Binary file not shown.
Binary file renamed
BIN
+297 KB
...ports-npm-3.1.6-66918eb97f-ec3f1bdbc5.zip → ...ports-npm-3.1.7-356486c0f4-a379fadf9c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+633 KB
...icast-npm-0.3.3-f641a80583-2eeba19545.zip → ...icast-npm-0.3.4-c589d6a741-7ebaaac397.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+281 KB
...ipass-npm-7.0.4-eacb4e042e-6c7370a6df.zip → ...ipass-npm-7.1.2-3a5327d36d-b0fd20bb9f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+36.3 KB
.yarn/cache/package-json-from-dist-npm-1.0.0-961f0fcb3b-e3ffaf6ac1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+16.5 KB
...thval-npm-1.1.1-ce0311d7e0-f63e1bc1b3.zip → ...thval-npm-2.0.0-e9fc9a6282-602e4ee347.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-41.2 KB
.yarn/cache/regexp.prototype.flags-npm-1.5.1-b8faeee306-1de7d214c0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-35.3 KB
.yarn/cache/string.prototype.trim-npm-1.2.8-7ed4517ce8-4f76c58390.zip
Binary file not shown.
Binary file removed
BIN
-24.3 KB
.yarn/cache/string.prototype.trimend-npm-1.0.7-159b9dcfbc-53c24911c7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+42.8 KB
...bench-npm-2.6.0-293d20bf58-60ea35699b.zip → ...bench-npm-2.8.0-e63baae395-5a9a642351.zip
Binary file not shown.
Binary file renamed
BIN
+53.6 KB
...ypool-npm-0.8.3-546e741566-c219d0cfb6.zip → ...ypool-npm-1.0.0-01bf44ef1d-71b20b9c54.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-15.5 KB
.yarn/cache/typed-array-byte-length-npm-1.0.0-94d79975ca-6696435d53.zip
Binary file not shown.
Binary file removed
BIN
-15.5 KB
.yarn/cache/typed-array-byte-offset-npm-1.0.0-8cbb911cf5-4036ce007a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-15.1 KB
.yarn/cache/update-browserslist-db-npm-1.0.13-ea7b8ee24d-e52b8b521c.zip
Binary file not shown.
Binary file renamed
BIN
+194 KB
...-node-npm-1.6.0-2c30557d8c-0807e6501a.zip → ...-node-npm-2.0.4-eb12463e53-2689b05b39.zip
Binary file not shown.
Binary file renamed
BIN
+1.38 MB
...itest-npm-1.6.0-55b47a8207-065da5b8ea.zip → ...itest-npm-2.0.4-f3f01845be-139200d0bd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+8.76 KB
...nning-npm-2.2.2-881f898bf3-805d57eb5d.zip → ...nning-npm-2.3.0-011cf61a18-1cde0b01b8.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ | |
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jest": "^26.9.0", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-promise": "^7.0.0", | ||
"eslint-plugin-promise": "^6.4.0", | ||
"fast-json-patch": "^3.1.1", | ||
"jest": "^29.7.0", | ||
"p-event": "^4.2.0", | ||
|
@@ -155,6 +155,6 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^20.5.0" | ||
"node": "^20.9.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jest": "^26.9.0", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-promise": "^7.0.0", | ||
"eslint-plugin-promise": "^6.4.0", | ||
"jest": "^29.7.0", | ||
"js-yaml": "^4.1.0", | ||
"lodash": "^4.17.21" | ||
|
@@ -64,6 +64,6 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^20.5.0" | ||
"node": "^20.9.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,27 @@ | |
// | ||
|
||
import { mount } from '@vue/test-utils' | ||
import { createTestingPinia } from '@pinia/testing' | ||
import { createPinia } from 'pinia' | ||
|
||
import { useAuthnStore } from '@/store/authn' | ||
|
||
import GStatusTag from '@/components/GStatusTag.vue' | ||
|
||
const { createVuetifyPlugin } = global.fixtures.helper | ||
|
||
describe('components', () => { | ||
describe('g-status-tag', () => { | ||
function mountStatusTag (condition, isAdmin = false) { | ||
const vuetifyPlugin = createVuetifyPlugin() | ||
|
||
let pinia | ||
let authnStore | ||
|
||
function mountStatusTag (condition) { | ||
return mount(GStatusTag, { | ||
global: { | ||
plugins: [ | ||
createVuetifyPlugin(), | ||
createTestingPinia({ | ||
initialState: { | ||
authn: { | ||
user: { | ||
email: '[email protected]', | ||
isAdmin, | ||
}, | ||
}, | ||
}, | ||
}), | ||
vuetifyPlugin, | ||
pinia, | ||
], | ||
}, | ||
props: { | ||
|
@@ -36,12 +34,22 @@ describe('components', () => { | |
}) | ||
} | ||
|
||
beforeEach(() => { | ||
pinia = createPinia() | ||
authnStore = useAuthnStore(pinia) | ||
authnStore.user = { | ||
email: '[email protected]', | ||
isAdmin: false, | ||
} | ||
}) | ||
|
||
it('should render healthy condition object', () => { | ||
const wrapper = mountStatusTag({ | ||
shortName: 'foo', | ||
name: 'foo-bar', | ||
status: 'True', | ||
}, true) | ||
}) | ||
authnStore.user.isAdmin = true | ||
const vm = wrapper.vm | ||
expect(vm.chipText).toBe('foo') | ||
expect(vm.chipStatus).toBe('Healthy') | ||
|
@@ -71,28 +79,35 @@ describe('components', () => { | |
expect(vm.visible).toBe(true) | ||
}) | ||
|
||
it('should render accoring to admin status', () => { | ||
const condition = { | ||
it('should render condition for a user without admin role', () => { | ||
const wrapper = mountStatusTag({ | ||
shortName: 'foo', | ||
name: 'foo-bar', | ||
status: 'Progressing', | ||
showAdminOnly: true, | ||
} | ||
let wrapper = mountStatusTag(condition) | ||
}) | ||
const vm = wrapper.vm | ||
expect(vm.visible).toBe(false) | ||
expect(vm.isProgressing).toBe(true) | ||
expect(vm.color).toBe('primary') | ||
expect(vm.chipStatus).toBe('Progressing') | ||
expect(vm.chipIcon).toBe('') | ||
}) | ||
|
||
wrapper = mountStatusTag(condition, true) | ||
const vmAdmin = wrapper.vm | ||
expect(vmAdmin.visible).toBe(true) | ||
expect(vmAdmin.isProgressing).toBe(true) | ||
expect(vmAdmin.color).toBe('info') | ||
expect(vmAdmin.chipStatus).toBe('Progressing') | ||
expect(vmAdmin.chipIcon).toBe('mdi-progress-alert') | ||
it('should render condition for a user with admin role', () => { | ||
const wrapper = mountStatusTag({ | ||
shortName: 'foo', | ||
name: 'foo-bar', | ||
status: 'Progressing', | ||
showAdminOnly: true, | ||
}) | ||
authnStore.user.isAdmin = true | ||
const vm = wrapper.vm | ||
expect(vm.visible).toBe(true) | ||
expect(vm.isProgressing).toBe(true) | ||
expect(vm.color).toBe('info') | ||
expect(vm.chipStatus).toBe('Progressing') | ||
expect(vm.chipIcon).toBe('mdi-progress-alert') | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.