From cf69cdfe05e4054f47e1ce7028b21d46bbcd644f Mon Sep 17 00:00:00 2001 From: Jean-Christophe Amiel Date: Mon, 2 Dec 2024 18:28:10 +0100 Subject: [PATCH] Mark adding secret variable method as not yet ready to be used. --- packages/hurl/src/runner/variable.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/hurl/src/runner/variable.rs b/packages/hurl/src/runner/variable.rs index a18d1598e9b..ea430540f1a 100644 --- a/packages/hurl/src/runner/variable.rs +++ b/packages/hurl/src/runner/variable.rs @@ -104,6 +104,9 @@ impl VariableSet { Ok(()) } + #[deprecated( + note = "This method is not yet ready for use: secret/private variables are still under development" + )] /// Inserts a secret variable named `name` with `value` into the variable set. /// /// Contrary to [`VariableSet::insert`], this method can not fail: a secret can override a @@ -141,6 +144,7 @@ mod test { use crate::runner::Number::{Float, Integer}; use crate::runner::{Value, VariableSet}; + #[allow(deprecated)] #[test] fn simple_variable_set() { let mut variables = VariableSet::new(); @@ -203,6 +207,7 @@ mod test { } } + #[allow(deprecated)] #[test] fn secret_cant_be_reassigned() { let mut variables = VariableSet::new();