Skip to content

Commit

Permalink
fix: Enable wireguard test case for VPP 22.02 (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
pemoticak authored Oct 10, 2022
1 parent c6c5e59 commit d2bd2c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import (

// DumpWgPeers implements wg handler.
func (h *WgVppHandler) DumpWgPeers() (peerList []*wg.Peer, err error) {
req := &vpp_wg.WireguardPeersDump{}
// index of ^uint32(0) dumps all peers
req := &vpp_wg.WireguardPeersDump{PeerIndex: ^uint32(0)}
requestCtx := h.callsChannel.SendMultiRequest(req)

var vppPeerList []*vpp_wg.WireguardPeersDetails
Expand Down
5 changes: 1 addition & 4 deletions tests/integration/vpp/160_wireguard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ func TestWireguard(t *testing.T) {
shouldFail: false,
},
{
// FIXME !!!
skipFor: "22.02",
skip: "broken in VPP 22.02, peer dump does not return 2 peers",
name: "Create Wireguard tunnel with 2 itfs and 2 peers",
name: "Create Wireguard tunnel with 2 itfs and 2 peers",
wgInt: &interfaces.WireguardLink{
PrivateKey: "gIjXzrQfIFf80d0O8Hd2KhcfkKLRncc+8C70OjotIW8=",
Port: 12342,
Expand Down

0 comments on commit d2bd2c4

Please sign in to comment.