kubernetes/test/fixtures
gxwilkerson33 5da386745a
Kubectl convert - warn users with NotRegisteredError and Fail on all other errors (#117002)
* Convert file but warn user with impossible conversions

* Only continuing for NotRegisteredErrors. Using iostreams for warning user instead of stdError

* Formatting, correct tests to use valid DNS-1035.
2023-04-11 19:17:53 -07:00
..
doc-yaml Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
pkg/kubectl Kubectl convert - warn users with NotRegisteredError and Fail on all other errors (#117002) 2023-04-11 19:17:53 -07:00
embed.go test: setup embedded file sources for manifests 2021-06-29 19:16:46 +05:30
README.md docs: add documentation on adding files to the embedded data 2021-06-29 23:30:50 +05:30

test/fixtures

Embedded Test Data

In case one needs to use any test fixture inside your tests and those are defined inside this directory, they need to be added to the //go:embed directive in embed.go.

For example, if one wants to include this Readme as a test fixture (potential bad idea in reality!),

// embed.go

...
//go:embed some other files README.md
...

This fixture can be accessed in the e2e tests using test/e2e/framework/testfiles.Read like testfiles.Read("test/fixtures/README.md).

This is needed since migrating to //go:embed from go-bindata.