1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
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'])
|