mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-08 17:08:17 +01:00
test for travis and github lib
This commit is contained in:
parent
202a2a91c5
commit
2f8ec6461b
@ -48,7 +48,7 @@ install:
|
||||
- sudo mv docker-compose /usr/local/bin
|
||||
- go get github.com/dghubble/sling
|
||||
- go get github.com/stretchr/testify
|
||||
- go get github.com/yhua123/harbor/tests/apitests/apilib
|
||||
- go get github.com/vmware/harbor/tests/apitests/apilib
|
||||
|
||||
before_script:
|
||||
# create tables and load data
|
||||
@ -62,16 +62,9 @@ script:
|
||||
- docker-compose -f Deploy/docker-compose.yml up -d
|
||||
|
||||
- docker ps
|
||||
- docker version
|
||||
- docker-compose version
|
||||
- go run tests/startuptest.go http://localhost/
|
||||
- go run tests/userlogintest.go -name ${HARBOR_ADMIN} -passwd ${HARBOR_ADMIN_PASSWD}
|
||||
|
||||
|
||||
# test for API
|
||||
- #IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
||||
- #echo $IP
|
||||
- #docker login -u admin -p Harbor12345 $IP
|
||||
- #./tests/testprepare.sh
|
||||
- docker ps
|
||||
- go test -v ./tests/apitests
|
||||
|
BIN
tests/apitests/.hbapisearch_test.go.swp
Normal file
BIN
tests/apitests/.hbapisearch_test.go.swp
Normal file
Binary file not shown.
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
"github.com/yhua123/harbor/tests/apitests/apilib"
|
||||
"github.com/vmware/harbor/tests/apitests/apilib"
|
||||
)
|
||||
|
||||
func TestSearch(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user