consul/ui/packages/consul-ui/tests/helpers
John Cowen adb0fa38d2
ui: [BUGFIX] Fixes an issue when editing intentions from the service > intentions sub tab (#11937)
We recently changed the intentions form to take a full model of a dc rather than just the string identifier (so {Name: 'dc', Primary: true} vs just 'dc' in order to know whether the DC is the primary or not.

Unfortunately, we only did this on the global intentions page not the per service intentions page. This makes it impossible to save an intention from the per service intention page (whilst you can still save intentions from the global intention page as normal).

The fix here pretty much copy/pastes the approach taken in the global intention edit template over to the per service intention edit template.

Tests have been added for creation in the per service intention section, which again are pretty much just copied from the global one, unfortunately this didn't exist previously which would have helped prevent this.
2022-01-07 19:09:40 +00:00
..
.gitkeep ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
api.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
destroy-app.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
flash-message.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
get-nspace-runner.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
measure.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
module-for-acceptance.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
normalizers.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
page.js ui: Initial Intention Permission Integration and acceptance testing (#9003) 2020-10-23 17:26:06 +01:00
repo.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
set-cookies.js ui: Show the correct 'ACLs Disabled' page when ACLs are disabled (#10604) 2021-07-14 18:52:13 +01:00
stub-super.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
type-to-url.js ui: [BUGFIX] Fixes an issue when editing intentions from the service > intentions sub tab (#11937) 2022-01-07 19:09:40 +00:00
yadda-annotations.js ui: Dev/Test environment configurable metrics (#9345) 2020-12-15 15:34:54 +00:00