After Git repo is loaded to ES through bulk(), Line 180 performs an index refresh to make documents available for searching. The same operation is then repeated in Line 188; remove this duplicate refresh.
* Fixing flaky test wrt mock and threading.
Mock is apparetnly not threadsafe, and as a result will sometimes
cause tests to fail when we want to count the number of times a
mock function is called.
I've replaced the mock function with a side_effect, which allows for
locking and incrementing manually.
* put threading.Lock in globals
* testing
* more fixes
* downgrade docker-compose file version cause jenkins
* fixing matrix
* back to elasticsearch_version
* skip py3.7 for now there's a bug
* add build badge and remove 3.3
Sphinx doesn't play nice with 3.3
* sphinx 1.7 drops support for python 3.3
* updating test matrix
* remove travis
* updating badges
* In preperation for moving to Elastic's CI
Add dockerfile to build image for testing python client in a docker container
add docker-compose to create environment for running tests against specific versions of ES
Add Makefile to make it easy to execute tests and cleanup
add wait-for-elasticsearch.sh script to wait for elasticsearch before executing the tests.
* add pull and comment about pushing requring auth
* spelling errors
* adding CI directory for jenkins to pick up
fixing typo too
* fix test-matrix and create working run-tests
* add comment about why skipping python 2.6
* adding dockerfiles to create base images for ci
By passing a `Retry` object to `urlopen` instead of just `False`, it
prevents `urllib3` from having to create a Retry object with `from_int`.
`from_int` emits an undesirable log message when called with
`retries=False`, and this can be avoided by the method described above.
* Adding GZip support to urllib3
* Adding compression documentation and example
* Convert to lowercase for consistency
* Moving header manipulation to __init__()
* Validating headers for compression
* Moving body compression out of the headers block
* Don't compress if there is no body
* Infer true