Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Vad1mo committed Jun 2, 2021
1 parent b76a50c commit e5549d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pkg/reg/adapter/harbor/base/chart_registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ import (

func TestFetchCharts(t *testing.T) {
server := test.NewServer([]*test.RequestHandlerMapping{
{
Method: http.MethodGet,
Pattern: "/api/projects/library",
Handler: func(w http.ResponseWriter, r *http.Request) {
data := `{
"name": "library",
"metadata": {"public":true}
}`
w.Write([]byte(data))
},
},
{
Method: http.MethodGet,
Pattern: "/api/projects",
Expand Down

0 comments on commit e5549d3

Please sign in to comment.