fix: updated types for feature flag

This commit is contained in:
Pierre Mavro
2021-05-11 15:59:08 +02:00
parent e9a85dbb01
commit 266e4a8ab4
5 changed files with 37 additions and 5 deletions

View File

@@ -432,7 +432,15 @@ mod tests_mongodb {
let db_expected_name = "mongodbtestnamesanitizerwithtoomanycharsnotallowedwhi";
let database = MongoDB::new(
Context::new("".to_string(), "".to_string(), "".to_string(), false, None, None, None),
Context::new(
"".to_string(),
"".to_string(),
"".to_string(),
false,
None,
vec![],
None,
),
"pgid",
Action::Create,
db_input_name,

View File

@@ -455,7 +455,15 @@ mod tests_mysql {
let db_expected_name = "mysqltestnamesanitizerwithtoomanycharsnotallowedwhichwi";
let database = MySQL::new(
Context::new("".to_string(), "".to_string(), "".to_string(), false, None, None, None),
Context::new(
"".to_string(),
"".to_string(),
"".to_string(),
false,
None,
vec![],
None,
),
"mysqlid",
Action::Create,
db_input_name,

View File

@@ -447,7 +447,15 @@ mod tests_postgres {
let db_expected_name = "postgresqltestnamesanitizerwithtoomanycharsnotallo";
let database = PostgreSQL::new(
Context::new("".to_string(), "".to_string(), "".to_string(), false, None, None, None),
Context::new(
"".to_string(),
"".to_string(),
"".to_string(),
false,
None,
vec![],
None,
),
"pgid",
Action::Create,
db_input_name,

View File

@@ -440,7 +440,15 @@ mod tests {
let db_expected_name = "redistestnamesanitizerwithtoomanycharsnotallowe";
let database = Redis::new(
Context::new("".to_string(), "".to_string(), "".to_string(), false, None, None, None),
Context::new(
"".to_string(),
"".to_string(),
"".to_string(),
false,
None,
vec![],
None,
),
"pgid",
Action::Create,
db_input_name,

View File

@@ -65,7 +65,7 @@ pub fn context() -> Context {
lib_root_dir,
true,
None,
Some(enabled_features),
enabled_features,
Option::from(metadata),
)
}