Description: skip unit tests that require network access,
 because Launchpad builders and autopkgtests run in a restricted environment.
 (This is a trimmed version of Ubuntu patch, letting autopkgtests access the
 Internet)
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987650
Origin: https://git.launchpad.net/~usd-import-team/ubuntu/+source/ruby-rugged/tree/debian/patches/ubuntu-skip-network-tests.patch?id=2f18d60418e71d96ef34c5627370752f94933da6
Reviewed-By: Cédric Boutillier <boutil@debian.org>

--- a/test/online/ls_test.rb
+++ b/test/online/ls_test.rb
@@ -6,6 +6,7 @@
   end
 
   def test_ls_over_https
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:https)
 
     remote = @repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
--- a/test/online/fetch_test.rb
+++ b/test/online/fetch_test.rb
@@ -6,6 +6,7 @@
   end
 
   def test_fetch_over_git
+    skip "this test requires network access"
     skip unless git_creds?
     @repo.remotes.create("origin", ENV['GITTEST_REMOTE_GIT_URL'])
 
@@ -13,6 +14,7 @@
   end
 
   def test_fetch_over_https
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:https)
 
     @repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
@@ -30,6 +32,7 @@
   end
 
   def test_fetch_over_https_with_certificate_callback
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:https)
 
     @repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
@@ -48,6 +51,7 @@
   end
 
   def test_fetch_over_https_with_certificate_callback_fail
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:https)
 
     @repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
@@ -63,6 +67,7 @@
   end
 
   def test_fetch_over_https_with_certificate_callback_exception
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:https)
 
     @repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
@@ -80,6 +85,7 @@
   end
 
   def test_fetch_over_ssh_with_credentials
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:ssh) && ssh_creds?
 
     @repo.remotes.create("origin", ENV['GITTEST_REMOTE_SSH_URL'])
@@ -90,6 +96,7 @@
   end
 
   def test_fetch_over_ssh_with_credentials_from_agent
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:ssh) && ssh_creds?
 
     @repo.remotes.create("origin", ENV['GITTEST_REMOTE_SSH_URL'])
@@ -100,6 +107,7 @@
   end
 
   def test_fetch_over_ssh_with_credentials_callback
+    skip "this test requires network access"
     skip unless Rugged.features.include?(:ssh) && ssh_creds?
 
     @repo.remotes.create("origin", ENV['GITTEST_REMOTE_SSH_URL'])
