From 5c500cf4a113fc482473ae2f7e8344393087e1c4 Mon Sep 17 00:00:00 2001 From: yhua123 Date: Mon, 20 Jun 2016 14:36:47 +0800 Subject: [PATCH 1/4] Update hbapiaddprj_test.go fix go vet ./... tests/apitests/hbapiaddprj_test.go:12: Println call ends with newline --- tests/apitests/hbapiaddprj_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/apitests/hbapiaddprj_test.go b/tests/apitests/hbapiaddprj_test.go index 94309e583..3ac82e1e8 100644 --- a/tests/apitests/hbapiaddprj_test.go +++ b/tests/apitests/hbapiaddprj_test.go @@ -9,7 +9,7 @@ import ( func TestAddProject(t *testing.T) { - fmt.Println("Test for Project Add (ProjectsPost) API\n") + fmt.Println("Test for Project Add (ProjectsPost) API") assert := assert.New(t) apiTest := HarborAPI.NewHarborAPI() From 3157559c4e6964d0c7de303793f2357d505d4c52 Mon Sep 17 00:00:00 2001 From: yhua123 Date: Mon, 20 Jun 2016 14:38:55 +0800 Subject: [PATCH 2/4] Update hbapidelrpo_test.go fix go vet ./... tests/apitests/hbapidelrpo_test.go:12: Println call ends with newline tests/apitests/hbapidelrpo_test.go:20: Println call ends with newline tests/apitests/hbapidelrpo_test.go:35: Println call ends with newline tests/apitests/hbapidelrpo_test.go:42: Println call ends with newline --- tests/apitests/hbapidelrpo_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/apitests/hbapidelrpo_test.go b/tests/apitests/hbapidelrpo_test.go index e769a9160..0777d79f4 100644 --- a/tests/apitests/hbapidelrpo_test.go +++ b/tests/apitests/hbapidelrpo_test.go @@ -9,7 +9,7 @@ import ( ) func TestRepositoryDelete(t *testing.T) { - fmt.Println("Test for Project Delete (ProjectDelete) API\n") + fmt.Println("Test for Project Delete (ProjectDelete) API") assert := assert.New(t) //prepare for test @@ -17,7 +17,7 @@ func TestRepositoryDelete(t *testing.T) { admin := &HarborAPI.UsrInfo{"admin", "Harbor12345"} prjUsr := &HarborAPI.UsrInfo{"unknown", "unknown"} - fmt.Println("Checking repository status...\n") + fmt.Println("Checking repository status...") apiTest := HarborAPI.NewHarborAPI() var searchResault HarborAPI.Search searchResault, err := apiTest.SearchGet("library") @@ -32,14 +32,14 @@ func TestRepositoryDelete(t *testing.T) { t.Error("fail to find repo 'library/docker'", err.Error()) t.Log(err) } else { - fmt.Println("repo 'library/docker' exit\n") + fmt.Println("repo 'library/docker' exit") } //assert.Equal(searchResault.Repositories[1].RepoName, "library/hello-world", "2nd repo name should be") if !assert.Equal(searchResault.Repositories[1].RepoName, "library/hello-world", "2nd repo name should be") { t.Error("fail to find repo 'library/hello-world'", err.Error()) t.Log(err) } else { - fmt.Println("repo 'library/hello-world' exit\n") + fmt.Println("repo 'library/hello-world' exit") } //t.Log(resault) From c6f1d1f0b09c358524ab2e12e73d7ecb6d9a875d Mon Sep 17 00:00:00 2001 From: yhua123 Date: Mon, 20 Jun 2016 14:39:22 +0800 Subject: [PATCH 3/4] Update hbapisearch_test.go go vet ./... tests/apitests/hbapisearch_test.go:11: Println call ends with newline --- tests/apitests/hbapisearch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/apitests/hbapisearch_test.go b/tests/apitests/hbapisearch_test.go index 1d449d408..b6a5544ae 100644 --- a/tests/apitests/hbapisearch_test.go +++ b/tests/apitests/hbapisearch_test.go @@ -8,7 +8,7 @@ import ( ) func TestSearch(t *testing.T) { - fmt.Println("Test for Search (SearchGet) API\n") + fmt.Println("Test for Search (SearchGet) API") assert := assert.New(t) apiTest := HarborAPI.NewHarborAPI() From b13778ef5c246338a2c3bbddb6b92ddb4387bedd Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Mon, 20 Jun 2016 19:06:51 +0800 Subject: [PATCH 4/4] fix typo, refine description --- Deploy/harbor.cfg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Deploy/harbor.cfg b/Deploy/harbor.cfg index e854d289c..7cd7548eb 100644 --- a/Deploy/harbor.cfg +++ b/Deploy/harbor.cfg @@ -35,11 +35,13 @@ db_password = root123 #Turn on or off the self-registration feature self_registration = on -#Turn on or off the customize your certicate -customize_crt = on +#Number of job workers in job service, default is 3 +max_job_workers = 3 -#Number of job workers in job service, default is 10 -max_job_workers = 10 +#Turn on or off the customize your certificate for registry's token. +#If the value is on, the prepare script will generate new root cert and private key +#for generating token to access the image in registry. +customize_crt = on #fill in your certicate message crt_country = CN