From: Reinhard Tartler Date: Mon, 15 Jun 2026 07:14:11 -0400 Subject: Skip network tests Description: Debian-specific: network-dependent tests cannot reach external hosts in buildd environments. Forwarded: not-needed Last-Update: 2026-06-15 --- schema_validation/openapi_schemas/load_schema_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/schema_validation/openapi_schemas/load_schema_test.go b/schema_validation/openapi_schemas/load_schema_test.go index 76444f4..0d38ea8 100644 --- a/schema_validation/openapi_schemas/load_schema_test.go +++ b/schema_validation/openapi_schemas/load_schema_test.go @@ -40,6 +40,7 @@ func TestLoadSchema3_1_Cached(t *testing.T) { // Test LoadSchema3_0 when the remote schema is different from the local schema func TestLoadSchema3_0_RemoteDifferent(t *testing.T) { + t.Skip("Skipping network test in Debian build") // Clear the cached schema schema30 = "" @@ -55,6 +56,7 @@ func TestLoadSchema3_0_RemoteDifferent(t *testing.T) { // Test LoadSchema3_0 when the remote schema is the same as the local schema func TestLoadSchema3_0_RemoteSame(t *testing.T) { + t.Skip("Skipping network test in Debian build") // Clear the cached schema schema30 = "" @@ -71,6 +73,7 @@ func TestLoadSchema3_0_RemoteSame(t *testing.T) { // Test LoadSchema3_1 when the remote schema is different from the local schema func TestLoadSchema3_1_RemoteDifferent(t *testing.T) { + t.Skip("Skipping network test in Debian build") // Clear the cached schema schema31 = "" @@ -86,6 +89,7 @@ func TestLoadSchema3_1_RemoteDifferent(t *testing.T) { // Test LoadSchema3_1 when the remote schema is the same as the local schema func TestLoadSchema3_1_RemoteSame(t *testing.T) { + t.Skip("Skipping network test in Debian build") // Clear the cached schema schema31 = "" @@ -103,6 +107,7 @@ func TestLoadSchema3_1_RemoteSame(t *testing.T) { // Test extractSchema when the remote schema differs from the local schema func TestExtractSchema_RemoteDifferent(t *testing.T) { + t.Skip("Skipping network test in Debian build") // Mock remote schema remoteSchema := `{"title": "Remote Schema"}` server := mockServer(remoteSchema, http.StatusOK) @@ -117,7 +122,8 @@ func TestExtractSchema_RemoteDifferent(t *testing.T) { // Test extractSchema when the remote schema matches the local schema func TestExtractSchema_RemoteSame(t *testing.T) { - // Same local and remote schema + t.Skip("Skipping network test in Debian build") + // Mock remote schema localSchema := `{"title": "Same Schema"}` remoteSchema := `{"title": "Same Schema"}` @@ -131,7 +137,8 @@ func TestExtractSchema_RemoteSame(t *testing.T) { // Test extractSchema when there is an error fetching the remote schema func TestExtractSchema_Error(t *testing.T) { - // Mock server to return an error + t.Skip("Skipping network test in Debian build") + // Mock server that returns an error status code server := mockServer("", http.StatusInternalServerError) defer server.Close()