Skip to content

Commit

Permalink
fix: use tse id param
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed May 22, 2024
1 parent e7488a2 commit edc2568
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/app/api/v1/testsuites.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,13 @@ func (s TestkubeAPI) ListTestSuiteTestsHandler() fiber.Handler {
func getExecutionsFilterFromRequest(c *fiber.Ctx) testresult.Filter {

filter := testresult.NewExecutionsFilter()
name := c.Query("id", "")
// id for /test-suites/ID/executions
name := c.Params("id", "")
if name == "" {
// query param for /executions?id
name = c.Query("id", "")
}

if name != "" {
filter = filter.WithName(name)
}
Expand Down

0 comments on commit edc2568

Please sign in to comment.