diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-26 17:33:52 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-28 08:57:41 +0300 |
commit | 14ab788c930846aeb2c472b421a9030b0e9e95f3 (patch) | |
tree | 27f5da006713f2f48a0f6836f6485133c9434278 /obnam.md | |
parent | 892df3d488f2df04566f9c19285971f2954d3361 (diff) | |
download | obnam2-14ab788c930846aeb2c472b421a9030b0e9e95f3.tar.gz |
feat! finish chunk store abstraction
This builds on Alexander's work to show me how to get past the problem
I had. There's additional changes to finish off the changes.
Drop chunk deletion from server: it's not a good idea to have it until
the server API is authenticated.
Sponsored-by: author
Diffstat (limited to 'obnam.md')
-rw-r--r-- | obnam.md | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -1259,21 +1259,6 @@ and content-type is application/json and the JSON body matches {"<ID>":{"label":"0abc"}} ~~~ -Finally, we must be able to delete it. After that, we must not be able -to retrieve it, or find it using metadata. - -~~~scenario -when I DELETE /v1/chunks/<ID> -then HTTP status code is 200 - -when I GET /v1/chunks/<ID> -then HTTP status code is 404 - -when I GET /v1/chunks?label=0abc -then HTTP status code is 200 -and content-type is application/json -and the JSON body matches {} -~~~ ## Retrieve a chunk that does not exist @@ -1298,17 +1283,6 @@ and content-type is application/json and the JSON body matches {} ~~~ -## Delete chunk that does not exist - -We must get the right error when deleting a chunk that doesn't exist. - -~~~scenario -given a working Obnam system -when I try to DELETE /v1/chunks/any.random.string -then HTTP status code is 404 -~~~ - - ## Persistent across restarts Chunk storage, and the index of chunk metadata for searches, needs to |