kuma-gui icon indicating copy to clipboard operation
kuma-gui copied to clipboard

chore(e2e): fill out `_rules` API with toResourceRules

Open johncowen opened this issue 5 months ago • 1 comments

Various changes to make it easier to work with the new toResourceRules in the _rules HTTP endpoint:

  1. Use the generated types for the mocks
  2. Uses KUMA_CLUSTER_NAME to allow you to set a clusterName that is always filled with rules so you can see these during development.
  3. 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.

johncowen avatar Sep 24 '24 08:09 johncowen