From b563d4591ccc7d7dfa1fcb3938c35060b05daae9 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 9 Jan 2025 01:00:03 +0700 Subject: [PATCH] update tests --- src/cloud/cloud_init.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cloud/cloud_init.rs b/src/cloud/cloud_init.rs index 92ced89..da85202 100644 --- a/src/cloud/cloud_init.rs +++ b/src/cloud/cloud_init.rs @@ -35,8 +35,9 @@ PassEnvironment=AUTH #[test] fn test_generate_cloud_init_config() { - let password = "test"; + let password = "chisel:test"; let config = generate_cloud_init_config(password, 9090); println!("{}", config); - assert!(config.contains("chisel:test")); + assert!(config.contains("AUTH=chisel:test")); + assert!(config.contains("ExecStart=/usr/local/bin/chisel server --port=9090 --reverse --auth chisel:test")); }