Skip to content
Snippets Groups Projects
Commit b538aafd authored by Malte Bauch's avatar Malte Bauch
Browse files

linter pleasing

parent a2d3c4ee
Branches
No related tags found
1 merge request!401Change the current gosdn plugin implementation from Go's internal plugin system to hashicorp's go-plugins
Pipeline #135922 failed
......@@ -139,7 +139,7 @@ func bootstrapUnitTest() {
mockNetworkElement := &mocks.NetworkElement{}
mockNetworkElement.On("Plugin").Return(pluginMock)
mockNetworkElement.On("ID").Return(mneUUID)
mockNetworkElement.On("GetModel").Return(pluginMock.Model())
mockNetworkElement.On("GetModel").Return(pluginMock.Model(false))
mockNetworkElement.On("Name").Return("openconfig")
mockNetworkElement.On("GetPlugin").Return(pluginMock)
mockNetworkElement.On("TransportAddress").Return("127.0.0.1:6030")
......
......@@ -566,7 +566,7 @@ func Test_pndImplementation_GetNetworkElement(t *testing.T) {
})
return
}
pluginModel, err := mPlugin.Model()
pluginModel, err := mPlugin.Model(false)
if err != nil {
t.Error(err)
return
......@@ -632,7 +632,7 @@ func Test_pndImplementation_GetNetworkElementByName(t *testing.T) {
return
}
mockPlugin := mockPlugin(t)
pluginModel, err := mockPlugin.Model()
pluginModel, err := mockPlugin.Model(false)
if err != nil {
t.Error(err)
return
......
......@@ -60,11 +60,11 @@ func registerPlugins() *PluginRegistry {
var id uuid.UUID
switch i {
case 0:
id = uuid.MustParse("f3b474c2-6482-4010-b0d8-679dff73153b")
id = uuid.MustParse("e2c358b3-6482-4010-b0d8-679dff73153b")
case 1:
id = uuid.MustParse("d1c269a2-6482-4010-b0d8-679dff73153b")
case 2:
id = uuid.MustParse("e2c358b3-6482-4010-b0d8-679dff73153b")
id = uuid.MustParse("f3b474c2-6482-4010-b0d8-679dff73153b")
default:
break
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment