Yuki Iwai
0d4f18bd5b
Job: Implement E2E tests for the JobSuccessPolicy
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-07-23 21:05:50 +09:00
Yuki Iwai
594490fd77
Job: Add the CompletionsReached reason to the SuccessCriteriaMet condition
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-07-22 21:24:52 +09:00
Michal Wozniak
25d938b481
Promote JobPodFailurePolicy and PodDisruptionConditions e2e tests to Conformance
2024-07-17 18:13:08 +02:00
Michal Wozniak
0acffd6f2c
Extend the e2e tests
2024-07-12 11:16:21 +02:00
Michal Wozniak
1b13b55945
do not assert in e2e tests
2024-07-11 21:00:58 +02:00
Michal Wozniak
f999dd0490
Verify the Job status active, ready and terminating are 0
...
Signed-off-by: Michal Wozniak <michalwozniak@google.com >
2024-07-11 20:54:15 +02:00
Michal Wozniak
fb7704ba03
Delay setting terminal Job conditions until all pods are terminal
...
Fix the integration test typecheck
Fix after rebase
# Conflicts:
# pkg/controller/job/job_controller_test.go
2024-07-11 20:54:09 +02:00
Filip Křepinský
3f8d799c9f
fix readiness flake in UnhealthyPodEvictionPolicy
2024-07-02 00:15:59 +02:00
Kubernetes Prow Robot
b29dce0757
Merge pull request #125627 from yt-huang/clean-up
...
drop deprecated PollWithContext and adopt PollUntilContextTimeout ins…
2024-06-26 10:58:55 -07:00
Kubernetes Prow Robot
fb0195df11
Merge pull request #123428 from atiratree/UnhealthyPodEvictionPolicy-GA
...
promote PDBUnhealthyPodEvictionPolicy to GA
2024-06-25 21:56:20 -07:00
Filip Křepinský
b779fb8387
add e2e tests for UnhealthyPodEvictionPolicy
2024-06-21 16:13:53 +02:00
yintong.huang
2db1b321e0
drop deprecated PollWithContext and adopt PollUntilContextTimeout instead
...
Signed-off-by: yintong.huang <yintong.huang@daocloud.io >
2024-06-21 19:23:31 +08:00
Michal Wozniak
b954879548
Refactor Job e2e test to make them possible for conformance promotion
2024-06-13 13:41:51 +02:00
Matthew Cary
d386d6880e
Respect controllers on PVCs for retention policy
2024-06-05 12:06:41 -07:00
Kubernetes Prow Robot
e821e4f978
Merge pull request #125200 from soltysh/fix_typo
...
Fix the field typo in statefulset patch operation
2024-05-29 13:06:15 -07:00
Maciej Szulik
23bf694830
Fix the field typo in statefulset patch operation
2024-05-29 18:55:35 +02:00
Stephen Kitt
5300466a5c
Use canonical json-patch v4 import
...
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).
Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2024-05-28 10:48:22 +02:00
Filip Křepinský
d70c3f752d
e2e: DaemonSet maxSurge test should account for terminated pods
...
that are terminated by the test
2024-05-10 16:11:41 +02:00
Kubernetes Prow Robot
d2e6c51b05
Merge pull request #123537 from kaisoz/commonize-job-util-functions
...
Add the util pkg to commonize job util functions
2024-05-07 16:59:28 -07:00
Tomas Tormo
c856c412b9
Add util pkg to commonize job util functions
2024-05-07 09:27:46 +00: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
Michal Wozniak
acf6b500ee
Follow up fix to the job status update test
2024-03-08 07:33:10 +01:00
Michal Wozniak
1395c80109
Update Job conformance test to do a legal update
2024-03-06 14:00:21 +01:00
liyuerich
c3caddf3e6
e2e_apps:stop using deprecated framework.ExpectError
...
Signed-off-by: liyuerich <yue.li@daocloud.io >
2024-02-27 13:46:36 +08:00
Hu#
b98e47dd80
tests: Cleanup for Job e2e tests global vars ( #121695 )
...
* put var in local
Signed-off-by: husharp <jinhao.hu@pingcap.com >
* revert gomod
Signed-off-by: husharp <jinhao.hu@pingcap.com >
---------
Signed-off-by: husharp <jinhao.hu@pingcap.com >
2024-01-24 14:00:38 +01:00
Kubernetes Prow Robot
66e20ff891
Merge pull request #121394 from pohly/e2e-framework-test-labels
...
e2e: test labels
2023-11-03 17:35:03 +01:00
Michal Wozniak
ae73cf9cfb
Add remaining e2e tests for backoffLimitPerIndex based on KEP
2023-11-02 08:23:41 +01:00
Patrick Ohly
f2cfbf44b1
e2e: use framework labels
...
This changes the text registration so that tags for which the framework has a
dedicated API (features, feature gates, slow, serial, etc.) those APIs are
used.
Arbitrary, custom tags are still left in place for now.
2023-11-01 15:17:34 +01:00
Michal Wozniak
e50cc47a06
Improve execution time for job e2e tests
2023-10-27 19:50:04 +02:00
Dejan Pejchev
e98c33bfaf
switch feature flag to beta for pod replacement policy and add e2e test
...
update pod replacement policy feature flag comment and refactor the e2e test for pod replacement policy
minor fixes for pod replacement policy and e2e test
fix wrong assertions for pod replacement policy e2e test
more fixes to pod replacement policy e2e test
refactor PodReplacementPolicy e2e test to use finalizers
fix unit tests when pod replacement policy feature flag is promoted to beta
fix podgc controller unit tests when pod replacement feature is enabled
fix lint issue in pod replacement policy e2e test
assert no error in defer function for removing finalizer in pod replacement policy e2e test
implement test using a sh trap for pod replacement policy
reduce sleep after SIGTERM in pod replacement policy e2e test to 5s
2023-10-26 21:50:37 +02:00
Michal Wozniak
b06675724d
Add e2e test for backoffLimitPerIndex
2023-10-24 09:11:35 +02:00
Kevin Hannon
42945ea6dc
update suspend test to match other test cases
2023-10-20 13:34:37 -04:00
Kubernetes Prow Robot
3825e206cb
Merge pull request #121300 from stuton/e2e-tests-for-ready-pods
...
e2e: add test for checking ready of job status
2023-10-20 19:24:38 +02:00
Anton Stuchinskii
a913abe191
e2e test for checking ready of job status
2023-10-20 14:42:13 +02:00
Kubernetes Prow Robot
568aee16e8
Merge pull request #120731 from Nordix/sts_issue/adil
...
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate
2023-10-20 14:42:08 +02:00
bzsuni
8775d805fa
use PollUntilContextTimeout to replace PollImmediateWithContext in test
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
2023-10-19 22:50:21 +08:00
adil ghaffar
00c21ced3a
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate
2023-10-19 14:17:42 +03:00
Patrick Ohly
f2d34426f8
e2e: enhance SIGDescribe
...
framework.SIGDescribe is better because:
- Ginkgo uses the source code location of the test, not of the wrapper,
when reporting progress.
- Additional annotations can be passed.
To make this a drop-in replacement, framework.SIGDescribe generates a function
that can be used instead of the former SIGDescribe functions.
windows.SIGDescribe contained some additional code to ensure that tests are
skipped when not running with a suitable node OS. This gets moved into a
separate wrapper generator, to allow using framework.SIGDescribe as intended.
To ensure that all callers were modified, the windows.sigDescribe isn't
exported anymore (wasn't necessary in the first place!).
2023-10-10 18:15:49 +02:00
Kubernetes Prow Robot
f19b62fc09
Merge pull request #120959 from pohly/e2e-test-whitespace-cleanup
...
e2e: remove redundant spaces in test names
2023-10-05 00:41:59 +02:00
carlory
98bad643cd
e2e_apps: stop using deprecated framework.ExpectEqual
2023-10-01 10:30:00 +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
Kubernetes Prow Robot
ed552363c3
Merge pull request #120405 from Rei1010/introduceNewMethod
...
using wait.Interrupted instead of deprecated wait.ErrWaitTimeout for apps
2023-09-21 07:24:44 -07:00
Stephen Kitt
aa89e6dc97
Use ptr.To to retrieve intstr addresses
...
This uses the generic ptr.To in k8s.io/utils to replace functions and
code constructs which only serve to return pointers to intstr
values. Other uses of the deprecated pointer package are updated in
modified files.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2023-09-08 11:10:50 +02:00
Kubernetes Prow Robot
3ed537ab46
Merge pull request #119988 from bzsuni/cleanup/e2e/app
...
[e2e_app] stop using deprecated framework.ExpectNotEqual
2023-09-06 11:08:51 -07:00
wen.rui
fc25af7f54
using wait.Interrupted instead of deprecated wait.ErrWaitTimeout for apps
2023-09-04 21:36:53 +08:00
penguin
c9c83d1af4
cleanup: e2e : stop using deprecated framework.ExpectHaveKey
2023-08-24 18:21:27 +08:00
tao.yang
c6e54169fc
e2e_apps: stop using deprecated framework.ExpectConsistOf
...
Signed-off-by: tao.yang <tao.yang@daocloud.io >
2023-08-22 11:17:26 +08:00
bzsuni
93832de624
stop using deprecated framework.ExpectNotEqual
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
2023-08-22 11:12:39 +08:00
liyuerich
3546831ceb
e2e_storage: stoping using deprecated framework.ExpectEmpty
2023-08-21 09:18:18 +08:00
git-jxj
a5b3a4b738
cleanup: Update deprecated FromInt to FromInt32 ( #119858 )
...
* redo commit
* apply suggestions from liggitt
* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00