13 Commits

Author SHA1 Message Date
Jian Zhu
7bf6bb86eb fix: correct variable usage and error messages in ManifestWorkReplicaSet e2e tests (#1386)
This commit fixes two bugs in the ManifestWorkReplicaSet e2e tests:

1. Use freshly fetched mwrSet instead of stale mwReplicaSet when checking
   status summary. This ensures we're validating against the latest state
   rather than the initial object.

2. Return descriptive error messages instead of nil error when condition
   checks fail. This improves test debugging by providing clear failure
   reasons.

These fixes improve test reliability and error reporting.

🤖 Assisted by Claude Code

Signed-off-by: $(git config user.name) <$(git config user.email)>
Signed-off-by: zhujian <jiazhu@redhat.com>
2026-02-12 13:45:14 +00:00
Zhiwei Yin
e78a3a6d3d add deletionPolicy for manifestworkReplicaset (#996)
Some checks failed
Post / coverage (push) Failing after 26m38s
Post / images (amd64) (push) Failing after 3m24s
Post / images (arm64) (push) Failing after 2m59s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1m13s
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
2025-05-28 01:12:21 +00:00
xuezhao
6c4292b1bc Refactor tester to e2e framework. (#565)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-24 01:31:58 +00:00
xuezhao
4b77db89c5 Explicitly name and use UNIVERSAL klusterlet/managedcluster. (#556)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-09 09:54:21 +00:00
xuezhao
da8d81a22c Refactor: timeout and interval usage in e2e (#563)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-07-09 01:33:50 +00:00
xuezhaojun
320b73c895 Fix: move enable ReplicaSet controller at the beginning. (#343)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2024-01-12 02:52:23 +00:00
Mohamed ElSerngawy
615f5a4441 Update OCM APIs and apply Rollout strategy API changes (#310)
Signed-off-by: melserngawy <melserng@redhat.com>
2023-11-16 02:36:16 +00:00
Mohamed ElSerngawy
35680c3ca3 Implement ManifestWorkReplicaSet RollOut strategy (#259)
* Implement rollout strategy

Signed-off-by: melserngawy <melserng@redhat.com>

* Update API and new logic

Signed-off-by: melserngawy <melserng@redhat.com>

---------

Signed-off-by: melserngawy <melserng@redhat.com>
2023-11-02 03:08:35 +00:00
Jian Qiu
e810520961 🌱 Refactor code to fix lint warning (#218)
* Refactor code to fix lint warning

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* enable lint for testing files

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-07-25 07:12:34 +02:00
Jian Qiu
c8ec75096d Reduce e2e process time (#210)
for work and addon e2e, we do not need to
restart klusterlet for each case

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-07-06 00:19:50 -04:00
Jian Qiu
9cae24c7fe Separated hosted klusterlet e2e to separated action (#206)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-07-03 01:51:46 -04:00
Jian Zhu
7332a585c0 🌱 add a verify rule for golang files import order (#177)
* 🌱 add a verify rule for golang files import order

This PR uses the [gci tool](https://github.com/daixiang0/gci) to make all go files' import section with a specific order, it will organize import with group with order:
1. standard library modules
2. 3rd party modules
3. modules in OCM org, like the `open-cluster-management.io/api`
4. current project `open-cluster-management.io/ocm` modules

developers can use the `make fmt-imports` to format the import automatically and the `make verify-fmt-imports` to check for any violation.

Signed-off-by: zhujian <jiazhu@redhat.com>

* 🌱 format the go files import

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-12 10:23:04 -04:00
Jian Qiu
3db47b7997 Move work e2e out of staging (#157)
* Move work e2e out of staging

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* some refactor on tester

remove unnecessary field and build a enable feature func

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-01 06:18:21 -04:00