Skip to content

Commit e4d8701

Browse files
committed
update
1 parent e4d4bfa commit e4d8701

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/datastore/target/nc_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"testing"
88

99
"github.com/beevik/etree"
10+
1011
"github.com/iptecharch/data-server/mocks/mocknetconf"
1112
"github.com/iptecharch/data-server/mocks/mockschema"
1213
"github.com/iptecharch/data-server/pkg/config"
@@ -213,6 +214,7 @@ func Test_ncTarget_Get(t *testing.T) {
213214
},
214215
},
215216
}
217+
216218
for _, tt := range tests {
217219
t.Run(tt.name, func(t *testing.T) {
218220
// create Mock controller
@@ -238,3 +240,18 @@ func Test_ncTarget_Get(t *testing.T) {
238240
})
239241
}
240242
}
243+
244+
const (
245+
SchemaName = "TestModel"
246+
SchemaVendor = "TestVendor"
247+
SchemaVersion = "TestVersion"
248+
)
249+
250+
var (
251+
TestSchema = &sdcpb.Schema{
252+
Name: SchemaName,
253+
Vendor: SchemaVendor,
254+
Version: SchemaVersion,
255+
}
256+
TestCtx = context.TODO()
257+
)

0 commit comments

Comments
 (0)