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 69cad30..e11ac5a 100644
--- a/sources/apertis-http_test.go
+++ b/sources/apertis-http_test.go
@@ -8,6 +8,7 @@ import (
)
func TestApertisHTTP_getLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &apertis{}
tests := []struct {
diff --git a/sources/archlinux-http_test.go b/sources/archlinux-http_test.go
index a9489e3..b965562 100644
--- a/sources/archlinux-http_test.go
+++ b/sources/archlinux-http_test.go
@@ -8,6 +8,7 @@ import (
)
func TestArchLinuxGetLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
var src archlinux
release, err := src.getLatestRelease("https://archive.archlinux.org/iso/", "x86_64")
diff --git a/sources/common_test.go b/sources/common_test.go
index 480ee37..0e36812 100644
--- a/sources/common_test.go
+++ b/sources/common_test.go
@@ -15,6 +15,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)
@@ -113,6 +114,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 7f17f00..cc2170e 100644
--- a/sources/openeuler-http_test.go
+++ b/sources/openeuler-http_test.go
@@ -7,6 +7,7 @@ import (
)
func TestGetLatestRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &openEuler{}
tests := []struct {
diff --git a/sources/openwrt-http_test.go b/sources/openwrt-http_test.go
index 32a49ad..41b6391 100644
--- a/sources/openwrt-http_test.go
+++ b/sources/openwrt-http_test.go
@@ -8,6 +8,7 @@ import (
)
func TestOpenWrtHTTP_getLatestServiceRelease(t *testing.T) {
+ t.Skip("Skipping test that accesses the Internet")
s := &openwrt{}
tests := []struct {
|