mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-05 05:32:51 +00:00
32 lines
743 B
Go
32 lines
743 B
Go
// Copyright (C) 2026 Yota Hamada
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package spec061_python_script_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/dagucloud/dagu/v2/conformance/harness"
|
|
)
|
|
|
|
// Validation checks the remote reference without provisioning its runtime.
|
|
func TestPythonScriptConfig(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
t.Run("versioned action", func(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
dagu := harness.NewRunner(t)
|
|
dagu.Run("validate", "configured.yaml").ExpectExitCode(0)
|
|
})
|
|
|
|
t.Run("missing version", func(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
dagu := harness.NewRunner(t)
|
|
result := dagu.Run("validate", "no_version_suffix.yaml")
|
|
result.ExpectNonZeroExitCode()
|
|
result.ExpectStderrContains(`unknown action "python-script"`)
|
|
})
|
|
}
|