framework/replay: Set Authorization header when downloading from MinIO
commitce23a1d772418e67e7225c949e8f0eecca02dc0c
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 26 Mar 2021 06:50:21 +0000 (26 07:50 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 31 Mar 2021 06:16:30 +0000 (31 08:16 +0200)
tree011a2737f7af1ef48c0c46d6f8e8527a4ff44599
parent798178a5d66f808a6c1be47563d46fbc7cd10cb3
framework/replay: Set Authorization header when downloading from MinIO

This will allow piglit to test with traces hosted in repositories with
restricted access, such as those for which we don't have redistribution
rights.

v2: - Pass the MinIO host name explicitly (Andres)
    - Return credentials from function (Andres)

v3: - Increase credentials timeout to 1 hour (Andres)

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/500>
framework/replay/download_utils.py
framework/replay/options.py
framework/replay/programs/compare.py
framework/replay/programs/download.py
framework/replay/programs/parsers.py
unittests/framework/replay/test_download_utils.py