flow-iron 0.3.5

Infrastructure-as-code CLI — deploy Docker Compose apps with Caddy reverse proxy and Cloudflare DNS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fs;

use tempfile::TempDir;

#[tokio::test]
async fn does_nothing_when_fleet_toml_exists() {
    let dir = TempDir::new().unwrap();
    let path = dir.path().join("fleet.toml");
    fs::write(&path, "existing content").unwrap();

    iron::init::run(path.to_str().unwrap()).await.unwrap();

    let content = fs::read_to_string(&path).unwrap();
    assert_eq!(content, "existing content");
}