Kong/kubernetes-ingress-controller

Get rid of `tcpMutex`, `tlsMutex` and `ingressClassMutex` from integration tests

Open

#5,757 opened on Mar 27, 2024

 (5 comments) (0 reactions) (0 assignees)Go (619 forks)auto 404
area/debtarea/testsgood first issue

Repository metrics

Stars
 (2,404 stars)
PR merge metrics
 (PR metrics pending)

Description

Is there an existing issue for this?

  • I have searched the existing issues

Problem Statement

Some integration tests require

https://github.com/Kong/kubernetes-ingress-controller/blob/09f1e556e68442b87345879e18867e9b0226e3a7/test/integration/tcpingress_test.go#L33-L36

those tests should be migrated to isolated tests. UDP-related tests have been already migrated as a byproduct of fighting with flakes.

Similar situation is for ingressClassMutex.

Also, it's a great opportunity for improvement and cleanups, e.g. usage of assertion helpers from test/integration/isolated/assertion_helpers.go. See UDP corresponding tests for inspiration.

Proposed Solution

  • tests are migrated to isolated
  • tcpMutex, tlsMutex and ingressClassMutex are no longer needed

Acceptance Criteria

  • tests are migrated to isolated
  • tcpMutex, tlsMutex and ingressClassMutex are removed

Contributor guide