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
3afcf4f9
Commit
3afcf4f9
authored
3 years ago
by
Fabian Seidl
Committed by
Fabian Seidl
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
updated pnd api to fit refactoring, maybe change to list version, WIP
parent
39fe4769
Branches
Branches containing commit
No related tags found
1 merge request
!238
Stfaseid http refactor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/pnd.go
+1
-1
1 addition, 1 deletion
api/pnd.go
api/pnd_test.go
+1
-1
1 addition, 1 deletion
api/pnd_test.go
with
2 additions
and
2 deletions
api/pnd.go
+
1
−
1
View file @
3afcf4f9
...
@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
...
@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
return
nil
return
nil
}
}
func
filterChanges
(
state
ppb
.
ChangeState
,
resp
*
ppb
.
GetResponse
)
[]
uuid
.
UUID
{
func
filterChanges
(
state
ppb
.
ChangeState
,
resp
*
ppb
.
Get
Change
Response
)
[]
uuid
.
UUID
{
changes
:=
make
([]
uuid
.
UUID
,
0
)
changes
:=
make
([]
uuid
.
UUID
,
0
)
for
_
,
ch
:=
range
resp
.
Change
{
for
_
,
ch
:=
range
resp
.
Change
{
if
ch
.
State
==
state
{
if
ch
.
State
==
state
{
...
...
This diff is collapsed.
Click to expand it.
api/pnd_test.go
+
1
−
1
View file @
3afcf4f9
...
@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) {
...
@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) {
func
Test_filterChanges
(
t
*
testing
.
T
)
{
func
Test_filterChanges
(
t
*
testing
.
T
)
{
type
args
struct
{
type
args
struct
{
state
ppb
.
ChangeState
state
ppb
.
ChangeState
resp
*
ppb
.
GetResponse
resp
*
ppb
.
Get
Change
Response
}
}
tests
:=
[]
struct
{
tests
:=
[]
struct
{
name
string
name
string
...
...
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