Commit Graph

376 Commits

Author SHA1 Message Date
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
wang yan
2ef11c396a Fix failure on GC test case
As the changes on scan all, the default schedule was removed from source code,
hence the gc job should be the first admin job, to change to job id to 1.

Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-29 14:15:06 +08:00
Meina Zhou
b68dd47a20 modify test case since replication log change to popup a new page
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-26 16:20:00 +08:00
Wenkai Yin
6c033574fa Update automation test case "Delete Multi Project" (#6116)
Add "Wait Until xxx" to wait the expected page appear before the next step to avoid the case failure

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-24 15:37:36 +08:00
Wenkai Yin
f5166431be Update automation test case "Delete Repo" (#6087)
Replace the "Sleep x seconds" with "Wait Until xxx" in the "Delete Repo" case

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-23 09:08:54 +08:00
Wenkai Yin
96d260a379 Add debug info to automation test case (#6092)
Add "Capture Page Screenshot" to help debug the case failure

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-23 09:08:33 +08:00
Mia ZHOU
c13a0bfaae
Merge pull request #6088 from pureshine/fixed_bug
Vulnerability scan cancel editing to make UI into orginal status
2018-10-23 08:39:32 +08:00
Cheng Fangyuan
8b6e72e56e Vulnerability scan cancel editing to make UI into orginal status
Signed-off-by: Cheng Fangyuan <fangyuanc@fangyuanc-a01.vmware.com>
2018-10-19 13:14:43 +08:00
Daniel Jiang
1b8dd0cb56
Merge pull request #6006 from wy65701436/upload-logs
Add step to upload travis logs into GCR
2018-10-19 12:52:10 +08:00
Steven Zou
db24cbe25a
Merge pull request #5779 from cd1989/images-retag
Merge Images retag
2018-10-19 11:04:48 +08:00
陈德
a1b4729aa7 Add more unit tests
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-18 00:26:25 +08:00
wang yan
f44ff2e4c3 Remove the env GODEBUG=netdns=cgo
This env is the workaroud of dns resolver on golang 1.7.3.
Remove it is bacause of harbor is using golang 1.9.2, the bug
has already been fixed.

Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-17 16:11:25 +08:00
Wenkai Yin
69825093b0 Update CI script run in Drone (#6053)
Publish images to docker hub with dev tag only for master branch changes

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-16 17:37:13 +08:00
Wenkai Yin
20a6a8738e
Merge pull request #6030 from wy65701436/add-gc-e2e
add gc e2e test case
2018-10-16 15:43:35 +08:00
wang yan
3ef52cafd4 Add gc e2e test case
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-16 14:31:57 +08:00
Wenkai Yin
16c9ffad2c Update automation test case "Project Level Image Serverity Policy" (#6037)
Currently, the case "Project Level Image Serverity Policy" uses the project library as the target project, but the project library has been set to scan image automatically when images are pushing, this will cause case failure. This commit creates a new project in the case to aviod the failure.

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-16 09:01:23 +08:00
Wenkai Yin
b650bf0d04 Update automation test case "Make Project Public/Private" (#6028)
Add "Wait Until" to ensure the "Save" button is clicked

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-12 18:29:38 +08:00
Daniel Jiang
05e5105c46
Merge pull request #6024 from ywk253100/181012_case
Update scan automation test case
2018-10-12 16:44:11 +08:00
Wenkai Yin
4e8506de34 Update golint repository used in travis
The golint repository is updated, this commit changes it with the latest version

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-12 14:11:35 +08:00
Wenkai Yin
7e3ae5cb11 Update scan automation test case
Replace image hello-world with busybox as the hello-world has been scaned in the last case

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-12 11:22:43 +08:00
Wenkai Yin
00acb507ba Update automation test cases
Update the case to pass nightly testing for Harbor chart

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-11 15:29:43 +08:00
Wenkai Yin
32c4392b3b Update test cases (#6011)
Update the automation test cases to pass the nightly testing

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-11 10:39:25 +08:00
wang yan
d86692d61c Add step to upload travis logs into GCR
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-10 19:03:19 +08:00
Wenkai Yin
d1981d23b1 Update automation test cases (#5991)
Longer the wait time to pass the nightly testing

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-10-10 10:38:48 +08:00
Steven Zou
bb73e64f5d Revert the changes to the travis pipeline to fix the build failure
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-27 15:11:20 +08:00
Yan
6c00747390
Enable travis to update logs to GSR (#5949)
1, add encrypt file to store gsutil keys.
2, add function to call gsutil to update logs into harbor log bucket.

Signed-off-by: wangyan <wy65701436@gmail.com>
2018-09-27 08:54:56 +08:00
De Chen
e3b061c415 Fix the Makefile for MacOS to run harbor locally for dev (#5502)
* fix sed -i in MacOS, BSD sed and Linux sed are different, use sed -i -e instead
* change target name from version to ui_version
* fix cleandockercomposefile target to clean all generated docker-compose files

Signed-off-by: 陈德 <chende@caicloud.io>
2018-09-25 15:12:43 +08:00
Cheng
9250b1b351 ../../tests/resources/Harbor-Pages/Configuration.robot
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-25 13:40:17 +08:00
wang yan
18411349b5 Add installer pipeline in travis
Signed-off-by: wang yan <wangyan@vmware.com>
2018-09-21 17:20:54 +08:00
Wenkai Yin
978f8721e6
Merge pull request #5927 from steven-zou/return_labels_in_chart_api
Refactor the chart service implementation to provide more extending flexibilities
2018-09-21 15:59:53 +08:00
Qian Deng
0cb430d463
Merge pull request #5932 from ninjadq/refactor_auth_api
Refactor backend api for authrization
2018-09-21 15:59:07 +08:00
Qian Deng
88bb461314 Reactor backend api for authrization
1. Change backend api
2. Change frontend api
3. Change the proxy config file

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-21 14:03:17 +08:00
Daniel Jiang
6c84a3dc4f
Merge pull request #5690 from goharbor/clouderati-copyright-update
Updating copyright notices
2018-09-20 19:38:26 +08:00
Steven Zou
d4c423ea8e Merge branch 'master' into return_labels_in_chart_api 2018-09-20 17:55:48 +08:00
Steven Zou
24c0be789d Add more UT cases for changed chart API
- add more cases in the ChartRepositoryAPI controller
- move chart utility testing functions to a separate go file under testing
- ignore testing coverage for testing folder
- update other UT cases to reflect the change of adding chart testing utility functions

Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-20 17:51:27 +08:00
Yan
650449d5e0
Fix error on packaging offline installer with Drone (#5931)
Signed-off-by: wang yan <wangyan@vmware.com>
2018-09-20 14:53:28 +08:00
clouderati
587459df15 Replacing copyright notices with "Copyright Project Harbor Authors".
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-09-19 16:59:36 +00: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
Yan
e77a116e1d
Decrepate tests from drone ci (#5919)
This commit is to remove tests from drone CI server, and leave drone
as the build system only for harbor. Harbor system admin will remove
the webhook from harbor repo, then any pull request will not trigger
drone job.

Signed-off-by: wang yan <wangyan@vmware.com>
2018-09-19 16:54:15 +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
Qian Deng
dfeb1924c6 Fix xpath in robot case
1. Fix xpath of Upload button
2. Fix xpath of status span

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-10 17:24:28 +08:00
Qian Deng
ac6c9d79ba Remove nodeclarity
Remove the nodeclarity container related code and ui_builder parameter no longer needed when build clarity

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-08 20:33:21 +08:00
Daniel Jiang
abf67c8de0
Merge pull request #5789 from wy65701436/make-clean
Clean make file unused code and unify docker build method (#59)
2018-09-05 19:54:56 +08:00
Yan
4eba01fc31 Clean make file unused code and unify docker build method (#59)
Signed-off-by: Yan <wangyan@vmware.com>
2018-09-04 17:18:15 +08:00
Qian Deng
4d601292d1 Add E2E test for helmchart (#5746)
Add E2E test for helmchart repo

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-04 15:08:51 +08:00
wang yan
f8b964d8cf Extend configuration length to 1024 in DB
Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-31 13:42:24 +08:00
wang yan
470000a9ec Deprecate unused robot cases
Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-27 10:17:06 +08:00
Daniel Jiang
1d4f991901
Merge pull request #5640 from wy65701436/deprecate-ova
deprecate ova for harbor repository
2018-08-24 13:38:42 +08:00
wang yan
aacbf229d6 deprecate ova for harbor repository
This commit is to remove the document/tests of ova from harbor repository as decide to deprecate
ova installer in the future release.

Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-24 13:05:01 +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