From 30ccb2d3a262e32ddb9c2b38b47df6e7706dc366 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Fri, 6 Jan 2023 15:21:49 -0500 Subject: [PATCH 1/2] Fixing headers for auth0 logs list --- internal/display/logs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/display/logs.go b/internal/display/logs.go index ce00f574e..3de96889b 100644 --- a/internal/display/logs.go +++ b/internal/display/logs.go @@ -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` } From 59ae843a4f73f9e662511a2540b73f4de0733166 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Fri, 6 Jan 2023 15:52:50 -0500 Subject: [PATCH 2/2] Stronger test --- test/integration/test-cases.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration/test-cases.yaml b/test/integration/test-cases.yaml index 255573f57..7e26fb025 100644 --- a/test/integration/test-cases.yaml +++ b/test/integration/test-cases.yaml @@ -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