mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
refactor(storage_impl): split payment attempt models to domain + diesel (#2010)
Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: Mani Chandra <84711804+ThisIsMani@users.noreply.github.com> Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com> Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: Prasunna Soppa <prasunna.soppa@juspay.in> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DEEPANSHU BANSAL <41580413+deepanshu-iiitu@users.noreply.github.com> Co-authored-by: Arvind Patel <52006565+arvindpatel24@users.noreply.github.com> Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com> Co-authored-by: arvindpatel24 <arvind.patel@juspay.in> Co-authored-by: anji-reddy-j <125157119+anji-reddy-j@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com> Co-authored-by: Apoorv Dixit <64925866+apoorvdixit88@users.noreply.github.com> Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
@ -390,7 +390,10 @@ mod tests {
|
||||
#[allow(clippy::unwrap_used)]
|
||||
#[tokio::test]
|
||||
async fn test_mockdb_api_key_interface() {
|
||||
let mockdb = MockDb::new().await;
|
||||
#[allow(clippy::expect_used)]
|
||||
let mockdb = MockDb::new(&redis_interface::RedisSettings::default())
|
||||
.await
|
||||
.expect("Failed to create Mock store");
|
||||
|
||||
let key1 = mockdb
|
||||
.insert_api_key(storage::ApiKeyNew {
|
||||
@ -473,7 +476,10 @@ mod tests {
|
||||
#[allow(clippy::unwrap_used)]
|
||||
#[tokio::test]
|
||||
async fn test_api_keys_cache() {
|
||||
let db = MockDb::new().await;
|
||||
#[allow(clippy::expect_used)]
|
||||
let db = MockDb::new(&redis_interface::RedisSettings::default())
|
||||
.await
|
||||
.expect("Failed to create Mock store");
|
||||
|
||||
let redis_conn = db.get_redis_conn().unwrap();
|
||||
redis_conn
|
||||
|
||||
Reference in New Issue
Block a user