chore(merchant_account): remove api_key field (#713)

This commit is contained in:
Sanchith Hegde
2023-03-13 14:31:20 +05:30
committed by GitHub
parent 16bc886c77
commit 230fcdd4e1
14 changed files with 22 additions and 110 deletions

View File

@ -1,9 +1,5 @@
use masking::Secret;
use router::types::{
self,
api::{self},
storage::enums,
};
use router::types::{self, api, storage::enums};
use serde_json::json;
use crate::{

View File

@ -276,7 +276,9 @@ async fn payments_create_core() {
let state = routes::AppState::with_storage(conf, StorageImpl::PostgresqlTest).await;
let merchant_account = services::authenticate_by_api_key(&*state.store, "MySecretApiKey")
let merchant_account = state
.store
.find_merchant_account_by_merchant_id("juspay_merchant")
.await
.unwrap();
@ -426,7 +428,9 @@ async fn payments_create_core_adyen_no_redirect() {
let merchant_id = "arunraj".to_string();
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
let merchant_account = services::authenticate_by_api_key(&*state.store, "321")
let merchant_account = state
.store
.find_merchant_account_by_merchant_id("juspay_merchant")
.await
.unwrap();

View File

@ -10,7 +10,6 @@ use router::{
};
use time::macros::datetime;
use uuid::Uuid;
// use router;
#[test]
fn connector_list() {
@ -37,7 +36,9 @@ async fn payments_create_core() {
let state = routes::AppState::with_storage(conf, StorageImpl::PostgresqlTest).await;
let merchant_account = services::authenticate_by_api_key(&*state.store, "MySecretApiKey")
let merchant_account = state
.store
.find_merchant_account_by_merchant_id("juspay_merchant")
.await
.unwrap();
@ -192,7 +193,9 @@ async fn payments_create_core_adyen_no_redirect() {
let merchant_id = "arunraj".to_string();
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
let merchant_account = services::authenticate_by_api_key(&*state.store, "321")
let merchant_account = state
.store
.find_merchant_account_by_merchant_id("juspay_merchant")
.await
.unwrap();