1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 04:39:18 +00:00
node-feature-discovery/test/e2e
Markus Lehtonen 2330896620 test/e2e: refactor matching of node properties
Implement a new generic type nodeListPropertyMatcher, a generic Gomega
matcher for matching basically any property of a set of node objects. We
will be using it for verifying labels, annotations, extended resources
and taints for now. This moves the tests in a more Gomega'ish direction,
leveraging code re-use and providing way more informative error messages
in case of test failures.

The patch adds a new eventuallyNonControlPlaneNodes helper assertion for
asserting all (non-control-plane) nodes in the cluster, intended to
replace the ugly simplePoll() helper function.

This patch implements a matcher for node labels and converts tests to
use it instead of the old checkForNodeLabels helper function.
2023-05-03 08:44:03 +03:00
..
data Create extended resources with NodeFeatureRule 2023-04-07 16:14:56 +02:00
utils test/e2e: adapt tests to updates in k8s e2e-framework 2023-04-18 23:04:34 +03:00
e2e-test-config.example.yaml e2e: add basic topology updater test 2022-08-11 08:53:01 +02:00
e2e_test.go test/e2e: drop deprecated rand.Seed() 2023-02-16 19:22:35 +02:00
framework.go go.mod: update kubernetes to v1.25.0 2022-09-09 10:55:03 +03:00
gomega.go test/e2e: refactor matching of node properties 2023-05-03 08:44:03 +03:00
node_feature_discovery_test.go test/e2e: refactor matching of node properties 2023-05-03 08:44:03 +03:00
topology_updater_test.go test/e2e: adapt tests to updates in k8s e2e-framework 2023-04-18 23:04:34 +03:00