[VOL-3801] remove unused KV consul code in voltha-lib-go
Change-Id: Iedfd7c24440692d74c8f463d80f3ad259cbf2e6d
diff --git a/pkg/db/backend_test.go b/pkg/db/backend_test.go
index 78e626b..a5659e4 100644
--- a/pkg/db/backend_test.go
+++ b/pkg/db/backend_test.go
@@ -18,15 +18,16 @@
import (
"context"
+ "os"
+ "strconv"
+ "testing"
+ "time"
+
mocks "github.com/opencord/voltha-lib-go/v4/pkg/mocks/etcd"
"github.com/phayes/freeport"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- "os"
- "strconv"
- "testing"
- "time"
)
const (
@@ -94,16 +95,6 @@
assert.Equal(t, backend.LivenessChannelInterval, DefaultLivenessChannelInterval)
}
-// Create instance using Consul Kvstore
-func TestNewBackend_ConsulKvStore(t *testing.T) {
- backend := NewBackend(context.Background(), "consul", embedEtcdServerHost+":"+strconv.Itoa(embedEtcdServerPort), defaultTimeout, defaultPathPrefix)
-
- // Verify kvstore type attribute of backend has got set correctly
- assert.NotNil(t, backend)
- assert.NotNil(t, backend.Client)
- assert.Equal(t, backend.StoreType, "consul")
-}
-
// Create instance using Invalid Kvstore; instance creation should fail
func TestNewBackend_InvalidKvstore(t *testing.T) {
backend := NewBackend(context.Background(), "unknown", embedEtcdServerHost+":"+strconv.Itoa(embedEtcdServerPort), defaultTimeout, defaultPathPrefix)