kubernetes/pkg/api/service
Tim Hockin 5363f1646f Svc REST: Add new model of feature tests
This scaffolding allows us to assert more on each test case, and more
consistently.

Set input fields from output fields IFF they are expected AND not set on
input.  This allows us to verify the "after" state (expected) whether
the test case specified the value or not, and still pass the generic
cmp.Equal.

Use this in a few tests to prove its worth, more to do.

Some of the existing tests that are focused on create and delete can
probably be replaced by these.

This could be used in other test cases that are open-coding a lot of the
same stuff.  Later commits.
2021-09-11 11:30:00 -07:00
..
testing Svc REST: Add new model of feature tests 2021-09-11 11:30:00 -07:00
OWNERS remove david-mcmahon from reviewers 2020-06-30 14:06:58 -07:00
util_test.go Clean up pkg/api. 2019-05-09 15:23:41 +00:00
util.go Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets 2019-02-04 10:34:53 +05:30