kubernetes/test/fixtures
Jitesh Kumar 7bc0a4a16d test/images/agnhost: bump to 2.65.0
The new version includes a generic /envvar endpoint in netexec that
reads any named environment variable, enabling e2e tests to retrieve
spec.nodeName via the Downward API instead of relying on os.Hostname().

Ref: https://github.com/kubernetes/k8s.io/pull/9608
Signed-off-by: Jitesh Kumar <jiteshkumardj@gmail.com>
2026-06-16 00:05:07 +05:30
..
doc-yaml test/images/agnhost: bump to 2.65.0 2026-06-16 00:05:07 +05:30
pkg/kubectl test/images/agnhost: bump to 2.65.0 2026-06-16 00:05:07 +05:30
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.