Better support for permissions-restricted (IAM) environments on AWS #223
I'm going to add more comments, but for testing that the token is present you should add a test case to the
For example, you could set MockHttp.type inside
def _TOKEN(self, method, url, body, headers): self.assertEqual(headers['x-amz-security-token'], ...) ...
@coderanger Oh, right, I totally missed this out. Rest of the values get sent as part of query parameters and not via headers.
This means the code needs to be updated to send
Edit: While we are at it, it would also be good to check it they might support sending this value via query parameters as well (I quickly glanced over the documentation and I could see this value being sent via headers).
…ers under the hood. This will behave correctly with restricted IAM permissions.