dashboard/shell/models/__tests__
Richard Cox b464d15ee0
Integrate new schemaDefinitions endpoint (#10141)
* resource edit AS yaml

* fix cruresource (yaml from form)
- lazy load the schemaDefinitions when needed, avoids sync all to createYaml before we have an async chance to fetch schemaDefinitions

* Fix questions
- there are only four places we use questions, none of which use schema, this is just to be safe

* cluster scan, plugins/fieldsForDriver, defaultFor, validationErrors

* pathExistsInSchema
- used to optionally show conditions tab/list in resource detail view
- logs of things in ingress list/edit

* createPopulated / defaultFor
defaultFor requires resourceFields, it's only used by createPopulated in one place to support machine configs without components

* wip

* WIP MONITORING.SPOOFED
- these aren't spoofed types, but secondary schemas
- testing fix blocked, primary schema's have resourceFields

* Move steve specific (resourceField) code to steve models
- create models for steve schemas and apply to cluster and management stores
- move resoureField based validationto steve model
- move pathExistsInSchema to steve store getter
- don't fetch schemaDefinitions on start up when saving prefs (not needed and blocking)

* comments / improvements

* (untested) refactoring

* Fix alertmanager definitions, add retry definition fetch

* Fix pathExistsInSchema for path length > 2

* Fix questions that accept schemas
- tested by adding Questions to random page and the node schema

* Fix to saving configmap part 1
- the save works but doesn't show data. the yaml is the same as before. debug info added

* Validation by resourceFields is a norman specific thing, so make it such

* small refactor

* Tidying up

* Remove rebase junk

* fix linting and unit tests

* fix unit tests

* fix linting from fix for test....

* Tidying up, fix alertmanagerconfig

* Remove unit test todos

* add unit tests for resource fields

* sdssdf

* Add unit tests for pathExistsInSchema

* JS --> TS

* Store schemas in local singleton cache to avoid hitting store

* fix minor changes from review

* cruresource changes following review
- improvement - remove spurious canDiff
- createResourceYaml - pass in resource to use instead of calc in code

* WIP changes to parseType

* Fix generic cloud credential and node driver forms

* handle missing reactivity given schema definitions not in store

* fix and add unit tests for `parseType`

* Fix create-yaml test

* Changes following review
- improved comments
- SchemaDefinitionCache is now per store (and is reset as such)
- typeRef now uses parseType

* Fix dep loop by moving route based helps in auth out to utils file

* fix unit tests

* Changes following review
2024-02-28 17:08:35 +00:00
..
batch.cronjob.test.ts Automation: Cronjob Run Now does generate resources in Jobs Detail page (#9026) 2023-06-05 11:34:34 +02:00
management.cattle.io.cluster.test.ts [INT] Replaced vue-clipboard2 library with clipboard-polyfill (#10072) 2023-11-30 16:31:35 -08:00
management.cattle.io.node.ts scaling down to zero restrictions for RKE1 (#10017) 2023-12-14 10:08:34 -08:00
management.cattle.io.nodepool.ts scaling down to zero restrictions for RKE1 (#10017) 2023-12-14 10:08:34 -08:00
namespace.test.ts System namespaces curation (#10258) 2024-01-22 09:58:38 +00:00
node.ts node to management node controller remaps status into internalNodeStatus (#9760) 2023-09-27 08:15:02 -04:00
provisioning.cattle.io.cluster.test.ts show registration tab only on hosted providers with private endpoint/network (#10319) 2024-02-05 10:08:40 +00:00
schema.tests.ts Integrate new schemaDefinitions endpoint (#10141) 2024-02-28 17:08:35 +00:00
secret.test.ts test(resource-utils): add unit test for cleanForDownload method 2024-02-02 09:03:08 +08:00
storage.k8s.io.storageclass.test.ts add CSI suffix to all non-builtin storageClass provisioners (#10348) 2024-01-31 17:16:15 +00:00
workload.test.ts Include metadata clusterName, deletionPeriodSeconds and generateName properties in steve objects 2024-01-02 10:49:35 +00:00