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
|
From: Mathias Gibbens <gibmat@debian.org>
Description: Skip tests that access the Internet
Forwarded: not-needed
diff --git a/sources/apertis-http_test.go b/sources/apertis-http_test.go
index ea5036c..7d357b8 100644
--- a/sources/apertis-http_test.go
+++ b/sources/apertis-http_test.go
@@ -9,6 +9,7 @@ import (
)
func TestApertisHTTP_getLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &apertis{}
s.client = http.DefaultClient
diff --git a/sources/archlinux-http_test.go b/sources/archlinux-http_test.go
index bf06785..d520518 100644
--- a/sources/archlinux-http_test.go
+++ b/sources/archlinux-http_test.go
@@ -9,6 +9,7 @@ import (
)
func TestArchLinuxGetLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
src := &archlinux{}
src.client = http.DefaultClient
diff --git a/sources/common_test.go b/sources/common_test.go
index 87d3cec..c4fa39a 100644
--- a/sources/common_test.go
+++ b/sources/common_test.go
@@ -17,6 +17,7 @@ import (
)
func TestVerifyFile(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
wd, err := os.Getwd()
if err != nil {
t.Fatalf("Failed to retrieve working directory: %v", err)
@@ -115,6 +116,7 @@ func TestVerifyFile(t *testing.T) {
}
func TestCreateGPGKeyring(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
c := common{
sourcesDir: os.TempDir(),
definition: shared.Definition{
diff --git a/sources/openeuler-http_test.go b/sources/openeuler-http_test.go
index b659372..6986c0f 100644
--- a/sources/openeuler-http_test.go
+++ b/sources/openeuler-http_test.go
@@ -8,6 +8,7 @@ import (
)
func TestGetLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &openEuler{}
s.client = http.DefaultClient
diff --git a/sources/openwrt-http_test.go b/sources/openwrt-http_test.go
index b55f7bf..d17a0f1 100644
--- a/sources/openwrt-http_test.go
+++ b/sources/openwrt-http_test.go
@@ -9,6 +9,7 @@ import (
)
func TestOpenWrtHTTP_getLatestServiceRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &openwrt{}
s.client = http.DefaultClient
|