Commit Graph

1199 Commits

Author SHA1 Message Date
Yang Jiao
349d220372
Update delete project test case (#17158)
Because this PR(#16236) update the delete project button xpath, so update synchronously

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-07-13 17:39:12 +08:00
Yang Jiao
8d397d5a07
Add retry to project quota GC test case (#17164)
Add retry to improve test case stability

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-07-13 17:38:22 +08:00
Yang Jiao
f852996fe5
Update tag immutability xpath (#17149)
Because this PR(#17138) update the tag immutability xpath, so update synchronously

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-07-11 15:59:55 +08:00
Yang Jiao
90e9b997bf
Enhancement Stop Scan Testcase (#17105)
Added error retries to improve test stability

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-30 17:40:30 +08:00
Yang Jiao
ff4eb7f27c
Add P2P Preheat Test case (#17089)
1.Add P2P Preheat test case triggered by manual
2.Add P2P Preheat test case triggered by events(Artifact is pushed Artifact is scanned Artifact is labeled)
3.Add P2P Preheat test case triggered by schedule
4.Migrated Distribution CRUD and P2P Preheat Policy CRUD to P2P_Preheat.robot for classification

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-28 18:14:46 +08:00
Yang Jiao
a594f5649d
Enhance webhook testcase (#17031)
Increase retry to improve test case stability.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-21 14:28:43 +08:00
Yang Jiao
c91d2f618c
Update harbor-e2e-engine image (#17032)
1 Bump up cnab-to-oci version to v0.3.3
2 Bump up carvel-imgpkg version to v0.29.0
3 Bump up cosign version to v1.9.0
4 Bump up chromedriver version to 102.0.5005.61

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-20 14:32:15 +08:00
Yang Jiao
9b7289d862
Update GC UI Testcase (#16975)
This PR #16941 modifies the GC UI, so update the test cases.
1 Update GC web element xpath.
2 Migrate GC content from Configuration.robot to GC.robot for classification.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-13 14:19:32 +08:00
Yang Jiao
a2829850b8
Update CVE allowlist UI test case (#16980)
Because this PR #16941 migrates CVE allowlist from Configuration System
Settings page to Configuration Security page.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-13 11:54:58 +08:00
Yang Jiao
4d2d7fdb1a
Update Web Routing test case (#16981)
Because this PR modifies the routing of the Web UI.
1 Modify harbor/gc to harbor/clearing-job/gc.
2 Added harbor/clearing-job/audit-log-purge route.
3 Added harbor/configs/security route.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-13 10:22:22 +08:00
MinerYang
b8a71ac348
bump up golang version to v1.18.3 (#16957)
Signed-off-by: yminer <yminer@vmware.com>

update ci/ut_install.sh

Signed-off-by: yminer <yminer@vmware.com>
2022-06-08 17:56:14 +08:00
Shijun Sun
eee72e2354
Add style lint and add code lint to the pipeline (#16954)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-06-08 16:35:19 +08:00
Yang Jiao
5dcd2ccf8e
Add webhook functionality test case (#16944)
1.Add Webhook Tester to the test environment.
2.Create a new project and enable webhook.
3.Trigger different event types(Artifact pushed、Artifact
pulled、Artifact deleted、Scanning finished、Scanning stopped、Tag
retention finished、Replication finished、Quota near threshold、Quota exceed).
4.Verify that the message is correct in the Webhook Tester.
5.Moved Webhook CRUD test cases from Common.robot to Webhook.robot for
triage.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-06-07 17:10:11 +08:00
Yang Jiao
9b154e700c Update header user xpath
Update it because #16796 modifies header user.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-05-27 08:16:14 +00:00
Yang Jiao
4d116893be
Merge pull request #16832 from YangJiao0817/update-cosign-testcase
Update cosign test case
2022-05-10 16:18:16 +08:00
Yang Jiao
2563cf1bfb
Merge pull request #16760 from YangJiao0817/add-imgpkg-copy-testcase
Add imgpkg copy test case
2022-05-10 16:17:50 +08:00
Yang Jiao
49ddaee603 Update cosign test case
1 bump up cosign version to 1.8.0
2 Add cosign Verify test

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-05-10 07:01:27 +00:00
MinerYang
1f797fafc4
add lint with golangci-lint, remove golint (#16821)
Signed-off-by: yminer <yminer@vmmware.com>

test ut_install.sh

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

test ut_install.sh001

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

test ut_install002

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

use curl binary to download golangcilint instead of go get

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

test ut-ci make lint

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

check ci GO111MODULE

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

test ci go env

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

test ci goenv 002

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

test ci GO111MODULE=auto

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

ci test entire ut_install.sh

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

remove needless debug comment

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

Co-authored-by: yminer <yminer@vmmware.com>
2022-05-09 11:19:02 +08:00
Wang Yan
98c52e4478
enable default to build bin (#16763)
Change the default behavrior of building binaries for all the third parties to true.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-04-28 17:13:41 +08:00
Yang Jiao
18b9856dc5 Add imgpkg copy test case
Add this test case to make sure imgpkg copy to Harbor works.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-27 06:25:11 +00:00
Yang Jiao
1207982925 Add test case for Enable Deployment Security Policy replication
Add test cases for these three different scenarios to ensure that Replication functions correctly after Deployment Security Policy is enabled

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-25 02:59:20 +00:00
Yang Jiao
c5591cba46 Add open image scanners documentation page test case
Add a test case for opening the Image Scanners Documentation Page to ensure this function is correct

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-18 09:14:47 +00:00
Yang Jiao
31efa54a9a Add open cve details page test case
Add a test case for opening the CVE Details Page to ensure this function is correct.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-18 06:40:31 +00:00
Yang Jiao
f92a25f793 Add open more info page test case
Add test case that open more info page to ensure correct functionality.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-18 03:30:46 +00:00
Yang Jiao
c1781bfb74 Add open license test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-15 08:08:05 +00:00
Yang Jiao
6dfdda7778 Add retries to test cases
Retry to solve the ecs environment s3aws Path not found issue

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-12 07:16:55 +00:00
Yang Jiao
4f6042e586 Add project tab routing test case
Add this test case to make sure the project tab routing is routed correctly

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-07 06:35:37 +00:00
Yang Jiao
376c4f220b Add main menu routing test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-31 08:53:49 +00:00
Yang Jiao
9917d987a4 Add python-dateutil module in api e2e image
Because swagger_client adds dependency on python-dateutil module

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-25 05:07:07 +00:00
Yang Jiao
76e781c446 Update webhook testcase xpath from disable to deactivate
Synchronous modification due to UI changes

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-24 06:38:24 +00:00
Shengwen Yu
b48619be0f fix: enable one skipped conformance test
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-03-15 14:36:45 +08:00
Yang Jiao
6673841526
Merge pull request #16493 from YangJiao0817/update_trivy_testcase
Update trivy test case
2022-03-10 16:06:27 +08:00
Yang Jiao
6a2ab99127 Add replication index testcase
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-10 06:59:29 +00:00
Yang Jiao
d1cf06a5aa Update trivy test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-10 01:28:28 +00:00
Yang Jiao
62afa16b57
Add replication test cases triggered by events (#16466)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-04 14:11:57 +08:00
MinerYang
74d2670616
bump up Go version to 1.17.7 (#16415)
Signed-off-by: yminer <yminer@vmmware.com>

update CONTRIBUTING.md 2.4 golang version to 1.17.7

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

Co-authored-by: yminer <yminer@vmmware.com>
2022-02-25 17:23:18 +08:00
Wang Yan
6c3f9a8366
bump up distribution version to v2.8 (#16338)
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-02-10 11:46:58 +08:00
Yang Jiao
999adfad82
Add replication cosign test case (#16313)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-29 11:23:26 +08:00
He Weiwei
8554b7d7c5
refactor: replace lib/pq with jackc/pgx (#16267)
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2022-01-27 11:09:37 +08:00
Yang Jiao
7100e893f1
Merge pull request #16257 from YangJiao0817/add-copy-cosign-accessory-testcase
Add copy accessory test case
2022-01-24 10:57:39 +08:00
Yang Jiao
4882def74f Add copy accessory test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-20 09:26:05 +00:00
Yang Jiao
5f7f6c7d59 Add cosign Artifact API test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-20 02:48:56 +00:00
Yang Jiao
cc26d75b56
Merge pull request #16238 from YangJiao0817/add-cosign-ui-case
Add cosign UI test case
2022-01-18 11:29:17 +08:00
Yang Jiao
6e93089845 Add cosign UI test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-18 02:05:31 +00:00
yminer
9acf3d21ce bump up go version to v1.17.6
Signed-off-by: yminer <yminer@vmmware.com>
2022-01-17 17:45:22 +00:00
Yang Jiao
3c10fd0db4
Merge pull request #16208 from YangJiao0817/specify-pgsqlversion13
Specify postgresql version to 13
2022-01-14 13:32:10 +08:00
Yang Jiao
cefdfad35a Update Deployment security Notary xpath
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-13 07:24:00 +00:00
Yang Jiao
b4de95941b Specify postgresql version to 13
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-12 08:55:42 +00:00
Yang Jiao
406e6ea1e3 Update Artifact size cell xpath
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-06 13:47:15 +08:00
Yang Jiao
338ab5844a Temp disable test cases that rely on notary
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-23 17:14:17 +08:00
Yang Jiao
3d26bbc2e2
Merge pull request #16110 from YangJiao0817/fix-test-ldap-server
Modify test ldap button xpath
2021-12-14 09:28:52 +08:00
DQ
12b5338985 Remove temporty workaround of openssl issue
Signed-off-by: DQ <dengq@vmware.com>
2021-12-10 11:34:18 +08:00
Yang Jiao
83e7e8528c Modify test ldap button xpath
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-10 03:25:27 +00:00
Yang Jiao
367dd02ef8 Modify build-package branch master to main
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-07 17:01:11 +08:00
Yang Jiao
4a2242fe47 Fix core private key
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-03 10:55:35 +08:00
Yang Jiao
43912674b1
Add robot account do replication test case (#16044)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-29 10:58:01 +08:00
Yang Jiao
e9c5b3e759 Add replication testcase for exclude and bandwidth
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-19 09:20:07 +00:00
Yang Jiao
0a845d6369
Merge pull request #16008 from YangJiao0817/fix-cnab-case
Refactor cnab push test case
2021-11-17 11:00:05 +08:00
Yang Jiao
97ad26af6f Refactor cnab push test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-16 15:43:23 +08:00
Yang Jiao
8055374520 Specify test redis image tag
Specify the test redis mirror tag. If not specified, the default tag is latest. If the latest tag changes, it will cause false positives in the test case.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-15 11:30:10 +08:00
Yang Jiao
e3fac7eb53 Specify test redis image tag
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-12 10:49:30 +08:00
Yang Jiao
33fd4c06e1
Merge pull request #15978 from YangJiao0817/add-stop-scan-case
Add stop scan and stop scan all test cases
2021-11-11 18:01:14 +08:00
Yang Jiao
cfbbc82219
Merge pull request #15956 from YangJiao0817/refactor-ci-script
Modify ci script
2021-11-11 17:00:42 +08:00
Yang Jiao
9662c8316d
Merge pull request #15938 from YangJiao0817/include-test-case-e2e-image
Add e2e image include test case
2021-11-11 16:59:04 +08:00
Yang Jiao
f7b83a8e97
Merge branch 'main' into add-stop-scan-case 2021-11-11 16:50:55 +08:00
Yang Jiao
98e9ad82a1 Refactor ci script
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-11 16:04:09 +08:00
Yang Jiao
b0d6b242ae Add stop scan and stop scan all test cases
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-09 16:58:31 +08:00
Yang Jiao
d7f53e51a9 Add test case to verify imgpkg in nightly
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-09 14:35:05 +08:00
Yang Jiao
360809bfd2 Add e2e image include test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-03 18:31:00 +08:00
Yang Jiao
2d6973febf
Merge pull request #15905 from YangJiao0817/add-wasm-to-harbor-case
Add wasm-to-oci test cases for harbor push and pull
2021-11-02 16:51:38 +08:00
Yang Jiao
b3c959a7ab
Merge pull request #15879 from YangJiao0817/add-helm3.7-case2python
Add test cases helm3.7 CLI push in python test
2021-11-02 16:51:04 +08:00
Yang Jiao
37bc1872e2 Add wasm-to-oci test cases for harbor push and pull
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-29 16:26:02 +08:00
Yang Jiao
72be9df283 Add test cases helm3.7 CLI push in python test
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-27 18:59:08 +08:00
Aaron Layfield
7b75a456d3
Robot Account CREATE / DELETE Label (#15815)
Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>
2021-10-27 14:24:07 +08:00
Yang Jiao
57431aa8cc
Support helm3.7 in nightly (#15819)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-26 17:27:45 +08:00
Yang Jiao
60ab3aeb27
Merge pull request #15832 from YangJiao0817/fix-python-testcase-security
Fix issues in python api test
2021-10-26 11:16:26 +08:00
Wang Yan
a956758302
bump up go version to v1.17 (#15865)
* bump up go version to v1.17

Signed-off-by: Wang Yan <wangyan@vmware.com>

* gofmt fail

Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-10-25 17:28:29 +08:00
Yang Jiao
9178ba1138 Fix issues in python api test
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-23 13:26:48 +08:00
He Weiwei
619d3e818c feat: bump up trivy adater to v0.23.0
Closes #14983

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-10-22 09:07:40 +00:00
Shengwen YU
3f75f0db32
feat: add python testing script for stop scan job (#15779)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

Co-authored-by: Shengwen Yu <yshengwen@vmware.com>
2021-10-18 13:13:53 +08:00
Soumik Majumder
b4c2ff7768
Fix bad and missing shebangs (#15783)
Signed-off-by: Soumik Majumder <soumikm@vmware.com>
2021-10-14 20:09:41 +08:00
Yang Jiao
bc321a331a Update robot account permission item all list
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-13 09:46:56 +08:00
Yang Jiao
e79dd316cd Update helm cm-push plugin
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-08 15:27:44 +08:00
Yang Jiao
a404cda6ce Fix User View Logs test case error
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-09-24 12:24:57 +08:00
YangJiao
5533015fd1 Add Go To Harbor Api Page TestCase
Signed-off-by: YangJiao <jiaoya@vmware.com>
2021-09-17 16:06:11 +08:00
Yang Jiao
192a97c85f
Merge pull request #15545 from YangJiao0817/add-test-cases-to-download-helm-charts-from-UI
Add TestCase to download helmchart from UI
2021-09-15 11:00:06 +08:00
YangJiao
a4a82d763a Add TestCase to download helmchart from UI
Signed-off-by: YangJiao <jiaoya@vmware.com>
2021-09-13 14:06:44 +08:00
Wang Yan
dbcbc8bad0
bump up go to v1.16.7 (#15564)
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-09-09 17:58:00 +08:00
danfengliu
a4331f6b60 add-notary-resign-test-in-upgade-pipeline
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-08-10 20:41:12 +08:00
danfengliu
8a80f82bb5
Merge pull request #15328 from danfengliu/fix-nightly-ca-header-issue
Fix nightly ca header issue
2021-07-23 15:35:04 +08:00
Wang Yan
dd6fb049f5
drop adminjob router (#15326)
As the admin job has already droped from v2.3, remove the request handling from router.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-07-19 17:12:31 +08:00
孙世军
43da6467c0
Add a case of deleting an OIDC user (#15309)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-07-19 10:56:06 +08:00
danfengliu
32ea961f9f Fix nightly ca header issue
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-07-18 10:44:40 +08:00
DQ
b7128a6afa Fix regex parsing IP issue in test scirpt
add `^` to constraint IP addr matching only when the pattern start from the begining

Signed-off-by: DQ <dengq@vmware.com>
2021-07-15 16:12:03 +08:00
danfengliu
8947a62dc4 Fix replication test issue in nightly
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-07-11 17:54:55 +08:00
Wang Yan
494d74d32d
bump up go version to 1.16 (#15286)
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-07-08 16:25:15 +08:00
Wang Yan
cdb7f4514e
fix cross mount conformance test (#15274)
fixes #15273

set the cross mount namespace for conformance test, the default vaule cannot pass the reponame validation.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-07-08 15:11:01 +08:00
danfengliu
646ca80187
Fix nightly test failures broken by UI change (#15233)
1. Fix break of byte statistic unit changing;
2. Fix OIDC login UI changing.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-07-02 10:19:43 +08:00
danfengliu
65663cae52 Increase retry times for checking replication result
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-06-23 09:49:34 +08:00
Will Sun
be3f499b9b
Fix nightly failure (#15161)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-06-18 17:53:26 +08:00
danfengliu
0bea79df93 Remove workround for docker20 adaptation
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-06-09 14:57:52 +08:00
danfengliu
896327a845
Merge pull request #14998 from danfengliu/fix-replication-namespace-level-issue
Fix replication namespace level issue
2021-06-09 14:15:44 +08:00
danfengliu
254c4a3497
Merge pull request #15046 from danfengliu/refine-base-build-process-in-makefile
Refind build base process in Makefile
2021-06-09 11:21:48 +08:00
DQ
1b6b47f860 Add IPv6 support
* 127.0.0.1 to localhost
* listening net addr add ipv6 format

Signed-off-by: DQ <dengq@vmware.com>
2021-06-03 09:04:49 +00:00
danfengliu
d66ea07c2f Refind build base process in Makefile
Remove build base executable in Makefile by replacing it as an input parameter.
Add add more input parameters for controlling docker pull/push to make
build base process flexible for users.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-06-03 14:48:34 +08:00
danfengliu
be6ce16223 Add UI test for replicaiton flattening
1. Fix replication namespace level issue;
2. Add UI test for replicaiton flattening.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-05-31 14:14:50 +08:00
danfengliu
a40d609164 Remove customize case from common test
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-05-26 10:46:11 +08:00
danfengliu
344e51d2c6 Fix build base workflow issues
Signed-off-by: danfengliu <danfengl@vmware.com>
2021-05-25 18:13:15 +08:00
danfengliu
3ef4dc17fc Fix notary trust directory issue and add login for each base image in makefile
1. Use root instead of ~ in notary parameter;
2. Fix tag immutability issue caused by GUI change;
3. Replace email domain name to harbor test;
4. Add login for each base image in makefile;
5. Add customize look test in nightly.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-05-20 18:23:13 +08:00
Wang Yan
0fb520a33b bump up go to v1.15.12
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-05-14 15:36:23 +08:00
danfengliu
072f364d0b Add manifest and CNAB replication tests
1. Add manifest and CNAB replication tests;
2. Duplicate ORAS and sigularity tests from API test to nightly common
tests;
3. Optimize get dns code in CI;
4. Optimize E2E dockerfile;
5. Sample image size should be cover requirement for large size like 512M.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-05-10 21:47:48 +08:00
stonezdj(Daojun Zhang)
c7852df8d3
Remove unused items in legacy_swagger.yaml (#14785)
Also updated the api test

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-05-06 10:55:33 +08:00
stonezdj(Daojun Zhang)
46dcf7b0cb
Add missing operationId in swagger.yaml (#14722)
Add operationId for systeminfo api
Add operationId for configure api
Update api test after adding operationId

Fixes #14617

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-04-27 12:35:00 +08:00
Will Sun
af12f9aa01
Refactor tag-retention page (#14749)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-04-26 14:27:44 +08:00
danfengliu
81b26418c1
Fix build base related issues (#14733)
1. Add build base image step in build package git action workflow;
2. Add build base step to UT test in CI, base image used by UI test should be built before building harbor image in the same runtime;
3. In build package workflow, trigger build base image step in condition of changing both in
Dockerfile.base and VERSION;
4. Add tag for setup nightly test.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-04-23 11:55:30 +08:00
danfengliu
f0ebd17994 Add build base image step in build package git action workflow
Build base image step should be in build package workflow, and local base images build by new step should be removed since images have been pushed to docker hub.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-04-17 18:10:44 +08:00
Wang Yan
6e3c9e29df
Api refactor label (#14650)
* Refactor labl api

move to the new program model

Signed-off-by: wang yan <wangyan@vmware.com>

* continue resolve review comments

Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-04-15 17:27:58 +08:00
Wenkai Yin
654f4d9202 Refactor health check API
Refactor the health check API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2021-04-15 14:50:27 +08:00
He Weiwei
dc37c83e11
refactor: use singular as the tag for user APIs (#14654)
Use singular as the tag for user APIs to align with other APIs.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-04-15 10:52:48 +08:00
stonezdj
751d404519 Refactor project member api to new programming model
Add pkg/member/dao
    Add pkg/member/models
    Add pkg/member/manager
    Add controller/member
    Remove the old project member API

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-04-13 21:28:54 +08:00
Daniel Jiang
d4cd2b87bd API for users to new model
This commit moves the legacy apis related to users to new model.
Some funcs under common/dao are left b/c they are used by other module,
which should also be shifted to leverage managers.
We'll handle them separately.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2021-04-13 11:11:50 +08:00
stonezdj
ac5e908597 Refactor user group to new programming model
Add context to required methods
Add pkg/usergroup/dao
Add pkg/usergroup/manager
Add controller/usergroup/controller

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-04-09 14:40:48 +08:00
stonezdj
107e468b60 Refactor configure api to new programming model
Changes include:
1. Move core/config to controller/config
2. Change the job_service and gcreadonly to depends on lib/config instead of core/config
3. Move the config related dao, manager and driver to pkg/config
4. Adjust the invocation of the config API, most of then should provide a context parameter, when accessing system config, you can call it with background context, when accessing user config, the context should provide orm.Context

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-04-09 08:10:11 +08:00
Qian Deng
c5d12ce8ee
Merge pull request #14542 from ninjadq/add_task_info_in_exporter
Add task info in exporter
2021-04-07 18:17:26 +08:00
DQ
dcb28d8e30 Add test case for exporter
add e2e test to verify exporter and jobservice metrics exist

Signed-off-by: DQ <dengq@vmware.com>
2021-04-06 15:54:33 +08:00
danfengliu
fbf2409c78
Merge pull request #14472 from danfengliu/add-tests-for-manifest-replication
Add test for manifest replication
2021-04-02 17:39:14 +08:00
danfengliu
1801a3cee3 Add manifest and CNAB replication tests
1. Add manifest and CNAB replication tests;
2. Duplicate ORAS and sigularity tests from API test to nightly common
tests;
3. Optimize get dns code in CI;
4. Optimize E2E dockerfile;
5. Sample image size should be cover requirement for large size like 512M.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-04-02 15:39:30 +08:00
Wenkai Yin(尹文开)
28596c3ffb
Refactor registry API (#14528)
* Refactor registry API

Refactor registry API

Signed-off-by: Wenkai Yin <yinw@vmware.com>

* Fix bugs of replications

1. Fix the scheduled replication doesn't work issue
2. Fix the destination name lost issue when updating replication policy

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2021-03-31 15:49:23 +08:00
Wenkai Yin
3d7fd070c7 Refeactor replication policy APIs
Refeactor replication policy APIs

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2021-03-17 10:57:31 +08:00
danfengliu
068d1d46ca Fix API python tests log missing issue
After debugging for issue of missing some http message logs, we found out that swagger client configuration will be re-initiated by calling models in swagger client, so in API python tests, defination for models must be in front of swagger client defination.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-03-15 17:23:13 +08:00
Daniel Jiang
0d4992a41e
API for system CVE allowlist to new model (#14412)
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2021-03-12 10:23:48 +08:00
danfengliu
b181d4df16
Merge pull request #14321 from danfengliu/fix-quotas-test-in-upgrade-pipeline
Fix quotas test issue in upgrade pipeline
2021-03-10 15:59:33 +08:00
danfengliu
a2fc1bcfaf Fix quotas test issue in upgrade pipeline
1. Change way for quotas verification in upgrade pipeline, prepare specific size of image, then it's an known value for verifcation;
2. Add notary key rotate test;
3. For issue brought by docker 20, clean containerd cache is the only effective way, so both dockerd and containerd should be cache cleard and restarted;
4. Upgrade E2E Dockerfile for importing readable file size package, and other issues;
5. Uncomment project level robot account test in nightly.
6. Get DNS from local setting, and set it into docker deamon config file;

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-03-10 06:27:22 +00:00
Wang Yan
85254ccc22
refactor immutable rule (#14371)
Migrate immutable realted APIs to v2 swagger

Signed-off-by: wang yan <wangyan@vmware.com>
2021-03-08 17:10:12 +08:00
Wenkai Yin(尹文开)
4c2e698af8
Merge pull request #14341 from heww/refactor-scanner-apis
refactor: generate scanner APIs by go-swagger
2021-03-04 17:48:04 +08:00
danfengliu
85c10c1c31 Remove python3.7 deployment in CI installtion phase.
Git action work node OS had python3.8 deployed already, so won't necessary to install python3.7 in CI.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-03-04 14:24:19 +08:00
He Weiwei
ef0bdf6954 refactor: generate scanner APIs by go-swagger
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-03-03 04:23:36 +00:00
He Weiwei
4b033c266a refactor: generate quota APIs by go-swagger
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-02-25 08:19:55 +00:00
danfengliu
7fb9dbd0fa Upgrade docker and containerd
1. Fix E2E quotas issue, push the same image but with different name;
2. Add checkpoint for robot account test;
3. Upgraded docker and containerd in E2E image;
4. Package base image sample(busybox) into E2E image, so in E2E
container, all local docker images can be cleaned up, once base image is needed for
building image, it can be loaded locally;
5. Adapt OIDC service of supporting LDAP user, and add OIDC group user
test;
6. Restart docker deamon before content trust test, both in API and UI
test;
7. Add retry for keyword "Add A Tag Immutability Rule";
8. Fix tag retention test issue, missing click angle icon, and enhance
checkpoint of dry run and real run;
9. Fix schedule test issue for wrong cron string;
10. Disable quotas verification, it's not stable for script defect;

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-02-24 15:43:11 +08:00
Will Sun
84f672bef5
Fix nightly failure for p2p case (#14261)
Signed-off-by: sshijun <sshijun@vmware.com>
2021-02-23 09:56:01 +08:00
Josh Soref
dfe360040b Spelling
* addition
* attribute
* auditing
* availability
* available
* bandwidth
* browser
* business
* cadence
* chartmuseum
* client
* column
* content
* demonstrate
* described
* endpoints
* facilitate
* github
* harbor
* information
* instance
* manual
* meaningful
* operation
* overridden
* password
* possible
* project
* refactor
* replication
* requires
* running
* scanned
* settings
* signup
* those
* unsigned
* vulnerability

--
Also removes trailing space from a filename

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-02-19 11:59:15 +08:00
danfengliu
f51bcd9fdf
Merge pull request #14092 from dirkmueller/zip_slip
Update oras to 0.9.0 to fix "zip slip" vulnerability
2021-02-07 16:15:11 +08:00
Wang Yan
885a268268
rename permission of robot account (#14150)
* rename permission of robot account

fixes #14060
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-02-04 15:32:44 +08:00
Qian Deng
6d78189dff
Merge pull request #14117 from ninjadq/fix_quota_metric_name
Chagne quota usage metric name
2021-01-29 10:36:55 +08:00
danfengliu
b0e54f5a33
Merge pull request #14041 from danfengliu/upgrade-containerd-in-e2e-dockerfile
Upgrade containerd in E2E Dockerfile
2021-01-29 09:42:41 +08:00
DQ
eb5e31a442 Chagne quota usage metric name
from `harbor_project_usage_byte` to `harbor_project_quota_usage_byte`

Signed-off-by: DQ <dengq@vmware.com>
2021-01-28 18:10:59 +08:00
Qian Deng
ebe05919be
Merge pull request #14078 from ninjadq/fix_self_registration_metric
Fix metric label related things
2021-01-28 17:27:53 +08:00
danfengliu
642bb26c39 Fix nightly issues caused by docker upgrade to 20
1. Local image should be removed, otherwise docker 20 will not tigger
get manifest request to harbor;
2. E2E image Dockerfile update;
3. Fix nighlty test issue of tag retention, add execution refesh to get
result;
4. Fix nighlty test keyword 'Create An New Project And Go Into
Project' issue that waiting long enough time for list display;
5. Add nightly test case, in GUI, scan result will show if cve id exist in allow list configuration;
6. Move proxy cache test to schdule pipeline, it will save some time for
db pipeline.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-01-28 11:44:32 +08:00
Dirk Mueller
3ddc44e28b Update oras to 0.9.0 to fix "zip slip" vulnerability
See https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx
for details

Signed-off-by: Dirk Mueller <dirk@dmllr.de>
Signed-off-by: Dirk Mueller <dmueller@suse.com>
2021-01-26 20:36:52 +01:00
danfengliu
54b6884853 Upgrade python to v3 in git action CI host
The original python packaged: in git action host is V2, it should be upgraded to
V3.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-01-26 21:30:03 +08:00