Commit Graph

11 Commits

Author SHA1 Message Date
Benjamin Elder
12cbad2110 kubectl logs test: use agnhost pause instaed of fixed duration sleep 2024-05-22 12:40:56 -07:00
Eddie Zaneski
411e0094ac Prevent pods from completing before test runs
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2024-05-21 16:49:34 -06:00
Case Wylie
6db859eb5d feat: add all-pods log flag to kubectl
Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com>
2024-05-14 09:03:09 -04:00
huweiwen
6ec421e2cf test/e2e: do not use global variable for image
We have "-kube-test-repo-list" command line flag to override the image registry. If we store it in global variable, then that overriding cannot take effect.

And this can cause puzzling bugs, e.g.: containerIsUnused() function will compare incorrect image address.
2024-04-22 19:29:39 +08:00
Patrick Ohly
0e8a1f1816 e2e: remove redundant spaces in test names
The spaces are redundant because Ginkgo will add them itself when concatenating
the different test name components. Upcoming change in the framework will
enforce that there are no such redundant spaces.
2023-09-29 08:30:57 +02:00
Stanislav Laznicka
7f532891c9 e2e tests: set all PSa labels instead of just enforcing 2023-06-21 15:05:13 +02:00
Humble Chirammal
51d79c4d6b e2e: use gomega.Expect instead of deprecated framework.Expect*
replace below functions:

 framework.ExpectEqual
 framework.ExpectNotEqual
 framework.ExpectError

Ref#115961

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 07:55:27 +05:30
Patrick Ohly
41f23f52d0 test: fix ginkgolinter issues
All of these issues were reported by https://github.com/nunnatsa/ginkgolinter.
Fixing these issues is useful (several expressions get simpler, using
framework.ExpectNoError is better because it has additional support for
failures) and a necessary step for enabling that linter in our golangci-lint
invocation.
2023-02-22 19:36:05 +01:00
Maciej Szulik
3d3da44e96 Wait for logs pod to complete before counting lines 2023-01-17 13:39:35 +01:00
Paco Xu
ae574993c2 cleanup(kubectl-e2e): remove invalid comments 2023-01-17 10:13:21 +08:00
Paco Xu
b45f0a8def move kubectl log e2e to new file & add e2e test for kubectl default container annotation
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-01-16 21:29:43 +08:00