Skip to content

Commit

Permalink
supplement unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus Wu <icaruswu66@qq.com>
  • Loading branch information
Icarus9913 committed Oct 24, 2024
1 parent 09e07ae commit cb254a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/api-server/service_insight_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func (s *serviceInsightEndpoints) listResources(request *restful.Request, respon
_, exists := filterMap[service.ServiceType]
return exists
})

restList := rest.ResourceList{
Total: uint32(len(items)),
Items: items,
Expand Down
2 changes: 2 additions & 0 deletions pkg/api-server/testdata/service-insights/get.input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: mesh-1
type: ServiceInsight
mesh: mesh-1
name: all-services-mesh-1
labels:
kuma.io/display-name: all-services-mesh-1 # refer to https://github.com/kumahq/kuma/issues/9729
services:
backend:
status: partially_degraded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: mesh-1
type: ServiceInsight
mesh: mesh-1
name: all-services-mesh-1
labels:
kuma.io/display-name: all-services-mesh-1 # refer to https://github.com/kumahq/kuma/issues/9729
services:
frontend:
status: partially_degraded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: mesh-1
type: ServiceInsight
mesh: mesh-1
name: all-services-mesh-1
labels:
kuma.io/display-name: all-services-mesh-1 # refer to https://github.com/kumahq/kuma/issues/9729
services:
frontend:
status: partially_degraded
Expand Down

0 comments on commit cb254a9

Please sign in to comment.