Skip to content

Commit

Permalink
Use Guards to Ensure That Only One Request Creates or Deletes an App
Browse files Browse the repository at this point in the history
This commit ensures that subsequent DELETE requests of the same app name wait
for the results of the first DELETE request. This makes the DELETE idempotent.
Additionally, it ensures that POST and DELETE requests use the same guard based
on the app name.
  • Loading branch information
schrieveslaach committed Apr 20, 2020
1 parent ac1c1c5 commit 41e3b05
Show file tree
Hide file tree
Showing 10 changed files with 516 additions and 334 deletions.
220 changes: 105 additions & 115 deletions api-tests/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ lazy_static = "1.4"
reqwest = { version = "0.10", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
testcontainers = { git = "https://github.com/testcontainers/testcontainers-rs.git", branch = "master" }
testcontainers = { version = "0.9" }
tokio = { version = "0.2", features = ["macros"] }
uuid = { version = "0.8", features = ["serde", "v4"] }
Loading

0 comments on commit 41e3b05

Please sign in to comment.