danfengliu
3356368bff
Add API test case assign system admin role. ( #6413 )
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-12-04 12:26:12 +08:00
danfengliu
b4c7663f5f
Add API test case scan all images and test case API test case list helm charts. ( #6388 )
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-12-03 17:05:06 +08:00
Wenkai Yin
9d5cf57373
Check the existence of name when creating replication rule and fix bugs in testing library ( #6381 )
...
1. Fix #5102 by checking the existence of name when creating/editing replication rule
2. Add unique constraint to the name of replication policy and target
3. Fix bugs of testing library
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-11-30 13:32:20 +08:00
danfengliu
04fd4d444d
Add API test case for user view logs. ( #6370 )
...
Add API test case for user view logs.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-29 18:27:53 +08:00
danfengliu
c4bf65162c
add api test case for garbage collection ( #6366 )
...
Add API test case for garbage collection, and add swagger.yaml, GC and chart feature were updated in swagger.yaml.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-27 19:17:41 +08:00
danfengliu
ad77098acf
add test case project level policy content trust. ( #6309 )
...
Add test case project level policy content trust.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-21 12:19:28 +08:00
danfengliu
5ceebcbb10
Add tese case of manage project memebers and modify ( #6304 )
...
Move admin_client to testutil.py as global parameter.
Change create_repository function name to push_image_to_project to make it reasonable.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-20 14:24:13 +08:00
danfengliu
dcd34a37a9
add test case scan a not scanned image
...
Modify for codacy issues.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-16 15:35:15 +08:00
danfengliu
1cc04183cb
add test case for edit project creation;
...
fixed some space and import issues coddcy;
remove a lib;
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-15 10:32:21 +08:00
danfengliu
90fda71e4a
Recovery repository.py for calling wrong create function ( #6268 )
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-13 12:53:46 +08:00
danfengliu
6289275118
Modify script call create project ( #6263 )
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-12 23:39:16 +08:00
danfengliu
205a658afb
Only modify lib-project for seq of return ( #6261 )
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-12 16:59:55 +08:00
danfengliu
ce8a585858
modfiy repo
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
9265754936
modify codacy errors in target
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
a6151175e3
add lib for target
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
e6f5f62c53
Modify for codacy again
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
0b84ec84d9
Modify for codacy
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
660bfdf677
add test case of add a replication rule
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-08 10:33:14 +08:00
danfengliu
1979d17550
add tc add-sys-label-to-tag and del-repo
...
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-02 17:16:43 +08:00
danfengliu
894e0591bb
add new api tests ( #6127 )
...
Add API test libraries which were based on swagger doc,
it's including user and project , also add one scenario
test case which is test_add_member_to_private_project to
verify a user can see a project when the uesr is the member of it.
Delete 2 old test case.Delete a quota.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-10-31 13:13:31 +08:00
陈德
a1b4729aa7
Add more unit tests
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-18 00:26:25 +08:00
Yan
002e5a2b70
Enable api tests in travis ( #5900 )
...
This commit is to enable parallel run jobs with travis, and add API for DB and API for LDAP in travis.
Signed-off-by: wang yan <wangyan@vmware.com>
2018-09-19 17:49:43 +08:00
Qian Deng
7873a0312a
Rename harbor-ui to harbor-core
...
1. Update the nginx.conf
2. Update Makefile
3. Update docker-compose
4. Update image name
5. Rename folder ui to core
6. Change the harbor-ui's package name to core
7. Remove unused static file on harbor-core
8. Remove unused code for harbor-portal
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-19 16:35:13 +08:00
Daniel Jiang
dcf4e2ee78
Update import path in go code
...
vmware -> goharbor
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-08-23 17:50:53 +08:00
Wenkai Yin
f71f02deee
Fix module not found error in API test ( #5647 )
...
Reload the python path to fix the module not found error in API E2E test
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-08-17 10:55:19 +08:00
Wenkai Yin
95c0c259ec
Add E2E API test cases for replication based on labels ( #5639 )
...
This commit creates a new E2E API test case to verify the replication based on label
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-08-16 18:36:27 +08:00
stonezdj
94f852b826
Fix testcase related to LDAP user can not see any logs
2018-08-10 16:17:18 +08:00
Yan
9c86d0b86f
Update ldap user pwd for nightly ( #5571 )
2018-08-09 16:38:27 +08:00
stonezdj
edcb2fbf05
Add Harbor API Test based on python API
...
Correct swagger.yaml format
Add make task swagger_client to gen and install python client.
Add LDAP related Test
2018-08-01 10:43:23 +08:00
Yan
efdb57548f
add admin job api ( #5344 )
...
It supports Harbor admin to trigger job either manual or
schedule. The job will be populated to job service to execute.
The api includes:
1. POST /api/system/gc
2, GET /api/system/gc/:id
3, GET /api/system/gc/:id/log
4, PUT/GET/POST /api/system/gc/schedule
2018-07-20 19:22:37 +08:00
Yan
ae257433cc
Fully migrate harbor db to postgresql ( #4689 )
...
* Merge harbor db to postgres
2018-04-27 02:27:12 -07:00
Steven Zou
bb292aab96
Fix the failure api test cases because API implementation changed
2018-04-16 15:39:19 +08:00
Wenkai Yin
a54b7dd4c0
Merge remote-tracking branch 'upstream/master' into 171219_merge
2017-12-15 08:48:57 +08:00
Steven Zou
bdb26139d7
change the hostname placeholder for the ldap concourse environment to 30.0.0.3
2017-12-17 15:15:05 +08:00
Steven Zou
d7f99d5604
add api testing suite for ldap scenario: no user creation and user deleting cases comparing to the general scenario
2017-12-15 18:56:20 +08:00
Steven Zou
42fb5c9f8e
add proxy settings to the API client for the api-testing part
2017-12-15 13:19:03 +08:00
Wenkai Yin
665a54edc3
Merge remote-tracking branch 'upstream/master' into 171213_merge
2017-12-13 13:40:24 +08:00
Steven Zou
61eefbaf6c
add api testing for harbor including image pull and push
2017-12-08 16:16:50 +08:00
Wenkai Yin
31cf6c078e
Implement replication policy manager
2017-11-16 10:55:03 +08:00
Wenkai Yin
5cef58baa1
update according to the comments
2017-11-08 17:53:41 +08:00
Wenkai Yin
51d5df0849
Update replication policy API to support trigger and filter
2017-11-02 14:59:26 +08:00
Wenkai Yin
66b2d0d3f3
Apply project level policies to standalone Harbor
...
The following features are only enabled in integration mode, this commit moves
these to standalone Harbor:
- Content trust policy: only signed images can be pulled
- Vulnerability policy: only images whose severity is below the threshold can be pulled
- Automatic scan policy: automatic scan pushed images
2017-10-19 17:33:28 +08:00
Wenkai Yin
6e9ec3f22c
refactor statistics API
2017-06-26 14:15:01 +08:00
Wenkai Yin
6b4ae098db
update
2017-06-09 18:24:52 +08:00
Wenkai Yin
20cf8de0f7
Merge remote-tracking branch 'upstream/master' into 170608_project
2017-06-09 16:41:13 +08:00
Wenkai Yin
e97d7dab85
refactor GET /projects
2017-06-09 16:41:02 +08:00
Wenkai Yin
b2380818fd
support query logs according to conditions
2017-06-08 14:44:08 +08:00
Wenkai Yin
d6a6f67596
refactor search API to return more info
2017-03-06 17:47:05 +08:00
wemeya
7f949b1a95
add test for ldap.go ( #1307 )
...
LGTM
2017-01-19 10:09:56 +08:00
wemeya
ce0a44010d
add test file for systeminfo.go ( #1288 )
...
LGTM
2017-01-06 15:41:07 +08:00