Description: Selectively disable internet-using tests.
Author: Alexandre Viau <aviau@debian.org>
Last-Update: 2024-12-19
Forwarded: not-needed
diff --git a/extended_test.go b/extended_test.go
index 6bd83a1..90b1064 100644
--- a/extended_test.go
+++ b/extended_test.go
@@ -5,6 +5,7 @@ import (
 )
 
 func TestExtendedRequest_WhoAmI(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Errorf("%s failed: %v", t.Name(), err)
@@ -26,6 +27,7 @@ func TestExtendedRequest_WhoAmI(t *testing.T) {
 }
 
 func TestExtendedRequest_FastBind(t *testing.T) {
+	t.Skip()
 	conn, err := DialURL(ldapServer)
 	if err != nil {
 		t.Error(err)
diff --git a/ldap_test.go b/ldap_test.go
index 5b96e03..edb0f8b 100644
--- a/ldap_test.go
+++ b/ldap_test.go
@@ -28,6 +28,7 @@ var attributes = []string{
 }
 
 func TestUnsecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -36,6 +37,7 @@ func TestUnsecureDialURL(t *testing.T) {
 }
 
 func TestSecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapsServer, DialWithTLSConfig(&tls.Config{InsecureSkipVerify: true}))
 	if err != nil {
 		t.Fatal(err)
@@ -44,6 +46,7 @@ func TestSecureDialURL(t *testing.T) {
 }
 
 func TestStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -56,6 +59,7 @@ func TestStartTLS(t *testing.T) {
 }
 
 func TestTLSConnectionState(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -76,6 +80,7 @@ func TestTLSConnectionState(t *testing.T) {
 }
 
 func TestSearch(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -97,6 +102,7 @@ func TestSearch(t *testing.T) {
 }
 
 func TestSearchStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -132,6 +138,7 @@ func TestSearchStartTLS(t *testing.T) {
 }
 
 func TestSearchWithPaging(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -198,6 +205,7 @@ func searchGoroutine(t *testing.T, l *Conn, results chan *SearchResult, i int) {
 }
 
 func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
+	t.Skip()
 	var l *Conn
 	var err error
 	if TLS {
@@ -237,6 +245,7 @@ func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
 }
 
 func TestMultiGoroutineSearch(t *testing.T) {
+	t.Skip()
 	testMultiGoroutineSearch(t, false, false)
 	testMultiGoroutineSearch(t, true, true)
 	testMultiGoroutineSearch(t, false, true)
@@ -252,6 +261,7 @@ func TestEscapeFilter(t *testing.T) {
 }
 
 func TestCompare(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -271,6 +281,7 @@ func TestCompare(t *testing.T) {
 }
 
 func TestMatchDNError(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -348,6 +359,7 @@ func TestEscapeDN(t *testing.T) {
 }
 
 func TestSearchAsync(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -375,6 +387,7 @@ func TestSearchAsync(t *testing.T) {
 }
 
 func TestSearchAsyncAndCancel(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
diff --git a/v3/extended_test.go b/v3/extended_test.go
index 6bd83a1..90b1064 100644
--- a/v3/extended_test.go
+++ b/v3/extended_test.go
@@ -5,6 +5,7 @@ import (
 )
 
 func TestExtendedRequest_WhoAmI(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Errorf("%s failed: %v", t.Name(), err)
@@ -26,6 +27,7 @@ func TestExtendedRequest_WhoAmI(t *testing.T) {
 }
 
 func TestExtendedRequest_FastBind(t *testing.T) {
+	t.Skip()
 	conn, err := DialURL(ldapServer)
 	if err != nil {
 		t.Error(err)
diff --git a/v3/ldap_test.go b/v3/ldap_test.go
index 5b96e03..edb0f8b 100644
--- a/v3/ldap_test.go
+++ b/v3/ldap_test.go
@@ -28,6 +28,7 @@ var attributes = []string{
 }
 
 func TestUnsecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -36,6 +37,7 @@ func TestUnsecureDialURL(t *testing.T) {
 }
 
 func TestSecureDialURL(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapsServer, DialWithTLSConfig(&tls.Config{InsecureSkipVerify: true}))
 	if err != nil {
 		t.Fatal(err)
@@ -44,6 +46,7 @@ func TestSecureDialURL(t *testing.T) {
 }
 
 func TestStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -56,6 +59,7 @@ func TestStartTLS(t *testing.T) {
 }
 
 func TestTLSConnectionState(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -76,6 +80,7 @@ func TestTLSConnectionState(t *testing.T) {
 }
 
 func TestSearch(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -97,6 +102,7 @@ func TestSearch(t *testing.T) {
 }
 
 func TestSearchStartTLS(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -132,6 +138,7 @@ func TestSearchStartTLS(t *testing.T) {
 }
 
 func TestSearchWithPaging(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -198,6 +205,7 @@ func searchGoroutine(t *testing.T, l *Conn, results chan *SearchResult, i int) {
 }
 
 func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
+	t.Skip()
 	var l *Conn
 	var err error
 	if TLS {
@@ -237,6 +245,7 @@ func testMultiGoroutineSearch(t *testing.T, TLS bool, startTLS bool) {
 }
 
 func TestMultiGoroutineSearch(t *testing.T) {
+	t.Skip()
 	testMultiGoroutineSearch(t, false, false)
 	testMultiGoroutineSearch(t, true, true)
 	testMultiGoroutineSearch(t, false, true)
@@ -252,6 +261,7 @@ func TestEscapeFilter(t *testing.T) {
 }
 
 func TestCompare(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -271,6 +281,7 @@ func TestCompare(t *testing.T) {
 }
 
 func TestMatchDNError(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -348,6 +359,7 @@ func TestEscapeDN(t *testing.T) {
 }
 
 func TestSearchAsync(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
@@ -375,6 +387,7 @@ func TestSearchAsync(t *testing.T) {
 }
 
 func TestSearchAsyncAndCancel(t *testing.T) {
+	t.Skip()
 	l, err := DialURL(ldapServer)
 	if err != nil {
 		t.Fatal(err)
