24 lines
406 B
Go
24 lines
406 B
Go
package plugin
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestResourceProvisioner(t *testing.T) {
|
|
c := NewClient(&ClientConfig{Cmd: helperProcess("resource-provisioner")})
|
|
defer c.Kill()
|
|
|
|
_, err := c.Client()
|
|
if err != nil {
|
|
t.Fatalf("should not have error: %s", err)
|
|
}
|
|
|
|
service, err := c.Service()
|
|
if err != nil {
|
|
t.Fatalf("err: %s", err)
|
|
}
|
|
if service == "" {
|
|
t.Fatal("service should not be blank")
|
|
}
|
|
}
|