Configure full Docker setup and confirm consequential actions
This commit is contained in:
@@ -61,12 +61,12 @@ func TestDashboardRunUsesInvocationDirectory(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCLISuppliedArgumentsStartWithoutConfirmation(t *testing.T) {
|
||||
func TestCLISuppliedArgumentsRequireConfirmation(t *testing.T) {
|
||||
m := NewRun(context.Background(), "", RunOptions{Pipeline: "test", Prompt: "task", Workspace: "/repos/a"})
|
||||
m.detail = &protocol.PipelineDetail{PipelineSummary: protocol.PipelineSummary{ID: 1, Name: "test", Version: 1}}
|
||||
updated, _ := m.configureCLIRun()
|
||||
m = updated.(Model)
|
||||
if m.runForm != 0 || !m.runOpen || m.runTask != "task" || m.runWorkspace != "/repos/a" {
|
||||
t.Fatal("supplied task did not start immediately or lost repository")
|
||||
if m.runForm != 0 || !m.runOpen || m.runTask != "task" || m.runWorkspace != "/repos/a" || m.actionConfirm == nil || m.actionConfirm.Workspace != "/repos/a" || m.runStartRequest != "" {
|
||||
t.Fatal("supplied task bypassed confirmation or lost repository")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user