Skip to content
Snippets Groups Projects
Commit 4092a138 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

test file paths

parent 35e61a94
Branches
Tags
2 merge requests!126Resolve "Isolate Integration Tests",!90Develop
Pipeline #67473 failed
...@@ -42,18 +42,18 @@ func testSetupIntegration() { ...@@ -42,18 +42,18 @@ func testSetupIntegration() {
} }
gnmiMessages = map[string]pb.Message{ gnmiMessages = map[string]pb.Message{
"./test/proto/cap-resp-arista-ceos": &gpb.CapabilityResponse{}, "../proto/cap-resp-arista-ceos": &gpb.CapabilityResponse{},
"./test/proto/req-full-node": &gpb.GetRequest{}, "../proto/req-full-node": &gpb.GetRequest{},
"./test/proto/req-full-node-arista-ceos": &gpb.GetRequest{}, "../proto/req-full-node-arista-ceos": &gpb.GetRequest{},
"./test/proto/req-interfaces-arista-ceos": &gpb.GetRequest{}, "../proto/req-interfaces-arista-ceos": &gpb.GetRequest{},
"./test/proto/req-interfaces-interface-arista-ceos": &gpb.GetRequest{}, "../proto/req-interfaces-interface-arista-ceos": &gpb.GetRequest{},
"./test/proto/req-interfaces-wildcard": &gpb.GetRequest{}, "../proto/req-interfaces-wildcard": &gpb.GetRequest{},
"./test/proto/resp-full-node": &gpb.GetResponse{}, "../proto/resp-full-node": &gpb.GetResponse{},
"./test/proto/resp-full-node-arista-ceos": &gpb.GetResponse{}, "../proto/resp-full-node-arista-ceos": &gpb.GetResponse{},
"./test/proto/resp-interfaces-arista-ceos": &gpb.GetResponse{}, "../proto/resp-interfaces-arista-ceos": &gpb.GetResponse{},
"./test/proto/resp-interfaces-interface-arista-ceos": &gpb.GetResponse{}, "../proto/resp-interfaces-interface-arista-ceos": &gpb.GetResponse{},
"./test/proto/resp-interfaces-wildcard": &gpb.GetResponse{}, "../proto/resp-interfaces-wildcard": &gpb.GetResponse{},
"./test/proto/resp-set-system-config-hostname": &gpb.SetResponse{}, "../proto/resp-set-system-config-hostname": &gpb.SetResponse{},
} }
for k, v := range gnmiMessages { for k, v := range gnmiMessages {
if err := proto.Read(k, v); err != nil { if err := proto.Read(k, v); err != nil {
......
...@@ -66,7 +66,7 @@ func TestGnmi_SetIntegration(t *testing.T) { ...@@ -66,7 +66,7 @@ func TestGnmi_SetIntegration(t *testing.T) {
}, },
}, },
}, },
want: gnmiMessages["./test/proto/resp-set-system-config-hostname"], want: gnmiMessages["../proto/resp-set-system-config-hostname"],
wantErr: false, wantErr: false,
}, },
} }
...@@ -126,7 +126,7 @@ func TestGnmi_GetIntegration(t *testing.T) { ...@@ -126,7 +126,7 @@ func TestGnmi_GetIntegration(t *testing.T) {
ctx: context.Background(), ctx: context.Background(),
params: paths[:1], params: paths[:1],
}, },
want: gnmiMessages["./test/proto/resp-interfaces-arista-ceos"], want: gnmiMessages["../proto/resp-interfaces-arista-ceos"],
wantErr: false, wantErr: false,
}, },
{ {
...@@ -292,21 +292,21 @@ func TestGnmi_CapabilitiesIntegration(t *testing.T) { ...@@ -292,21 +292,21 @@ func TestGnmi_CapabilitiesIntegration(t *testing.T) {
name: "supported models", name: "supported models",
fields: fields{opt: opt}, fields: fields{opt: opt},
args: args{ctx: context.Background()}, args: args{ctx: context.Background()},
want: gnmiMessages["./test/proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).SupportedModels, want: gnmiMessages["../proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).SupportedModels,
wantErr: false, wantErr: false,
}, },
{ {
name: "supported encodings", name: "supported encodings",
fields: fields{opt: opt}, fields: fields{opt: opt},
args: args{ctx: context.Background()}, args: args{ctx: context.Background()},
want: gnmiMessages["./test/proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).SupportedEncodings, want: gnmiMessages["../proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).SupportedEncodings,
wantErr: false, wantErr: false,
}, },
{ {
name: "gnmi version", name: "gnmi version",
fields: fields{opt: opt}, fields: fields{opt: opt},
args: args{ctx: context.Background()}, args: args{ctx: context.Background()},
want: gnmiMessages["./test/proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).GNMIVersion, want: gnmiMessages["../proto/cap-resp-arista-ceos"].(*gpb.CapabilityResponse).GNMIVersion,
wantErr: false, wantErr: false,
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment