consul/ui/packages/consul-ui/tests
John Cowen 6e396e4456
ui: Gracefully recover from non-existent DC errors (#11077)
* ui: Gracefully recover from non-existent DC errors

This PR fixes what happens in the UI if you try to navigate to a non-existing DC.

When we received a 500 error from an API response due to a non-existent DC, previously we would show a 404 error, which is what we were trying to convey. But in the spirit of the UI being a 'thin client', its probably best to just show the 500 error from the API response, which may help folks to debug any issues better.

* Automatically set the CONSUL_DATACENTER_LOCAL env var for testing
2021-09-22 18:26:36 +01:00
..
acceptance ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
helpers ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
integration ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
lib ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
pages ui: Create Routing Configurations route and page (#10835) 2021-08-16 12:04:04 -04:00
steps ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
unit ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
dictionary.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
index.html ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
pages.js ui: Create Routing Configurations route and page (#10835) 2021-08-16 12:04:04 -04:00
steps.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
test-helper.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00