Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

facett-pipeline/tests/runa_steps_label.rs

//! Every Runa step has a label on the pipeline viewer, the release build's too (lane
//! RELBUILD-RUNA: a release is a Runa pipeline of `Sandbox` and `Forge` steps).
#![cfg(feature = "runa-adapter")]

use dwarves_runa::Step;
use facett_pipeline::runa_adapter::step_label;

#[test]
fn a_release_builds_steps_have_labels() {
    assert_eq!(step_label(&Step::Forge { action: "slsa.checkout".into(), args: vec![] }), "Forge");
    let s = Step::Sandbox {
        image: "x@sha256:00".into(),
        cmd: vec!["cargo".into()],
        env: vec![],
        mounts: vec![],
        tmpfs: vec![],
        network: false,
        workdir: String::new(),
    };
    assert_eq!(step_label(&s), "Sandbox");
}