kubernetes/test
Patrick Ohly 181fc50f8e e2e framework: deprecate gomega wrappers
All wrappers except for ExpectNoError are identical to their gomega
counterparts. The only advantage that they have is that their invocations are
shorter.

That advantage does not outweigh their disadvantages:
- cannot be used in combination with gomega.Eventually/Consistently
- not a full replacement for gomega, so we just end up using both
- don't support passing a stack offset and thus cannot be used in helper
  functions
- ginkgolinter does not work for them, so sub-optimal calls like this one
  are not reported:

     framework.ExpectEqual(len(items), 0)
     ->
     gomega.Expect(items).To(gomega.BeEmpty())
- developers try to make do with what's available in the framework, leading
  to sub-optimal checks like this:

    framework.ExpectEqual(true, strings.Contains(event.Message, expectedEventError), "Event error should indicate non-root policy caused container to not start")
    ->
    gomega.Expect(event.Message).To(gomega.ContainSubstring(expectedEventError), "Event error should indicate non-root policy caused container to not start")

So let's remove these wrappers. As a first step they get marked as deprecated.
This enables stricter
linting (https://github.com/kubernetes/kubernetes/pull/109728), once enabled,
to report new code which uses them.
2023-02-23 09:51:42 +01:00
..
cmd Re-enable label selector 2023-02-20 09:10:51 +03:00
conformance Update ineligible endpoints yaml 2023-02-14 09:00:44 +13:00
e2e e2e framework: deprecate gomega wrappers 2023-02-23 09:51:42 +01:00
e2e_kubeadm e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
e2e_node Add e2e_node test for oom killed container reason 2023-02-20 08:15:45 +01:00
fixtures Updating pause image refernces to 3.9 2022-11-14 10:24:54 -08:00
fuzz
images Merge pull request #115828 from cpanato/go1201 2023-02-16 09:55:56 -08:00
instrumentation Merge pull request #115394 from ritazh/kmsv2-metrics 2023-02-15 18:03:37 -08:00
integration [KMSv2] restructure kms staging dir 2023-02-21 22:40:25 +00:00
kubemark Drop unsupported iks configuration for kubemark 2022-09-25 17:33:22 -04:00
list
soak/serve_hostnames fix typos 2022-06-15 13:38:48 +09:00
typecheck Avoid typechecking stdlib 2023-01-28 23:32:50 -05:00
utils update distroless iptables to v0.2.1 2023-02-20 13:44:09 +01:00
OWNERS test/OWNERS: add pohly as approver 2023-01-09 09:54:10 +01:00