consul/ui-v2/tests/unit/utils
John Cowen f65f001675
UI: Catch 500 error on token endpoint and revert to legacy tokens (#4874)
In some circumstances a consul 1.4 client could be running in an
un-upgraded 1.3 or lower cluster. Currently this gives a 500 error on
the new ACL token endpoint. Here we catch this specific 500 error/message
and set the users AccessorID to null. Elsewhere in the frontend we use
this fact (AccessorID being null) to decide whether to present the
legacy or the new ACL UI to the user.

Also:
- Re-adds in most of the old style ACL acceptance tests, now that we are keeping the old style UI
- Restricts code editors to HCL only mode for all `Rules` editing (legacy/'half legacy'/new style)
- Adds a [Stop using] button to the old style ACL rows so its possible to logout.
- Updates copy and documentation links for the upgrade notices
2018-11-02 14:44:36 +00:00
..
dom UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
helpers UI: Reduce in-development deprecations (also use toLocaleString) (#4677) 2018-10-01 13:42:42 +01:00
http/acl UI: Catch 500 error on token endpoint and revert to legacy tokens (#4874) 2018-11-02 14:44:36 +00:00
model Tie up real endpoints 2018-06-25 12:25:15 -07:00
storage UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
acls-status-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
ascend-test.js
atob-test.js Looking into atob functionality, consequence of Value: null 2018-07-05 13:35:06 +01:00
btoa-test.js ui: Some trivial test additions, support env var passing of port numbers (#4728) 2018-10-26 17:50:43 +01:00
callable-type-test.js ui: Some trivial test additions, support env var passing of port numbers (#4728) 2018-10-26 17:50:43 +01:00
confirm-test.js
createURL-test.js ui: Some trivial test additions, support env var passing of port numbers (#4728) 2018-10-26 17:50:43 +01:00
get-component-factory-test.js Add a couple more unit tests for the utils folder 2018-06-12 11:24:36 +01:00
get-form-name-property-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
hasStatus-test.js Add a couple more unit tests for the utils folder 2018-06-12 11:24:36 +01:00
injectableRequestToJQueryAjaxHash-test.js
isFolder-test.js ui: Some trivial test additions, support env var passing of port numbers (#4728) 2018-10-26 17:50:43 +01:00
keyToArray-test.js
left-trim-test.js
makeAttrable-test.js
promisedTimeout-test.js
remove-null-test.js Looking into atob functionality, consequence of Value: null 2018-07-05 13:35:06 +01:00
right-trim-test.js
sumOfUnhealthy-test.js Add a couple more unit tests for the utils folder 2018-06-12 11:24:36 +01:00
templatize-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
ucfirst-test.js
update-array-object-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00