Closed mahadzaryab1 closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.81%. Comparing base (
5bd6980
) to head (2b62656
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@yurishkuro anything we can do about the failing codecoverage step?
you could have another test where you swap actualFS for a test fixture, e.g.
ui/testdata/
actual/
index.html.gz -- dummy file
mock.go // embed fake actual here
you could have another test where you swap actualFS for a test fixture, e.g.
ui/testdata/ actual/ index.html.gz -- dummy file mock.go // embed fake actual here
thanks for the suggestion! I added a second test in.
Thanks!
Which problem is this PR solving?
Description of the changes
assets.go
that holds both theplaceholder
andactual
assets.GetStaticFiles
to get the assets based on whether the actual filesystem has anindex.html.gz
. If it does, we return the assets. Otherwise, we return the placeholderindex.html
file.How was this change tested?
Added unit tests and performed the following manual tests
Test 1
Makefile Target
Clearing out the
actual
directory and ranmake run-all-in-one
. Going tohttp://localhost:16686/
renders the placeholder HTML page.Test 2
Makefile Target
Ran
make run-all-in-one
. Going tohttp://localhost:16686/
renders the Jaeger UI.Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test