Commit e19851b0 authored by Sophie Brun's avatar Sophie Brun

Import new upstream release

parent def6bc69
bettercap (2.15-0kali1) kali-dev; urgency=medium
* Import new upstream release
-- Sophie Brun <sophie@offensive-security.com> Thu, 14 Feb 2019 11:26:47 +0100
bettercap (2.14-0kali1) kali-dev; urgency=medium
* Import new upstream release
......
Description: Drop Failing tests
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2018-05-14
Description: Drop failing tests
Upstream tests have not been updated even if code has been refactored.
Author: Sophie Brun <sophie@offensive-security.com>
Last-Update: 2019-02-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/network/lan_test.go
+++ b/network/lan_test.go
@@ -38,9 +38,9 @@ func TestNewLAN(t *testing.T) {
@@ -38,9 +38,6 @@ func TestNewLAN(t *testing.T) {
if len(lan.hosts) != 0 {
t.Fatalf("expected '%v', got '%v'", 0, len(lan.hosts))
}
- if !(len(lan.aliases.data) >= 0) {
+/* if !(len(lan.aliases.data) >= 0) {
t.Fatalf("expected '%v', got '%v'", 0, len(lan.aliases.data))
- t.Fatalf("expected '%v', got '%v'", 0, len(lan.aliases.data))
- }
+ }*/
}
func TestMarshalJSON(t *testing.T) {
@@ -61,6 +61,7 @@ func TestMarshalJSON(t *testing.T) {
@@ -71,7 +68,7 @@ func TestSetAliasFor(t *testing.T) {
}
}
+/*
func TestSetAliasFor(t *testing.T) {
exampleAlias := "picat"
-func TestGet(t *testing.T) {
+/*func TestGet(t *testing.T) {
exampleLAN := buildExampleLAN()
@@ -70,6 +71,7 @@ func TestSetAliasFor(t *testing.T) {
t.Error("unable to set alias for a given mac address")
exampleEndpoint := buildExampleEndpoint()
exampleLAN.hosts[exampleEndpoint.HwAddress] = exampleEndpoint
@@ -82,7 +79,7 @@ func TestGet(t *testing.T) {
if !foundBool {
t.Error("unable to get known endpoint via mac address from LAN struct")
}
}
+*/
-}
+}*/
func TestGet(t *testing.T) {
func TestList(t *testing.T) {
exampleLAN := buildExampleLAN()
@@ -99,7 +101,7 @@ func TestList(t *testing.T) {
@@ -99,7 +96,7 @@ func TestList(t *testing.T) {
}
}
......@@ -42,16 +43,34 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
exampleAlias := "picat"
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -110,7 +112,7 @@ func TestAliases(t *testing.T) {
@@ -109,7 +106,7 @@ func TestAliases(t *testing.T) {
if got != exp {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
-
+*/
-}
+}*/
func TestWasMissed(t *testing.T) {
exampleLAN := buildExampleLAN()
@@ -151,7 +148,7 @@ func TestEachHost(t *testing.T) {
}
}
-func TestGetByIp(t *testing.T) {
+/*func TestGetByIp(t *testing.T) {
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -172,7 +174,7 @@ func TestAddIfNew(t *testing.T) {
exampleLAN.hosts[exampleEndpoint.HwAddress] = exampleEndpoint
@@ -161,7 +158,7 @@ func TestGetByIp(t *testing.T) {
if got != exp {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
-}
+}*/
func TestAddIfNew(t *testing.T) {
exampleLAN := buildExampleLAN()
@@ -172,7 +169,7 @@ func TestAddIfNew(t *testing.T) {
}
}
......@@ -60,15 +79,28 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
exampleAlias := "picat"
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -183,7 +185,7 @@ func TestGetAlias(t *testing.T) {
@@ -182,7 +179,7 @@ func TestGetAlias(t *testing.T) {
if got != exp {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
-
+*/
-}
+}*/
func TestShouldIgnore(t *testing.T) {
exampleLAN := buildExampleLAN()
iface, _ := FindInterface("")
--- a/packets/dot11_test.go
+++ b/packets/dot11_test.go
@@ -15,8 +15,8 @@ func TestDot11Vars(t *testing.T) {
}{
{openFlags, 1057},
{wpaFlags, 1041},
- {supportedRates, []byte{0x82, 0x84, 0x8b, 0x96, 0x24, 0x30, 0x48, 0x6c, 0x03, 0x01}},
- {wpaRSN, []byte{
+ {fakeApRates, []byte{0x82, 0x84, 0x8b, 0x96, 0x24, 0x30, 0x48, 0x6c, 0x03, 0x01}},
+ {fakeApWpaRSN, []byte{
0x01, 0x00, // RSN Version 1
0x00, 0x0f, 0xac, 0x02, // Group Cipher Suite : 00-0f-ac TKIP
0x02, 0x00, // 2 Pairwise Cipher Suites (next two lines)
--- a/network/net_test.go
+++ b/network/net_test.go
@@ -34,7 +34,7 @@ func TestNormalizeMac(t *testing.T) {
......@@ -76,15 +108,16 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
// TODO: refactor to parse targets with an actual alias map
-func TestParseTargets(t *testing.T) {
+/* func TestParseTargets(t *testing.T) {
+/*func TestParseTargets(t *testing.T) {
cases := []struct {
Name string
InputTargets string
@@ -83,6 +83,7 @@ func TestParseTargets(t *testing.T) {
@@ -82,7 +82,7 @@ func TestParseTargets(t *testing.T) {
}
})
}
}
+*/
-}
+}*/
func TestBuildEndpointFromInterface(t *testing.T) {
ifaces, err := net.Interfaces()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment