Skip to content

Commit

Permalink
DXCDT-304: Adding headers to output of auth0 logs list (#589)
Browse files Browse the repository at this point in the history
Co-authored-by: Will Vedder <[email protected]>
  • Loading branch information
willvedd and willvedd authored Jan 10, 2023
1 parent 20ba3df commit fa6e987
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ func (r *Renderer) LogList(logs []*management.Log, ch <-chan []*management.Log,
}
}
}()

r.Stream(res, viewChan) // streams results for `auth0 logs tail`
}

r.Stream(res, viewChan)
r.Results(res) //Includes headers for `auth0 logs list`
}
7 changes: 7 additions & 0 deletions test/integration/test-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ tests:

auth0 logs list:
exit-code: 0
stdout:
contains:
- TYPE
- DESCRIPTION
- DATE
- CONNECTION
- CLIENT

auth0 logs streams list:
exit-code: 0
Expand Down

0 comments on commit fa6e987

Please sign in to comment.