28 lines
456 B
Go
Executable File
28 lines
456 B
Go
Executable File
package internal
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDeploy(t *testing.T) {
|
|
err := Execute(binaryPath, scriptPath)
|
|
require.NoError(t, err)
|
|
}
|
|
|
|
func TestDeployError(t *testing.T) {
|
|
err := Execute("", "")
|
|
require.Error(t, err)
|
|
}
|
|
|
|
func TestExecute(t *testing.T) {
|
|
err := Execute(binaryPath, scriptPath)
|
|
require.NoError(t, err)
|
|
}
|
|
|
|
func TestExecuteError(t *testing.T) {
|
|
err := Execute("", "")
|
|
require.Error(t, err)
|
|
}
|