mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
21 lines
259 B
Go
21 lines
259 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMissingKeyOrPassword(t *testing.T) {
|
|
plugin := Plugin{
|
|
Config{
|
|
Host: []string{"localhost"},
|
|
User: "ubuntu",
|
|
},
|
|
}
|
|
|
|
err := plugin.Exec()
|
|
|
|
assert.NotNil(t, err)
|
|
}
|