isothrum-runner 3.0.3

The Isothrum runner: runs a Compose project, a Vagrantfile or a Terraform module through its own tool (lifecycle, state and locks, the format drivers, events).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! An update runs the tool's own update once.

use super::pins::compose_stack;
use super::*;

#[tokio::test]
async fn an_update_of_a_compose_run_with_an_attached_service_runs_one_up() {
    let (_root, project, runner, fake) = compose_stack();
    let run = runner.open(&project, None).expect("opened");
    run.up(&RunOptions::new(), &Recorder::new()).await.expect("up");
    run.attach("toolbox", &RunOptions::new(), &Recorder::new()).await.expect("attached");
    let before = ups(&fake);
    run.update(&RunOptions::new(), &Recorder::new()).await.expect("updated");
    assert_eq!(ups(&fake) - before, 1, "one up, the attached service no orphan to remove again");
}