1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/test/e2e/api/admin
Christopher Kolstad 063d3f0e4a
Make feature-toggle-store return 409
- After seeing frontend behaviour where the user could add the same
tag multiple times, and not get errors or be stopped doing so, we'll
change the backend to return a 409 if you tag a feature with a tag it
already has.

- Previous to this commit, the setup was to do `onConflict().ignore()`
  which caused the frontend to not get any help from the backend as to
  whether or not the operation was allowed

- This fix adds a custom error and adds a branch to the handleError util
  method for handling just that error type with a 409.

- This caused a couple of tests to receive 409, probably due to
  insufficient cleanup between tests. Adding faker as a dev-dependency and randomising
  toggle names and tag values for each test reduces the chance that
  we'll run into duplicate issues in the future for the tests that
  touches this problem

fixes: #711
2021-02-08 16:22:15 +01:00
..
addon.e2e.test.js fix: hide jira addon for now 2021-02-05 15:20:00 +01:00
context.e2e.test.js fix: failing tests for 409 2020-09-25 22:31:35 +02:00
event.e2e.test.js fix: e2e tests should only set up one database per test file (#504) 2020-02-20 08:34:29 +01:00
feature-archive.e2e.test.js fix: use airbnb lint rules directly (#583) 2020-04-14 22:29:11 +02:00
feature.auth.e2e.test.js Add service layer 2021-01-21 10:59:19 +01:00
feature.custom-auth.e2e.test.js Add service layer 2021-01-21 10:59:19 +01:00
feature.e2e.test.js Make feature-toggle-store return 409 2021-02-08 16:22:15 +01:00
metrics.e2e.test.js Add service layer 2021-01-21 10:59:19 +01:00
state.e2e.test.js fix: exporting only feature toggles as yaml should not crash 2020-07-30 23:57:17 +02:00
strategy.e2e.test.js fix: Strategy schema should allow deprecated field (#700) 2021-02-01 09:41:50 +01:00
tag-types.e2e.test.js Add service layer 2021-01-21 10:59:19 +01:00
tags.e2e.test.js Add Tags and tag types 2021-01-14 13:09:05 +01:00