Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Bug: DB reset doesn't work. #22

Open
ryan-roemer opened this issue Mar 9, 2021 · 0 comments
Open

Bug: DB reset doesn't work. #22

ryan-roemer opened this issue Mar 9, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ryan-roemer
Copy link
Member

Reproduction:

# Update Rusty's name in read-write datastore.
$ curl -X PATCH "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/dogs/cLnG8C2d_" \
  --data name="Rustinus B. Rutherford" \
  --header "x-dogs-api-key: <key>"

$ curl "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/dogs/cLnG8C2d_" \
  --header "x-dogs-api-key: <key>"

# EXPECTED/ACTUAL: Name is Rustinus B. Rutherford

# Reset the read-write datastore back to original state.
$ curl -X POST "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/reset" \
  --header "x-dogs-api-key: <key>"

$ curl "https://30lxcuxu8d.execute-api.us-east-1.amazonaws.com/sandbox/dogs/cLnG8C2d_" \
  --header "x-dogs-api-key: <key>"

# EXPECTED: Name is back to Rusty
# ACTUAL: Name is still Rustinus B. Rutherford
@ryan-roemer ryan-roemer added the bug Something isn't working label Mar 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant