kubernetes/test/fixtures
Maciej Szulik e347aa994b
React to removing autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:59:30 +01:00
..
doc-yaml ci: redis removal for e2e test dependency simplicity 2025-07-08 09:14:54 +08:00
pkg/kubectl React to removing autoscaling v2beta1 and v2beta2 2025-12-05 11:59:30 +01:00
embed.go
README.md

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.