gchq / gaffer-tools

gaffer-tools is deprecated. Use https://github.com/gchq/gafferpy instead
Apache License 2.0
50 stars 29 forks source link

Gh 838 GafferConnector level headers #841

Closed j8934893 closed 4 years ago

j8934893 commented 4 years ago

I have added in two additional tests to try and cover some of the cases where headers crop up. Ideally I would show header inheritance from the GafferConnector class initialisation through to the methods.

I have used this modification to pass authentication headers in a custom API setup, however, I am unable to replicate this in UnitTest. You could visually verify by adding in 'if self._verbose: print(headers)' but this would be sub-optimal.