Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
b538aafd
Commit
b538aafd
authored
2 years ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
linter pleasing
parent
a2d3c4ee
Branches
Branches containing commit
No related tags found
1 merge request
!401
Change the current gosdn plugin implementation from Go's internal plugin system to hashicorp's go-plugins
Pipeline
#135922
failed
2 years ago
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controller/api/initialise_test.go
+1
-1
1 addition, 1 deletion
controller/api/initialise_test.go
controller/nucleus/principalNetworkDomain_test.go
+2
-2
2 additions, 2 deletions
controller/nucleus/principalNetworkDomain_test.go
plugin-registry/main.go
+2
-2
2 additions, 2 deletions
plugin-registry/main.go
with
5 additions
and
5 deletions
controller/api/initialise_test.go
+
1
−
1
View file @
b538aafd
...
...
@@ -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"
)
...
...
This diff is collapsed.
Click to expand it.
controller/nucleus/principalNetworkDomain_test.go
+
2
−
2
View file @
b538aafd
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
plugin-registry/main.go
+
2
−
2
View file @
b538aafd
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment