Skip to content

Commit

Permalink
fix: Drop unknown FCM users (#197)
Browse files Browse the repository at this point in the history
* Abstract the implementation of DbClient behind a trait

This will help with testing. Additionally, method naming is a little
more standardized.

* Add a mock for DbClient

* Drop a user if FCM says they no longer exist

* Add a test for dropping missing FCM users

* Force table status to be uppercase

Closes #173
  • Loading branch information
AzureMarker authored Jul 27, 2020
1 parent b57104e commit 068f54d
Show file tree
Hide file tree
Showing 11 changed files with 362 additions and 75 deletions.
90 changes: 90 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions autoendpoint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ validator_derive = "0.10.0"
yup-oauth2 = "4.1.2"

[dev-dependencies]
mockall = "0.7.1"
mockito = "0.26.0"
tempfile = "3.1.0"
tokio = { version = "0.2.12", features = ["macros"] }
Loading

0 comments on commit 068f54d

Please sign in to comment.