Description: Selectively disable internet-using tests.
Author: Alexandre Viau <aviau@debian.org>
Last-Update: 2020-08-29

--- a/ldap_test.go
+++ b/ldap_test.go
@@ -21,6 +21,7 @@
 	"description"}
 
 func TestUnsecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -29,6 +30,7 @@
 }
 
 func TestSecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapsServer, DialWithTLSConfig(&tls.Config{InsecureSkipVerify: true}))
 	if err != nil {
 		t.Fatal(err)
@@ -37,6 +39,7 @@
 }
 
 func TestStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -49,6 +52,7 @@
 }
 
 func TestTLSConnectionState(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -69,6 +73,7 @@
 }
 
 func TestSearch(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -90,6 +95,7 @@
 }
 
 func TestSearchStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -125,6 +131,7 @@
 }
 
 func TestSearchWithPaging(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -191,6 +198,7 @@
 }
 
 func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
+	t.Skip()
 	var l *Conn
 	var err error
 	if TLS {
@@ -230,6 +238,7 @@
 }
 
 func TestMultiGoroutineSearch(t *testing.T) {
+	t.Skip()
 	testMultiGoroutineSearch(t, false, false)
 	testMultiGoroutineSearch(t, true, true)
 	testMultiGoroutineSearch(t, false, true)
@@ -245,6 +254,7 @@
 }
 
 func TestCompare(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -264,6 +274,7 @@
 }
 
 func TestMatchDNError(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
--- a/v3/ldap_test.go
+++ b/v3/ldap_test.go
@@ -21,6 +21,7 @@
 	"description"}
 
 func TestUnsecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -29,6 +30,7 @@
 }
 
 func TestSecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapsServer, DialWithTLSConfig(&tls.Config{InsecureSkipVerify: true}))
 	if err != nil {
 		t.Fatal(err)
@@ -37,6 +39,7 @@
 }
 
 func TestStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -49,6 +52,7 @@
 }
 
 func TestTLSConnectionState(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -69,6 +73,7 @@
 }
 
 func TestSearch(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -90,6 +95,7 @@
 }
 
 func TestSearchStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -125,6 +131,7 @@
 }
 
 func TestSearchWithPaging(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -191,6 +198,7 @@
 }
 
 func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
+	t.Skip()
 	var l *Conn
 	var err error
 	if TLS {
@@ -230,6 +238,7 @@
 }
 
 func TestMultiGoroutineSearch(t *testing.T) {
+	t.Skip()
 	testMultiGoroutineSearch(t, false, false)
 	testMultiGoroutineSearch(t, true, true)
 	testMultiGoroutineSearch(t, false, true)
@@ -245,6 +254,7 @@
 }
 
 func TestCompare(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -264,6 +274,7 @@
 }
 
 func TestMatchDNError(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
