2023-02-10 12:04:47 +01:00
|
|
|
package task_test
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2023-06-08 12:41:04 +02:00
|
|
|
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
|
|
|
|
mRegistry "go-micro.dev/v4/registry"
|
|
|
|
|
|
2023-02-10 12:04:47 +01:00
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
|
|
|
. "github.com/onsi/gomega"
|
|
|
|
|
)
|
|
|
|
|
|
2023-06-08 12:41:04 +02:00
|
|
|
func init() {
|
2023-12-19 10:43:36 +01:00
|
|
|
r := registry.GetRegistry(registry.Inmemory())
|
2024-06-27 16:53:00 +02:00
|
|
|
service := registry.BuildGRPCService("com.owncloud.api.gateway", "", "", "")
|
2023-06-08 12:41:04 +02:00
|
|
|
service.Nodes = []*mRegistry.Node{{
|
|
|
|
|
Address: "any",
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
_ = r.Register(service)
|
|
|
|
|
}
|
2023-02-10 12:04:47 +01:00
|
|
|
func TestTask(t *testing.T) {
|
|
|
|
|
RegisterFailHandler(Fail)
|
|
|
|
|
RunSpecs(t, "Task Suite")
|
|
|
|
|
}
|