mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 08:24:25 +01:00
Run make vet in CI (#693)
This commit is contained in:
@@ -138,12 +138,12 @@ func TestFirewall_Drop(t *testing.T) {
|
||||
l.SetOutput(ob)
|
||||
|
||||
p := firewall.Packet{
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
10,
|
||||
90,
|
||||
firewall.ProtoUDP,
|
||||
false,
|
||||
LocalIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
RemoteIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
LocalPort: 10,
|
||||
RemotePort: 90,
|
||||
Protocol: firewall.ProtoUDP,
|
||||
Fragment: false,
|
||||
}
|
||||
|
||||
ipNet := net.IPNet{
|
||||
@@ -313,12 +313,12 @@ func TestFirewall_Drop2(t *testing.T) {
|
||||
l.SetOutput(ob)
|
||||
|
||||
p := firewall.Packet{
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
10,
|
||||
90,
|
||||
firewall.ProtoUDP,
|
||||
false,
|
||||
LocalIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
RemoteIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
LocalPort: 10,
|
||||
RemotePort: 90,
|
||||
Protocol: firewall.ProtoUDP,
|
||||
Fragment: false,
|
||||
}
|
||||
|
||||
ipNet := net.IPNet{
|
||||
@@ -372,12 +372,12 @@ func TestFirewall_Drop3(t *testing.T) {
|
||||
l.SetOutput(ob)
|
||||
|
||||
p := firewall.Packet{
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
1,
|
||||
1,
|
||||
firewall.ProtoUDP,
|
||||
false,
|
||||
LocalIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
RemoteIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
LocalPort: 1,
|
||||
RemotePort: 1,
|
||||
Protocol: firewall.ProtoUDP,
|
||||
Fragment: false,
|
||||
}
|
||||
|
||||
ipNet := net.IPNet{
|
||||
@@ -458,12 +458,12 @@ func TestFirewall_DropConntrackReload(t *testing.T) {
|
||||
l.SetOutput(ob)
|
||||
|
||||
p := firewall.Packet{
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
10,
|
||||
90,
|
||||
firewall.ProtoUDP,
|
||||
false,
|
||||
LocalIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
RemoteIP: iputil.Ip2VpnIp(net.IPv4(1, 2, 3, 4)),
|
||||
LocalPort: 10,
|
||||
RemotePort: 90,
|
||||
Protocol: firewall.ProtoUDP,
|
||||
Fragment: false,
|
||||
}
|
||||
|
||||
ipNet := net.IPNet{
|
||||
|
||||
Reference in New Issue
Block a user