separate custom openapi test from the others

This commit is contained in:
natasha41575
2021-09-30 14:21:31 -07:00
parent 0d8c107362
commit 11e19a3d0f
4 changed files with 11 additions and 22030 deletions

View File

@@ -5,6 +5,7 @@ package krusty_test
import (
"io/ioutil"
"os"
"testing"
"github.com/stretchr/testify/assert"
@@ -350,6 +351,10 @@ func TestCustomOpenAPIFieldFromComponent(t *testing.T) {
// test for https://github.com/kubernetes-sigs/kustomize/issues/4179
// kustomize is not seeing the openapi field from the component defined in the overlay
func TestCustomOpenAPIFieldFromComponentWithOverlays(t *testing.T) {
if val, ok := os.LookupEnv("OPENAPI_TEST"); !ok || val != "true" {
t.SkipNow()
}
th := kusttest_test.MakeHarness(t)
// overlay declaring the component

File diff suppressed because it is too large Load Diff