kuma-gui
kuma-gui copied to clipboard
chore(e2e): fill out `_rules` API with toResourceRules
Various changes to make it easier to work with the new toResourceRules
in the _rules
HTTP endpoint:
- Use the generated types for the mocks
- Uses
KUMA_CLUSTER_NAME
to allow you to set a clusterName that is always filled withrules
so you can see these during development. - Adds MeshTLS to the mocks for
/policies
More upstream changes are required to generate the resulting TS in this PR.
Note: The structure for toResourceRules is going to change soon, by using the auto generated types this should make the work easier moving forwards when such changes are made. ~There is more work required later to convert our data re-shaping to use the auto generated types rather than the handwritten ones.~ 👈 I added a further commit on the end here to do this here.