Forgot some references
sienvy Build / Test Suite (pull_request) Successful in 49s
sienvy Build / Check (pull_request) Successful in 56s
sienvy Build / Rustfmt (pull_request) Successful in 36s
Release Tagging / release (pull_request) Successful in 1m52s
sienvy Build / Clippy (pull_request) Successful in 57s
sienvy Build / build (pull_request) Successful in 28s
sienvy Build / Test Suite (pull_request) Successful in 49s
sienvy Build / Check (pull_request) Successful in 56s
sienvy Build / Rustfmt (pull_request) Successful in 36s
Release Tagging / release (pull_request) Successful in 1m52s
sienvy Build / Clippy (pull_request) Successful in 57s
sienvy Build / build (pull_request) Successful in 28s
This commit is contained in:
+2
-2
@@ -38,7 +38,7 @@ pub fn get_root_directory() -> crate::EnvVar {
|
|||||||
crate::init_envvar(key, &value)
|
crate::init_envvar(key, &value)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_icarus_base_api_url() -> crate::EnvVar {
|
pub fn get_soaricarus_base_api_url() -> crate::EnvVar {
|
||||||
dotenvy::dotenv().ok();
|
dotenvy::dotenv().ok();
|
||||||
let key = crate::keys::SOARICARUS_BASE_API_URL;
|
let key = crate::keys::SOARICARUS_BASE_API_URL;
|
||||||
let value = std::env::var(key).expect(key);
|
let value = std::env::var(key).expect(key);
|
||||||
@@ -46,7 +46,7 @@ pub fn get_icarus_base_api_url() -> crate::EnvVar {
|
|||||||
crate::init_envvar(key, &value)
|
crate::init_envvar(key, &value)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_icarus_auth_base_api_url() -> crate::EnvVar {
|
pub fn get_soaricarus_auth_base_api_url() -> crate::EnvVar {
|
||||||
dotenvy::dotenv().ok();
|
dotenvy::dotenv().ok();
|
||||||
let key = crate::keys::SOARICARUS_AUTH_BASE_API_URL;
|
let key = crate::keys::SOARICARUS_AUTH_BASE_API_URL;
|
||||||
let value = std::env::var(key).expect(key);
|
let value = std::env::var(key).expect(key);
|
||||||
|
|||||||
+2
-1
@@ -41,7 +41,8 @@ pub mod error {
|
|||||||
pub const SERVICE_LOGIN: &str = concatcp!(super::SERVICE_PASSPHRASE, " ", GENERAL_ERROR);
|
pub const SERVICE_LOGIN: &str = concatcp!(super::SERVICE_PASSPHRASE, " ", GENERAL_ERROR);
|
||||||
pub const SECRET_KEY: &str = concatcp!(super::SECRET_KEY, " ", GENERAL_ERROR);
|
pub const SECRET_KEY: &str = concatcp!(super::SECRET_KEY, " ", GENERAL_ERROR);
|
||||||
pub const ROOT_DIRECTORY: &str = concatcp!(super::ROOT_DIRECTORY, " ", GENERAL_ERROR);
|
pub const ROOT_DIRECTORY: &str = concatcp!(super::ROOT_DIRECTORY, " ", GENERAL_ERROR);
|
||||||
pub const SOARICARUS_BASE_API_URL: &str = concatcp!(super::SOARICARUS_BASE_API_URL, " ", GENERAL_ERROR);
|
pub const SOARICARUS_BASE_API_URL: &str =
|
||||||
|
concatcp!(super::SOARICARUS_BASE_API_URL, " ", GENERAL_ERROR);
|
||||||
pub const SOARICARUS_AUTH_BASE_API_URL: &str =
|
pub const SOARICARUS_AUTH_BASE_API_URL: &str =
|
||||||
concatcp!(super::SOARICARUS_AUTH_BASE_API_URL, " ", GENERAL_ERROR);
|
concatcp!(super::SOARICARUS_AUTH_BASE_API_URL, " ", GENERAL_ERROR);
|
||||||
pub const APP_ENV: &str = concatcp!(super::APP_ENV, " ", GENERAL_ERROR);
|
pub const APP_ENV: &str = concatcp!(super::APP_ENV, " ", GENERAL_ERROR);
|
||||||
|
|||||||
+4
-4
@@ -51,11 +51,11 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_get_icarus_base_api_url() {
|
fn test_get_soaricarus_base_api_url() {
|
||||||
let result = sienvy::environment::get_icarus_base_api_url();
|
let result = sienvy::environment::get_soaricarus_base_api_url();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result.value, "https://icarus.com",
|
result.value, "https://soaricarus.com",
|
||||||
"ICARUS_BASE_API_URL does not match {:?}",
|
"SOARICARUS_BASE_API_URL does not match {:?}",
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user