influxdata / influxdb-comparisons

Code for comparison write ups of InfluxDB and other solutions
MIT License
307 stars 112 forks source link

feat: add influxv1 auth. #217

Open Super-long opened 1 year ago

Super-long commented 1 year ago

When I tried to perform tests on an instance of influx1.8, I found that influxdb-comparisons did not implement the standard auth functionality in influxv1:.

  1. authentication using basic authentication
  2. credentials as query parameters

In https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#authenticate-with-basic-authentication You can see the description of both auth methods in.

Now bulk_load_influx and bulk_query_gen can perform tests using the following.

  1. bulk_load_influx --batch-size=5000 --basic-authentication=time_seriestest account:test_password -urls='http://172.17.0.5:8086'
  2. bulk_load_influx --batch-size=5000 --user=time_series_test_account --password=test_password -urls='http://172.17.0.5:8086'
  3. bulk_query_gen -db=time_series_test_db -user=time_series_test_account -password=test_password -queries=30 -use-case=devops -query-type=1-host-12-hr -format=influx-http