Files
kustomize/kyaml/openapi/kubernetesapi/openapiinfo_test.go
koba1t 9216c6f573 chore: refactor read scheme to openapi from kubernetes api definition
Previously, only a single embedded Kubernetes API version could be specified, resulting in a lack of support for certain GVKs.
To address this, the goal is to create and utilize a unified scheme that consolidates Kubernetes API definitions.
As a preliminary step, the current method of loading API definitions will be improved.
2026-08-02 22:39:33 +09:00

18 lines
433 B
Go

// Copyright 2026 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package kubernetesapi
import (
"testing"
"github.com/stretchr/testify/require"
"sigs.k8s.io/kustomize/kyaml/openapi"
)
func TestLegacyMetadataMatchesBuiltinBundle(t *testing.T) {
require.Equal(t, openapi.DefaultOpenAPI, DefaultOpenAPI)
require.Equal(t, openapi.BuiltinSchemaInfo, Info)
require.Contains(t, OpenAPIMustAsset, DefaultOpenAPI)
}