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() 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) 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()