You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let res = validate_workflow_safety(&profile,&runner);
619
+
let res = validate_workflow_safety(&profile,&runner,&crate::cli::WorkflowRunArgs{profile:"test".to_string(),only:None,ignore:None,non_interactive:true,plan:false,dry_run:false,apply:false});
606
620
assert!(res.is_err());
607
621
assert!(res
608
622
.unwrap_err()
@@ -640,7 +654,7 @@ mod tests {
640
654
interactive:false,
641
655
};
642
656
643
-
let res = validate_workflow_safety(&profile,&runner);
657
+
let res = validate_workflow_safety(&profile,&runner,&crate::cli::WorkflowRunArgs{profile:"test".to_string(),only:None,ignore:None,non_interactive:true,plan:false,dry_run:false,apply:false});
644
658
assert!(res.is_err());
645
659
// Since we added a check for apply=true in CI first, it'll hit that instead.
646
660
// Let's just check that it fails correctly.
@@ -677,7 +691,7 @@ mod tests {
677
691
interactive:false,// user ran with --non-interactive
678
692
};
679
693
680
-
let res = validate_workflow_safety(&profile,&runner);
694
+
let res = validate_workflow_safety(&profile,&runner,&crate::cli::WorkflowRunArgs{profile:"test".to_string(),only:None,ignore:None,non_interactive:true,plan:false,dry_run:false,apply:false});
681
695
assert!(res.is_err());
682
696
assert!(res
683
697
.unwrap_err()
@@ -715,10 +729,54 @@ mod tests {
715
729
interactive:true,
716
730
};
717
731
718
-
let res = validate_workflow_safety(&profile,&runner);
732
+
let res = validate_workflow_safety(&profile,&runner,&crate::cli::WorkflowRunArgs{profile:"test".to_string(),only:None,ignore:None,non_interactive:true,plan:false,dry_run:false,apply:false});
0 commit comments