influxdb-client 1.10.0.pre.1356 → 1.10.0.pre.1373

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f44f6709dfa6aac3adca2d8f399f3a34aa0b4c8e76891395a9b89b928f29bc29
4
- data.tar.gz: 7467d6cc9cd23cf2e9a9d0511e6bfb3873b72c7131fb54459b87819f1ba2c617
3
+ metadata.gz: ee09c0b487146566919ffec3a0d716dd59fbe9b2e77c5239c69217bc224f74f7
4
+ data.tar.gz: 9b6037a92f586e4a9570ae73c99f6c8fdaff7775cc39fe45e44698d41668adaa
5
5
  SHA512:
6
- metadata.gz: 0c4b03378fcd81f238dc7ac51cc5ae783831406488e9515e4b09897c5fd191244b2ef76c3433e8c3196182ecbd633b595ee19a7aafd46db6fedc9d8120b605e3
7
- data.tar.gz: b37ae36f551635ef57db5a898d9b6ee1d4219735eff9782668e8d518cb8684e143d3ac496e84662f85cf4d5e1bdcfe73b29b0069070ff0a96a2ed8d7c823d6a9
6
+ metadata.gz: 369c9541a691d5a61017199cefdf8cf02d897991bf96d1883bae59853146b2500c0b7dd4d3c778ffe2940e875338de56145f7eb993417298227e8b04339135db
7
+ data.tar.gz: c58c29b507c07a93c0ab9011aa2c5c8fbd390bc179687ee655cfcc68e53985889d0bd4f0e7262639ee3e04a5a4fe415a10007aeb659eebac9e8c2ea94da4c229
@@ -324,6 +324,32 @@ class FluxCsvParserErrorTest < MiniTest::Test
324
324
  assert_equal 'Unable to parse CSV response. FluxTable definition was not found.', error.message
325
325
  end
326
326
 
327
+ def test_response_with_error
328
+ data = "#datatype,string,long,string,string,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string\n" \
329
+ "#group,false,false,true,true,true,true,false,false,true\n" \
330
+ "#default,t1,,,,,,,,\n" \
331
+ ",result,table,_field,_measurement,_start,_stop,_time,_value,tag\n" \
332
+ ",,0,value,python,2010-02-27T04:48:32.752600083Z,2020-02-27T16:48:32.752600083Z,2020-02-27T16:20:00Z,2,test1\n" \
333
+ ",,0,value,python,2010-02-27T04:48:32.752600083Z,2020-02-27T16:48:32.752600083Z,2020-02-27T16:21:40Z,2,test1\n" \
334
+ ",,0,value,python,2010-02-27T04:48:32.752600083Z,2020-02-27T16:48:32.752600083Z,2020-02-27T16:23:20Z,2,test1\n" \
335
+ ",,0,value,python,2010-02-27T04:48:32.752600083Z,2020-02-27T16:48:32.752600083Z,2020-02-27T16:25:00Z,2,test1\n" \
336
+ "\n" \
337
+ "#datatype,string,string\n" \
338
+ "#group,true,true\n" \
339
+ "#default,,\n" \
340
+ ",error,reference\n" \
341
+ ',"engine: unknown field type for value: xyz",'
342
+
343
+ parser = InfluxDB2::FluxCsvParser.new(data)
344
+
345
+ error = assert_raises InfluxDB2::FluxQueryError do
346
+ parser.parse
347
+ end
348
+
349
+ assert_equal 'engine: unknown field type for value: xyz', error.message
350
+ assert_equal 0, error.reference
351
+ end
352
+
327
353
  def test_multiple_queries
328
354
  data = "#datatype,string,long,string,string,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string\n" \
329
355
  "#group,false,false,true,true,true,true,false,false,true\n" \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0.pre.1356
4
+ version: 1.10.0.pre.1373
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler