Skip to content

Commit 9456535

Browse files
committed
fix vault test runtime config file
Signed-off-by: Aminu Oluwaseun Joshua <[email protected]>
1 parent c058a88 commit 9456535

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

crates/expressions/src/provider.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ pub trait Provider: Debug + Send + Sync {
1717
#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1818
pub enum ProviderVariableKind {
1919
/// Variable must be declared on start
20+
#[serde(rename = "static")]
2021
Static,
2122
/// Variable can be made available at runtime
23+
#[serde(rename = "dynamic")]
2224
#[default]
2325
Dynamic,
2426
}

crates/factor-variables/tests/factor_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ impl Provider for MockProvider {
4848
}
4949

5050
fn kind(&self) -> &ProviderVariableKind {
51-
&ProviderVariableKind::Static
51+
&ProviderVariableKind::Dynamic
5252
}
5353
}

examples/vault-variable-test/runtime_config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ type = "vault"
33
url = "http://127.0.0.1:8200"
44
token = "root"
55
mount = "secret"
6+
kind = "dynamic"

tests/testcases/vault-variables-test/runtime_config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ type = "vault"
33
url = "http://127.0.0.1:%{port=8200}"
44
token = "root"
55
mount = "secret"
6+
kind = "dynamic"

0 commit comments

Comments
 (0)