Commit Graph

1152 Commits

Author SHA1 Message Date
Shengwen YU
7103af0264
feat: bump up golang-runtime from 1.20.7 to 1.21.7 (#20046)
* feat: bump up golang-runtime from 1.20.7 to 1.21.7

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

* fix: update code to comply golangci-lint

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

* fix: update the mocks per the change of source code

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

---------

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2024-02-29 19:33:29 +08:00
MinerYang
adf8c73b3b
bump go 1.20.7 && install git for p4 base golang image (#19138)
upadte docker file

Signed-off-by: yminer <yminer@vmware.com>
2023-08-14 10:55:23 +08:00
MinerYang
19d6963523
bump golang1.20.6 on release-2.8.0& build golang based on photon (#18990)
Signed-off-by: yminer <yminer@vmware.com>

remove build_golang in ci script

fix typo

try to remove tdnf install make in registry/dockerfile.binary

optimize golang image
2023-07-27 13:41:02 +08:00
Yang Jiao
9a63e801ab
[cherry-pick]Fix APITEST_DB_PROXY_CACHE x509 (#18979)
Fix APITEST_DB_PROXY_CACHE x509

Fix APITEST_DB_PROXY_CACHE x509, Because cicd.harbor.vmwarecna uses a self-signed certificate.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-24 13:36:56 +08:00
Yang Jiao
46cd4f5c02
[cherry-pick]Add OIDC filter group testcase (#18915)
Add OIDC filter group testcase

Fix #17950

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-11 15:40:54 +08:00
Yang Jiao
db915dd273
[cherry-pick]Add CloudEvents format webhook testcase (#18907)
Add CloudEvents format webhook testcase

Fix #18616

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-10 14:42:37 +08:00
Yang Jiao
4c335f7994
[cherry-pick]Add replication by chunk testcase (#18903)
Add replication by chunk testcase

Fix #17951

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-07 15:18:19 +08:00
Yang Jiao
e274004c3f
[cherry-pick]Add Referrers API testcase (#18776)
Add Referrers API testcase

Fix #18617

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-06-01 16:35:03 +08:00
Yang Jiao
d130e7bb5b
[cherry-pick]Update e2e engine image (#18749)
Update e2e engine image

1. Update containerd version to 1.7.1
2. Update docker compose version to 2.18.1
3. Update helm version to 3.12.0
4. Update ORAS version to 1.0.0
5. Update CNAB version to 0.4.0
6. Update imgpkg version to 0.36.2
7. Update cosign version to 2.0.2
8. Update docker version to 24.0.2
9. Update chromedriver version to 114.0.5735.16

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-30 16:50:12 +08:00
Yang Jiao
96cb84aec6
[cherry-pick]Add Retain image last pull time UI test case (#18696)
Add Retain image last pull time UI test case

Fix #18690

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:41 +08:00
Yang Jiao
6f51863c2f
[cherry-pick]Add Retain image last pull time API test case (#18691)
Add Retain image last pull time API test case

Fix #18618

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:26 +08:00
MinerYang
4af542d6d0
bump golang 1.20.4 on release-2.8.0 (#18648)
Signed-off-by: yminer <yminer@vmware.com>
2023-05-09 11:09:09 +08:00
Yang Jiao
3c5cb274ec
[cherry-pick]Add Job Service Dashboard Workers testcase (#18581)
Add Job Service Dashboard Workers testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 21:13:51 +08:00
Yang Jiao
8aac52ace4
[cherry-pick]Add Job Service Dashboard Schedules testcase (#18557)
Add Job Service Dashboard Schedules testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 11:12:06 +08:00
MinerYang
e20b05475f
bump golang 1.20.3 on release-2.8.0 (#18495)
Signed-off-by: yminer <yminer@vmware.com>
2023-04-10 09:27:11 +08:00
Yang Jiao
9eecd36879
[cherry-pick]Update UI testcases (#18490)
Update UI testcases

1. Update copy test case to add retries
2. Updata P2P Preheat test case to waiting
3. Update the Replication new rule button xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-07 17:22:29 +08:00
Chlins Zhang
62bb56daf6
refactor: refresh the execution status in async mode (#18434)
Refactor the logic for updating the status of execution when receiving
the hook from jobservice, avoid the optimistic lock due to the multiple
tasks update one execution by refreshing the status asynchronously. But
still retain the old way by specifying the flag from ENV.

Fixes: #17584

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 16:37:37 +08:00
MinerYang
de20659da5
bump golang 1.20.2 (#18469)
Signed-off-by: yminer <yminer@vmware.com>
2023-04-04 10:59:16 +08:00
Yang Jiao
f5be644d35
Update UI test cases (#18470)
1. Update replication role testcase
2. Update job service dashboard testcase

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-03 16:01:51 +08:00
Yang Jiao
a95808c120
Update webhook and repliation element xpath (#18456)
Update webhook xpath
Update replication xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-31 11:00:16 +08:00
Chlins Zhang
f21b1481bb
refactor: refactor the old goroutine execution sweep (#18361)
refactor: refactor the old goroutine execution sweep to global execution sweep job

1. Delete the old goroutine execution sweeper when create execution.(in the case of high concurrency can cause goroutine backlogs, affect the performance of core)
2. Introduce the new way to sweep executions, a global scheduled job will take the work.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-21 10:10:55 +08:00
Daniel Jiang
bea8dece07
feat: upgrade golang to 1.20.1 (#18370)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
Co-authored-by: Shengwen Yu <yshengwen@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-03-17 17:49:44 +08:00
Yang Jiao
26ce10221e
Add Job Service Dashboard Job Queues testcase (#18347)
Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-14 17:09:19 +08:00
Yang Jiao
660e1d1362
Remove chartmuseum test case (#18267)
Harbor deprecates chartmuseum as of v2.8.0
Epic: #17958
Discussion: #15057

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-24 10:56:28 +08:00
stonezdj(Daojun Zhang)
58054c0ce8
Change queue name for purge audit log and filter the old one (#18182)
Fixes #18121
 Refactor job name with VendorType prefix, make sure job queue name and vendor type in execution and task are identical

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-02-20 16:03:22 +08:00
Yang Jiao
2b82f99986
Add JobService Dashboard API test cases (#18234)
Added test cases for the following APIs:
1. GET /jobservice/pools/{pool_id}/workers Get workers
2. PUT /jobservice/jobs/{job_id} Stop running jc
3. PUT /jobservice/queues/{job_type} stop and clean, pause, resume pending jobs in the queue
4. GET /jobservice/queues list job queues
5. GET /jobservice/pools Get worker pools
6. GET /schedules List schedules
7. GET /schedules/{job_type}/paused Get scheduler paused status

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-17 14:56:13 +08:00
Wang Yan
738fde7d3b
remove chartmuseum backend (#18191)
Harbor deprecates chartmuseum as of v2.8.0

Epic: https://github.com/goharbor/harbor/issues/17958

Discussion: https://github.com/goharbor/harbor/discussions/15057

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-02-16 18:11:05 +08:00
MinerYang
d168f080ed
bump up golang to 1.19.4 for main (#17997)
bump up golang to 1.19.4 in main

Signed-off-by: yminer <yminer@vmware.com>

Signed-off-by: yminer <yminer@vmware.com>
2022-12-15 13:55:30 +08:00
Wang Yan
18a3373725
bump beego (#17801)
* bump beego

upgrade beego version from v1.10.12 to v2.0.5

1, beego v2 vserver/web refactor
2, beego v2 context refactor
3, beego v2 session refactor
4, beego v2 cache refactor
5, beego v2 orm refactor

Signed-off-by: MinerYang <yminer@vmware.com>
2022-11-24 18:07:42 +08:00
Yang Jiao
fd5cb73e26
Modify audit log forward test case (#17780)
Modify the audit log forward test case to forward the audit log to elk

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-11-18 18:03:46 +08:00
Chlins Zhang
321a9abfb3
fix: skip to push system artifact for empty CSV file (#17816)
1. Skip to push system artifact to the distribution when the exported CSV file is empty.
2. Add status message for cve export execution.

Signed-off-by: chlins <chenyuzh@vmware.com>
2022-11-18 14:16:36 +08:00
MinerYang
62223bd36d
update golangci-lint for golang1.19 (#17817)
update golaci-lint for golang1.19

Signed-off-by: yminer <yminer@vmware.com>

update ci version to v1.50.1
2022-11-18 11:40:01 +08:00
Yang Jiao
cf036df68b
Add metrics test case (#17795)
Add more metrics validation

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-11-15 11:19:34 +08:00
Yang Jiao
484abd6213
Update e2e engine image (#17793)
1. Update ubuntu version to 20.04
2. Update containerd version to 1.6.9
3. Update docker-compose version to 2.12.2
4. Update helm version to 3.10.1
5. Update ORAS version to 0.16.0
6. Update CNAB version to 0.3.7
7. Update imgpkg version to 0.33.0
8. Update cosign version to 1.13.1
9. Remove singularity

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-11-14 14:02:23 +08:00
Yang Jiao
e2e8f00f35
Remove email config testcases (#17763)
Because the email config page has been removed #17711

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-11-08 15:55:22 +08:00
MinerYang
f20a2e433f
bump up golang to 1.19.3 (#17751)
Signed-off-by: yminer <yminer@vmware.com>

Signed-off-by: yminer <yminer@vmware.com>
2022-11-04 16:17:11 +08:00
MinerYang
6b8cdc03c1
bump up golang to 1.19.2 (#17694)
Signed-off-by: yminer <yminer@vmware.com>

Signed-off-by: yminer <yminer@vmware.com>
2022-10-26 20:28:19 +08:00
Yang Jiao
f147af91c8
Add export CVE UI testcase (#17672)
1 Add CVE function verification
2 Add content validation of exported CSV file

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-21 18:42:08 +08:00
Yang Jiao
180a967416
Remove singularity testcase (#17664)
Singularity has been renamed to Apptainer

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-20 09:54:51 +08:00
Yang Jiao
7bbefca8c2
Add scan data export API test case (#17603)
1. Add export scan data API test case
2. Add get scan data export execution list test case
3. Add get scan data export execution test case
4. Add download scan data test case

Signed-off-by: Yang Jiao <jiaoya@vmware.com>

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-17 13:25:03 +08:00
Yang Jiao
c1c1aaf612
Add audit log forward UI testcase (#17591)
Verify that the audit log forward function is correct.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-27 10:46:16 +08:00
Yang Jiao
b8b2c2a4ac
Add audit log forword API test case (#17589)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-27 10:45:08 +08:00
MinerYang
83bc24f6c1
Bump up golang version to v1.19 (#17588)
Signed-off-by: yminer <yminer@vmware.com>

update
2022-09-22 17:38:26 +08:00
Yang Jiao
a686f30b01
Update filter label xpath (#17585)
Because this PR #17577 modifies the filter label

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-22 10:50:29 +08:00
Yang Jiao
a56d927143
Remove the log in testcase (#17500)
Remove logs that do not need to be printed

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-06 14:15:45 +08:00
Yang Jiao
0ec167a7c1
Add audit log and log rotation test cases (#17465)
1. Add audit log test case
2. Add log rotation test case
3. Add log rotation schedule test case

Signed-off-by: Yang Jiao <jiaoya@vmware.com>

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-26 18:00:12 +08:00
Yang Jiao
f913b84a01
Update replication and trivy testcases (#17367)
1 Update replication filter_label_xpath because of this PR #17267 updated xpath
2 Update the Manual Scan All test case, because Scan All will affect other testcases if it is not finished running

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-10 18:26:36 +08:00
MinerYang
0fbff49eb0
bumpup golang to v1.18.5 (#17307)
Signed-off-by: yminer <yminer@vmware.com>
2022-08-03 17:44:03 +08:00
Yang Jiao
1dd2b0bc7c
Add purge audit log API test cases (#17175)
Added test cases for the following APIs:
1. PUT /system/purgeaudit/{purge_id}  Stop the specific purge audit log execution
2. GET /system/purgeaudit/{purge_id}  Get purge job status
3. GET /system/purgeaudit/{purge_id}/log  Get purge job log
4. PUT /system/purgeaudit/schedule   Update purge job's schedule
5. POST /system/purgeaudit/schedule  Create a purge job schedule
6. GET /system/purgeaudit/schedule  Get purge's schedule
7. GET /system/purgeaudit  Get purge job results.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-01 16:52:57 +08:00
Shijun Sun
04fa3853c9
Fix router issues for UI (#17235)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-07-29 19:04:01 +08:00