From 75728b3bb6481d777d1bbfd1f539154aa362bb72 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Mon, 14 Oct 2024 16:36:18 +0200 Subject: [PATCH] openapi3: skip a test in CI to avoid 403s from some remote server (#1019) Signed-off-by: Pierre Fenoll --- openapi3/issue495_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi3/issue495_test.go b/openapi3/issue495_test.go index ee4cad50b..b4d4a202f 100644 --- a/openapi3/issue495_test.go +++ b/openapi3/issue495_test.go @@ -1,6 +1,7 @@ package openapi3 import ( + "os" "testing" "github.com/stretchr/testify/require" @@ -113,6 +114,10 @@ paths: sl := NewLoader() sl.IsExternalRefsAllowed = true + if os.Getenv("CI") == "true" { + t.Skip("Running in CI: skipping so we avoid 403 error from remote schema server") + } + doc, err := sl.LoadFromData(spec) require.NoError(t, err)