Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jan 8, 2025
1 parent b02b6af commit b563d45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cloud/cloud_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

0 comments on commit b563d45

Please sign in to comment.