Skip to content

Commit

Permalink
openapi3: skip a test in CI to avoid 403s from some remote server (#1019
Browse files Browse the repository at this point in the history
)

Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp authored and reuvenharrison committed Oct 16, 2024
1 parent cfdf905 commit dd25946
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openapi3/issue495_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package openapi3

import (
"os"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit dd25946

Please sign in to comment.