diff options
author | alpaylan | 2021-04-14 16:36:42 +0300 |
---|---|---|
committer | alpaylan | 2021-04-14 16:36:42 +0300 |
commit | 85b29df4208b83c1949032db56c8d76e8c76b705 (patch) | |
tree | 5c44f069e0e5de7044e0ac26c4c2a4fffceec6ec /tests/route_tests.rs | |
parent | 3bb302ccef77af5650a088c7030563ba84d1552c (diff) | |
download | gradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.tar.gz gradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.tar.bz2 gradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.zip |
embed user passwds to the code structs.
Diffstat (limited to 'tests/route_tests.rs')
-rw-r--r-- | tests/route_tests.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/route_tests.rs b/tests/route_tests.rs index 7c0651f..5c2d891 100644 --- a/tests/route_tests.rs +++ b/tests/route_tests.rs | |||
@@ -12,7 +12,7 @@ mod tests { | |||
12 | db.users.write().insert( | 12 | db.users.write().insert( |
13 | "mock_transaction_source".to_owned(), | 13 | "mock_transaction_source".to_owned(), |
14 | User { | 14 | User { |
15 | user_id: MetuId::new("e254275".to_owned()).unwrap(), | 15 | user_id: MetuId::new("e254275".to_owned(), "DtNX1qk4YF4saRH".to_owned()).unwrap(), |
16 | public_key: "-----BEGIN PUBLIC KEY----- | 16 | public_key: "-----BEGIN PUBLIC KEY----- |
17 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4nU0G4WjkmcQUx0hq6LQ | 17 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4nU0G4WjkmcQUx0hq6LQ |
18 | uV5Q+ACmUFL/OjoYMDwC/O/6pCd1UZgCfgHN2xEffDPznzcTn8OiFRxr4oWyBiny | 18 | uV5Q+ACmUFL/OjoYMDwC/O/6pCd1UZgCfgHN2xEffDPznzcTn8OiFRxr4oWyBiny |
@@ -56,6 +56,7 @@ sQIDAQAB | |||
56 | fn priviliged_mocked_user() -> AuthRequest { | 56 | fn priviliged_mocked_user() -> AuthRequest { |
57 | AuthRequest { | 57 | AuthRequest { |
58 | student_id: String::from("e254275"), | 58 | student_id: String::from("e254275"), |
59 | passwd: String::from("DtNX1qk4YF4saRH"), | ||
59 | public_key: "NOT IMPLEMENTED".to_owned(), | 60 | public_key: "NOT IMPLEMENTED".to_owned(), |
60 | } | 61 | } |
61 | } | 62 | } |
@@ -64,6 +65,7 @@ sQIDAQAB | |||
64 | fn unpriviliged_mocked_user() -> AuthRequest { | 65 | fn unpriviliged_mocked_user() -> AuthRequest { |
65 | AuthRequest { | 66 | AuthRequest { |
66 | student_id: String::from("foobarbaz"), | 67 | student_id: String::from("foobarbaz"), |
68 | passwd: String::from("DtNX1qk4YF4saRH"), | ||
67 | public_key: "NOT IMPLEMENTED".to_owned(), | 69 | public_key: "NOT IMPLEMENTED".to_owned(), |
68 | } | 70 | } |
69 | } | 71 | } |