|
|
|
@ -94,7 +94,7 @@ func TestVCSInstaller(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Testing FindSource method, expect error because plugin code is not a cloned repository
|
|
|
|
|
if _, err := FindSource(i.Path()); err == nil {
|
|
|
|
|
if _, err := FindSource(i.Path(), ""); err == nil {
|
|
|
|
|
t.Fatalf("expected error for inability to find plugin source, got none")
|
|
|
|
|
} else if err.Error() != "cannot get information about plugin source" {
|
|
|
|
|
t.Fatalf("expected error for inability to find plugin source, got (%v)", err)
|
|
|
|
@ -150,7 +150,7 @@ func TestVCSInstallerUpdate(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test FindSource method for positive result
|
|
|
|
|
pluginInfo, err := FindSource(i.Path())
|
|
|
|
|
pluginInfo, err := FindSource(i.Path(), "")
|
|
|
|
|
if err != nil {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|