refactor(ui_tests): move ui_tests to test_utils crate to reduce development time (#1822)

This commit is contained in:
Jagan
2023-08-01 16:22:51 +05:30
committed by GitHub
parent 8f65819f12
commit 5773faf739
74 changed files with 422 additions and 122 deletions

View File

@ -1,7 +1,6 @@
use std::{collections::HashMap, env};
use masking::Secret;
use router::types::ConnectorAuthType;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
@ -289,3 +288,28 @@ pub struct AutomationConfigs {
pub adyen_bancontact_username: Option<String>,
pub adyen_bancontact_pass: Option<String>,
}
#[derive(Default, Debug, Clone, serde::Deserialize)]
#[serde(tag = "auth_type")]
pub enum ConnectorAuthType {
HeaderKey {
api_key: Secret<String>,
},
BodyKey {
api_key: Secret<String>,
key1: Secret<String>,
},
SignatureKey {
api_key: Secret<String>,
key1: Secret<String>,
api_secret: Secret<String>,
},
MultiAuthKey {
api_key: Secret<String>,
key1: Secret<String>,
api_secret: Secret<String>,
key2: Secret<String>,
},
#[default]
NoKey,
}