| 1 |
From: Reinhard Tartler <[email protected]> |
| 2 |
Date: Mon, 15 Jun 2026 07:14:11 -0400 |
| 3 |
Subject: Skip network tests |
| 4 |
Description: Debian-specific: network-dependent tests cannot reach |
| 5 |
external hosts in buildd environments. |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2026-06-15 |
| 8 |
--- |
| 9 |
schema_validation/openapi_schemas/load_schema_test.go | 11 +++++++++-- |
| 10 |
1 file changed, 9 insertions(+), 2 deletions(-) |
| 11 |
|
| 12 |
diff --git a/schema_validation/openapi_schemas/load_schema_test.go b/schema_validation/openapi_schemas/load_schema_test.go |
| 13 |
index 76444f4..0d38ea8 100644 |
| 14 |
--- a/schema_validation/openapi_schemas/load_schema_test.go |
| 15 |
+++ b/schema_validation/openapi_schemas/load_schema_test.go |
| 16 |
@@ -40,6 +40,7 @@ func TestLoadSchema3_1_Cached(t *testing.T) { |
| 17 |
|
| 18 |
// Test LoadSchema3_0 when the remote schema is different from the local schema |
| 19 |
func TestLoadSchema3_0_RemoteDifferent(t *testing.T) { |
| 20 |
+ t.Skip("Skipping network test in Debian build") |
| 21 |
// Clear the cached schema |
| 22 |
schema30 = "" |
| 23 |
|
| 24 |
@@ -55,6 +56,7 @@ func TestLoadSchema3_0_RemoteDifferent(t *testing.T) { |
| 25 |
|
| 26 |
// Test LoadSchema3_0 when the remote schema is the same as the local schema |
| 27 |
func TestLoadSchema3_0_RemoteSame(t *testing.T) { |
| 28 |
+ t.Skip("Skipping network test in Debian build") |
| 29 |
// Clear the cached schema |
| 30 |
schema30 = "" |
| 31 |
|
| 32 |
@@ -71,6 +73,7 @@ func TestLoadSchema3_0_RemoteSame(t *testing.T) { |
| 33 |
|
| 34 |
// Test LoadSchema3_1 when the remote schema is different from the local schema |
| 35 |
func TestLoadSchema3_1_RemoteDifferent(t *testing.T) { |
| 36 |
+ t.Skip("Skipping network test in Debian build") |
| 37 |
// Clear the cached schema |
| 38 |
schema31 = "" |
| 39 |
|
| 40 |
@@ -86,6 +89,7 @@ func TestLoadSchema3_1_RemoteDifferent(t *testing.T) { |
| 41 |
|
| 42 |
// Test LoadSchema3_1 when the remote schema is the same as the local schema |
| 43 |
func TestLoadSchema3_1_RemoteSame(t *testing.T) { |
| 44 |
+ t.Skip("Skipping network test in Debian build") |
| 45 |
// Clear the cached schema |
| 46 |
schema31 = "" |
| 47 |
|
| 48 |
@@ -103,6 +107,7 @@ func TestLoadSchema3_1_RemoteSame(t *testing.T) { |
| 49 |
|
| 50 |
// Test extractSchema when the remote schema differs from the local schema |
| 51 |
func TestExtractSchema_RemoteDifferent(t *testing.T) { |
| 52 |
+ t.Skip("Skipping network test in Debian build") |
| 53 |
// Mock remote schema |
| 54 |
remoteSchema := `{"title": "Remote Schema"}` |
| 55 |
server := mockServer(remoteSchema, http.StatusOK) |
| 56 |
@@ -117,7 +122,8 @@ func TestExtractSchema_RemoteDifferent(t *testing.T) { |
| 57 |
|
| 58 |
// Test extractSchema when the remote schema matches the local schema |
| 59 |
func TestExtractSchema_RemoteSame(t *testing.T) { |
| 60 |
- // Same local and remote schema |
| 61 |
+ t.Skip("Skipping network test in Debian build") |
| 62 |
+ // Mock remote schema |
| 63 |
localSchema := `{"title": "Same Schema"}` |
| 64 |
remoteSchema := `{"title": "Same Schema"}` |
| 65 |
|
| 66 |
@@ -131,7 +137,8 @@ func TestExtractSchema_RemoteSame(t *testing.T) { |
| 67 |
|
| 68 |
// Test extractSchema when there is an error fetching the remote schema |
| 69 |
func TestExtractSchema_Error(t *testing.T) { |
| 70 |
- // Mock server to return an error |
| 71 |
+ t.Skip("Skipping network test in Debian build") |
| 72 |
+ // Mock server that returns an error status code |
| 73 |
server := mockServer("", http.StatusInternalServerError) |
| 74 |
defer server.Close() |
| 75 |
|