// Tests for mecha10_cli::handlers::deploy

use mecha10_cli::handlers::deploy::*;

#[test]
fn test_deploy_args() {
    let args = DeployArgs {
        env: "production".to_string(),
        strategy: "direct".to_string(),
        package: Some(PathBuf::from("target/packages/my-robot-1.0.0.tar.gz")),
    };

    assert_eq!(args.env, "production");
    assert_eq!(args.strategy, "direct");
    assert!(args.package.is_some());
}

#[test]
fn test_load_deploy_config() {
    let config = load_deploy_config("production").unwrap();
    assert_eq!(config.host, "robot.local");

    let config = load_deploy_config("staging").unwrap();
    assert_eq!(config.host, "robot-staging.local");
}
