aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/tests
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2022-12-24 00:43:38 -0800
committerbenj <benj@rse8.com>2022-12-24 00:43:38 -0800
commitc2268c285648ef02ece04de0d9df0813c6d70ff8 (patch)
treef84ec7ee42f97d78245f26d0c5a0c559cd35e89d /crates/secd/tests
parentde6339da72af1d61ca5908b780977e2b037ce014 (diff)
downloadsecdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar.gz
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar.bz2
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar.lz
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar.xz
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.tar.zst
secdiam-c2268c285648ef02ece04de0d9df0813c6d70ff8.zip
refactor everything with more abstraction and a nicer interface
Diffstat (limited to '')
-rw-r--r--crates/secd/tests/authn_integration.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/crates/secd/tests/authn_integration.rs b/crates/secd/tests/authn_integration.rs
deleted file mode 100644
index d823d5a..0000000
--- a/crates/secd/tests/authn_integration.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-#[cfg(test)]
-mod test {
- use std::error::Error;
-
- use secd::{AuthEmail, AuthStore, Secd};
-
- #[tokio::test]
- async fn email_authentication_int() -> Result<(), Box<dyn Error>> {
- let secd = Secd::init(AuthStore::Sqlite, None, AuthEmail::LocalStub, None, None).await?;
- let v_id = secd.create_validation_request_email("b@g.com").await?;
-
- // TODO: in memory mailbox backed by sqlite which just throws them in temporarily...
- // and then I can grab it?
-
- // Things to test
- // 1. after exchanging the session, I cannot get it again
- // 1. a validation can only be used once
- // 1. a session can be used to retrieve identity information
- assert_eq!(1, 2);
- Ok(())
- }
-
- #[tokio::test]
- async fn oauth_authentication_int() -> Result<(), Box<dyn Error>> {
- let secd = Secd::init(AuthStore::Sqlite, None, AuthEmail::LocalStub, None, None).await?;
-
- // Things to test
- // 1. after exchanging the session, I cannot get it again
- // 1. a validation can only be used once
- // 1. a session can be used to retrieve identity information
- // 1. an oauth session links with an existing emails session
- assert_eq!(1, 2);
- Ok(())
- }
-}