Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bio-rd
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
bio-rd
Commits
710a7322
Commit
710a7322
authored
6 years ago
by
Oliver Herms
Browse files
Options
Downloads
Patches
Plain Diff
Removing test
parent
3b077386
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
protocols/bgp/packet/decoder_test.go
+0
-85
0 additions, 85 deletions
protocols/bgp/packet/decoder_test.go
with
0 additions
and
85 deletions
protocols/bgp/packet/decoder_test.go
+
0
−
85
View file @
710a7322
...
...
@@ -1356,91 +1356,6 @@ func TestDecodeUpdateMsg(t *testing.T) {
wantFail
:
true
,
expected
:
nil
,
},
{
// 2 withdraws with four path attributes (Communities + AS4Path +AS4Aggregator + Origin), valid update
testNum
:
20
,
input
:
[]
byte
{
0
,
5
,
8
,
10
,
16
,
192
,
168
,
0
,
32
,
// Total Path Attribute Length
0
,
// Attribute flags
8
,
// Attribute Type code (Community)
8
,
// Length
0
,
0
,
1
,
0
,
// Arbitrary Community
0
,
0
,
1
,
1
,
// Arbitrary Community
128
,
// Attribute flags
17
,
// Attribute Type code (AS4Path)
6
,
// Length
2
,
// AS_SEQUENCE
1
,
// Number of ASNs
0x00
,
0x03
,
0x17
,
0xf3
,
// 202739
128
,
// Attribute flags
18
,
// Attribute Type code (AS4Aggregator)
4
,
// Length
0
,
0
,
2
,
3
,
// Arbitrary Bytes
255
,
// Attribute flags
1
,
// Attribute Type code (ORIGIN)
0
,
1
,
// Length
2
,
// INCOMPLETE
},
wantFail
:
false
,
expected
:
&
BGPUpdate
{
WithdrawnRoutesLen
:
5
,
WithdrawnRoutes
:
&
NLRI
{
IP
:
strAddr
(
"10.0.0.0"
),
Pfxlen
:
8
,
Next
:
&
NLRI
{
IP
:
strAddr
(
"192.168.0.0"
),
Pfxlen
:
16
,
},
},
TotalPathAttrLen
:
32
,
PathAttributes
:
&
PathAttribute
{
Optional
:
false
,
Transitive
:
false
,
Partial
:
false
,
ExtendedLength
:
false
,
Length
:
8
,
TypeCode
:
8
,
Value
:
[]
uint32
{
256
,
257
},
Next
:
&
PathAttribute
{
Optional
:
true
,
Transitive
:
false
,
Partial
:
false
,
ExtendedLength
:
false
,
Length
:
6
,
TypeCode
:
17
,
Value
:
types
.
ASPath
{
types
.
ASPathSegment
{
Type
:
2
,
ASNs
:
[]
uint32
{
202739
},
},
},
Next
:
&
PathAttribute
{
Optional
:
true
,
Transitive
:
false
,
Partial
:
false
,
ExtendedLength
:
false
,
Length
:
4
,
TypeCode
:
18
,
Value
:
uint32
(
515
),
Next
:
&
PathAttribute
{
Optional
:
true
,
Transitive
:
true
,
Partial
:
true
,
ExtendedLength
:
true
,
Length
:
1
,
TypeCode
:
1
,
Value
:
uint8
(
2
),
},
},
},
},
},
},
}
t
.
Parallel
()
...
...
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