summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/apiutil/attribute_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/apiutil/attribute_test.go')
-rw-r--r--internal/pkg/apiutil/attribute_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/pkg/apiutil/attribute_test.go b/internal/pkg/apiutil/attribute_test.go
index a3eff1a7..6c694030 100644
--- a/internal/pkg/apiutil/attribute_test.go
+++ b/internal/pkg/apiutil/attribute_test.go
@@ -1428,6 +1428,11 @@ func Test_TunnelEncapAttribute(t *testing.T) {
})
assert.Nil(err)
subTlvs = append(subTlvs, a)
+ a, err = ptypes.MarshalAny(&api.TunnelEncapSubTLVUDPDestPort{
+ Port: 400,
+ })
+ assert.Nil(err)
+ subTlvs = append(subTlvs, a)
a, err = ptypes.MarshalAny(&api.TunnelEncapSubTLVUnknown{
Type: 0xff, // Max of uint8
Value: []byte{0x55, 0x66, 0x77, 0x88},