[keepproxy] [GoSDK] Propagate desired storage classes in PUT request headers
- Add storage classes support to Keepclient
- If a client request includes the ‘X-Keep-Storage-Class’ header, use the newly added keepclient feature.
#10 Updated by Lucas Di Pentima over 2 years ago
Updates at dd97299b6 - branch
Test run: https://ci.curoverse.com/job/developer-run-tests/735/
- Added keepclient & keepproxy support for storage classes
I'm not sure how to write tests for keepproxy. Should I write some kind of keepstore fake server to be able to read requests coming from keepproxy?
#11 Updated by Tom Clegg over 2 years ago
For keepproxy testing, you could use httptest.NewServer() to make a keepstore stub that just stashes the request headers and responds 500, make keepproxy connect to the stub using the same approach as TestAskGetKeepProxyConnectionError(), then check that the expected header was received.
#12 Updated by Lucas Di Pentima over 2 years ago
Updates at 7b7950766
Test run: https://ci.curoverse.com/job/developer-run-tests/737/
- Added test that confirms
TestAskGetKeepProxyConnectionErrortest, which wasn't testing keepproxy, but keepclient.