Currently, the galasactl resources commands aren't adding an "Authorization" header to the requests and will always fail when attempting to contact an authenticated API server (see resourcesApplier.go).
Steps to reproduce
Run the test-galasactl-ecosystem.sh script
The script will error when reaching the resources tests
Expected behavior
The resources commands should send a JWT to an authenticated API server.
Tasks
[x] Set the "Authorization" header in HTTP requests to the /resources endpoint
[x] Check that the resources commands work as expected
Describe the bug
Currently, the
galasactl resources
commands aren't adding an "Authorization" header to the requests and will always fail when attempting to contact an authenticated API server (see resourcesApplier.go).Steps to reproduce
test-galasactl-ecosystem.sh
scriptresources
testsExpected behavior
The
resources
commands should send a JWT to an authenticated API server.Tasks
/resources
endpointresources
commands work as expected