openseek-api 0.17.4 → 0.18

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: d4505a02456e1b9eae6997fa15a68a8ea7177da8d0ef36a52b132ca259edbd0f
4
- data.tar.gz: 0a5c4c6bea8e8837aab53212246af5567ba7bf98575b6927c59d13fe6705e379
3
+ metadata.gz: 21865600a0ceaaff363c08e4e0e660a55411aa73b949a35d62b735124f91f2aa
4
+ data.tar.gz: 02c0d8727073ed1c3316940082aaa1b06e6e23fb024668a4caa53912a1e8e536
5
5
  SHA512:
6
- metadata.gz: 60f7f2978d93105ba37e1c1ac455084ba209400587907e5396807e69d2b6dbb242501d98febd3248bbec86bcc37e9a98d13f391be1eb841d261b5902889165dd
7
- data.tar.gz: 54eccd8957541cb323fa9c48b34e79f9ed539ea973b74aeaa8541c3c5b62ac83a2987479085caadca5af391714cdbfa5bb4efe1c07bde98f9aaa075d5639163b
6
+ metadata.gz: b2846dcdfa758be102e69803bb2f2bc9cb22ea42e74fe8f7414045d2f1a3587edb21aca746406b748ec15f00e328c98905ef0c0bb4eda36524234c4adbfe993d
7
+ data.tar.gz: 206c44dd96d672a6e2e24805cb2ffa02125ae0130654c2dc69e4f61ac6b0d9598301be9994cce04e4e95c8836463b8fc40898f0b3c3f581d5e41a6b4de104b25
Binary file
@@ -3,13 +3,13 @@ module Fairdom
3
3
  class ApplicationServerQuery < OpenbisQuery
4
4
  attr_reader :as_endpoint
5
5
 
6
- def initialize(as_endpoint, token)
7
- super(token)
6
+ def initialize(as_endpoint, token, is_test = false)
7
+ super(token, is_test)
8
8
  @as_endpoint = as_endpoint
9
9
  end
10
10
 
11
11
  def root_command_options
12
- " -endpoints '{%as%:%#{as_endpoint}%\,%sessionToken%:%#{token}%}'"
12
+ " -endpoints '{%as%:%#{as_endpoint}%\,%sessionToken%:%#{token}%,%is_test%:%#{is_test}%}'"
13
13
  end
14
14
  end
15
15
  end
@@ -3,10 +3,11 @@ module Fairdom
3
3
  class Authentication < OpenbisQuery
4
4
  attr_reader :as_endpoint, :username, :password
5
5
 
6
- def initialize(username, password, as_endpoint)
6
+ def initialize(username, password, as_endpoint, is_test = false)
7
7
  @username = username
8
8
  @password = password
9
9
  @as_endpoint = as_endpoint
10
+ @is_test = is_test
10
11
  end
11
12
 
12
13
  def login
@@ -18,7 +19,7 @@ module Fairdom
18
19
  end
19
20
 
20
21
  def root_command_options
21
- " -account '{%username%:%#{username}%\,%password%:%#{password}%}' -endpoints '{%as%:%#{as_endpoint}%}'"
22
+ " -account '{%username%:%#{username}%\,%password%:%#{password}%}' -endpoints '{%as%:%#{as_endpoint}%,%is_test%:%#{is_test}%}'"
22
23
  end
23
24
  end
24
25
  end
@@ -5,13 +5,13 @@ module Fairdom
5
5
  class DataStoreQuery < OpenbisQuery
6
6
  attr_reader :dss_endpoint
7
7
 
8
- def initialize(dss_endpoint, token)
9
- super(token)
8
+ def initialize(dss_endpoint, token, is_test = false)
9
+ super(token, is_test)
10
10
  @dss_endpoint = dss_endpoint
11
11
  end
12
12
 
13
13
  def root_command_options
14
- " -endpoints '{%dss%:%#{dss_endpoint}%\,%sessionToken%:%#{token}%}'"
14
+ " -endpoints '{%dss%:%#{dss_endpoint}%\,%sessionToken%:%#{token}%,%is_test%:%#{is_test}%}'"
15
15
  end
16
16
  end
17
17
  end
@@ -3,10 +3,11 @@ require 'fairdom/openbis_api/java_execution'
3
3
  module Fairdom
4
4
  module OpenbisApi
5
5
  class OpenbisQuery
6
- attr_reader :token
6
+ attr_reader :token, :is_test
7
7
 
8
- def initialize(token)
8
+ def initialize(token, is_test = false)
9
9
  @token = token
10
+ @is_test = is_test
10
11
  end
11
12
 
12
13
  def query(options)
@@ -1,6 +1,6 @@
1
1
  module Fairdom
2
2
  module OpenbisApi
3
- VERSION = '0.17.4'.freeze
4
- JAR_VERSION = '0.18'.freeze
3
+ VERSION = '0.18'.freeze
4
+ JAR_VERSION = '0.19'.freeze
5
5
  end
6
6
  end
@@ -9,13 +9,10 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
9
9
  include Fairdom::OpenbisApi
10
10
 
11
11
  def setup
12
- @as_endpoint = 'https://openbis-api.fair-dom.org/openbis/openbis'
13
12
  @as_endpoint = 'https://127.0.0.1:8443/openbis/openbis'
14
- username = 'apiuser'
15
- password = 'apiuser'
16
13
  username = 'seek'
17
14
  password = 'seek'
18
- @token = Authentication.new(username, password, @as_endpoint).login['token']
15
+ @token = Authentication.new(username, password, @as_endpoint, true).login['token']
19
16
 
20
17
  @options = { entityType: 'Experiment', queryType: 'PROPERTY', property: 'NAME', propertyValue: 'Low light diurnal' }
21
18
  end
@@ -24,11 +21,11 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
24
21
  @as_endpoint = 'https://127.0.0.1:8443/openbis/openbis'
25
22
  username = 'seek'
26
23
  password = 'seek'
27
- @token = Authentication.new(username, password, @as_endpoint).login['token']
24
+ @token = Authentication.new(username, password, @as_endpoint, true).login['token']
28
25
  end
29
26
 
30
27
  def test_query_property
31
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
28
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
32
29
  result = instance.query(@options)
33
30
  experiments = result['experiments']
34
31
  refute experiments.empty?
@@ -36,7 +33,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
36
33
 
37
34
  def test_query_for_spaces
38
35
  @options = { entityType: 'Space', queryType: 'ATTRIBUTE', attribute: 'PermID', attributeValue: '' }
39
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
36
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
40
37
  result = instance.query(@options)
41
38
  spaces = result['spaces']
42
39
  refute spaces.empty?
@@ -62,14 +59,14 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
62
59
  end
63
60
 
64
61
  def test_query_property_no_result
65
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
62
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
66
63
  @options[:propertyValue] = 'Some_value'
67
64
  result = instance.query(@options)
68
65
  assert result.empty?
69
66
  end
70
67
 
71
68
  def test_unrecognized_type
72
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
69
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
73
70
  invalid_type = 'SomeType'
74
71
  @options[:entityType] = 'Some_value'
75
72
  assert_raise OpenbisQueryException do
@@ -78,21 +75,21 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
78
75
  end
79
76
 
80
77
  def test_empty_property
81
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
78
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
82
79
  @options[:property] = ''
83
80
  result = instance.query(@options)
84
81
  assert result.empty?
85
82
  end
86
83
 
87
84
  def test_any_property
88
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
85
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
89
86
  @options[:property] = 'any_property'
90
87
  result = instance.query(@options)
91
88
  assert result.empty?
92
89
  end
93
90
 
94
91
  def test_query_perm_id_attribute
95
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
92
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
96
93
  @options[:queryType] = 'ATTRIBUTE'
97
94
  @options[:attribute] = 'permId'
98
95
  @options[:attributeValue] = '20180418141729157-47'
@@ -102,7 +99,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
102
99
  end
103
100
 
104
101
  def test_query_multiple_perm_id_attribute_values
105
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
102
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
106
103
  @options[:queryType] = 'ATTRIBUTE'
107
104
  @options[:attribute] = 'permId'
108
105
  @options[:attributeValue] = '20180424181519696-54,20180418141729157-47'
@@ -112,7 +109,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
112
109
  end
113
110
 
114
111
  def test_query_all_permid
115
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
112
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
116
113
  @options[:queryType] = 'ATTRIBUTE'
117
114
  @options[:attribute] = 'PermID'
118
115
  @options[:attributeValue] = ''
@@ -122,7 +119,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
122
119
 
123
120
  def test_query_for_dataset_gives_rich_metadata
124
121
  @options = { entityType: 'DataSet', queryType: 'ATTRIBUTE', attribute: 'PermID', attributeValue: '20180424182903704-59' }
125
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
122
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
126
123
  result = instance.query(@options)
127
124
 
128
125
  #puts result
@@ -145,7 +142,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
145
142
  puts 'no such test data'
146
143
  return
147
144
  @options = { entityType: 'DataSet', queryType: 'ATTRIBUTE', attribute: 'PermID', attributeValue: '20180418150033700-51' }
148
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
145
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
149
146
  result = instance.query(@options)
150
147
 
151
148
  puts result
@@ -171,7 +168,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
171
168
 
172
169
  @options = { entityType: 'DataSet', queryType: 'ALL' }
173
170
 
174
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
171
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
175
172
  result = instance.query(@options)
176
173
 
177
174
  # puts result
@@ -184,7 +181,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
184
181
 
185
182
  @options = { entityType: 'Sample', queryType: 'ALL' }
186
183
 
187
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
184
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
188
185
  result = instance.query(@options)
189
186
 
190
187
  # puts result
@@ -197,7 +194,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
197
194
 
198
195
  @options = { entityType: 'Space', queryType: 'ALL' }
199
196
 
200
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
197
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
201
198
  result = instance.query(@options)
202
199
 
203
200
  # puts result
@@ -210,7 +207,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
210
207
  local_setup
211
208
  @options = { entityType: 'Experiment', queryType: 'ALL' }
212
209
 
213
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
210
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
214
211
  result = instance.query(@options)
215
212
 
216
213
  puts result.to_json
@@ -223,7 +220,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
223
220
  local_setup
224
221
  @options = { entityType: 'ExperimentType', queryType: 'ALL' }
225
222
 
226
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
223
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
227
224
  result = instance.query(@options)
228
225
 
229
226
  puts result.to_json
@@ -236,7 +233,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
236
233
 
237
234
  @options = { entityType: 'SampleType', queryType: 'ALL' }
238
235
 
239
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
236
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
240
237
  result = instance.query(@options)
241
238
 
242
239
  # puts result
@@ -249,7 +246,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
249
246
 
250
247
  @options = { entityType: 'DataSetType', queryType: 'ALL' }
251
248
 
252
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
249
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
253
250
  result = instance.query(@options)
254
251
 
255
252
  # puts result
@@ -265,7 +262,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
265
262
 
266
263
  @options = { entityType: 'Sample', queryType: 'TYPE', typeCode: 'EXPERIMENTAL_STEP' }
267
264
 
268
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
265
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
269
266
  result = instance.query(@options)
270
267
 
271
268
  # puts result
@@ -279,7 +276,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
279
276
 
280
277
  @options = { entityType: 'DataSet', queryType: 'TYPE', typeCode: 'RAW_DATA' }
281
278
 
282
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
279
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
283
280
  result = instance.query(@options)
284
281
 
285
282
  # puts result
@@ -307,7 +304,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
307
304
  local_setup
308
305
  @options = { entityType: 'ExperimentType', queryType: "ATTRIBUTE", :attribute=>"CODE", :attributeValue=>"DEFAULT_EXPERIMENT" }
309
306
 
310
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
307
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
311
308
  result = instance.query(@options)
312
309
 
313
310
  puts result.to_json
@@ -323,7 +320,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
323
320
  @options = { entityType: 'Experiment', queryType: 'ATTRIBUTE',
324
321
  attribute: 'PermID', attributeValue: '20180424181519696-54'}
325
322
 
326
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
323
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
327
324
  result = instance.query(@options)
328
325
 
329
326
  puts result.to_json
@@ -340,7 +337,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
340
337
 
341
338
  @options = { entityType: 'Experiment', queryType: 'TYPE', typeCode: 'DEFAULT_EXPERIMENT' }
342
339
 
343
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
340
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
344
341
  result = instance.query(@options)
345
342
 
346
343
  puts result.to_json
@@ -350,7 +347,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
350
347
 
351
348
  @options = { entityType: 'Experiment', queryType: 'TYPE', typeCodes: 'DEFAULT_EXPERIMENT,MATERIALS' }
352
349
 
353
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
350
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
354
351
  result = instance.query(@options)
355
352
 
356
353
  # puts result
@@ -365,7 +362,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
365
362
 
366
363
  @options = { entityType: 'SampleType', queryType: 'SEMANTIC', predicateAccessionId: 'is_a', descriptorAccessionId: 'assay' }
367
364
 
368
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
365
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
369
366
  result = instance.query(@options)
370
367
 
371
368
  # puts result
@@ -380,7 +377,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
380
377
 
381
378
  @options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'EXPERIMENTAL_STEP' }
382
379
 
383
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
380
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
384
381
  result = instance.query(@options)
385
382
 
386
383
  # puts result
@@ -389,7 +386,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
389
386
 
390
387
  @options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'UNKNOWN' }
391
388
 
392
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
389
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
393
390
  result = instance.query(@options)
394
391
 
395
392
  # puts result
@@ -398,7 +395,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
398
395
 
399
396
  @options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'EXPERIMENTAL_STEP,UNKNOWN' }
400
397
 
401
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
398
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
402
399
  result = instance.query(@options)
403
400
 
404
401
  # puts result
@@ -409,7 +406,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
409
406
 
410
407
  def test_checking_sample_with_parent_and_children
411
408
  local_setup
412
- instance = ApplicationServerQuery.new(@as_endpoint, @token)
409
+ instance = ApplicationServerQuery.new(@as_endpoint, @token, true)
413
410
 
414
411
  @options[:entityType] = 'Sample'
415
412
  @options[:queryType] = 'ATTRIBUTE'
@@ -15,14 +15,14 @@ class AuthenticationTest < Test::Unit::TestCase
15
15
  end
16
16
 
17
17
  def test_successful_authentication
18
- au = Authentication.new(@username, @password, @as_endpoint)
18
+ au = Authentication.new(@username, @password, @as_endpoint, true)
19
19
  session_token = au.login
20
20
  assert_not_nil session_token['token']
21
21
  end
22
22
 
23
23
  def test_failed_authentication
24
24
  invalid_password = 'blabla'
25
- au = Authentication.new(@username, invalid_password, @as_endpoint)
25
+ au = Authentication.new(@username, invalid_password, @as_endpoint, true)
26
26
  assert_raise OpenbisQueryException do
27
27
  au.login
28
28
  end
@@ -13,14 +13,14 @@ class DataStoreDownloadTest < Test::Unit::TestCase
13
13
  @as_endpoint = 'https://openbis-api.fair-dom.org/openbis/openbis'
14
14
  username = 'apiuser'
15
15
  password = 'apiuser'
16
- @token = Authentication.new(username, password, @as_endpoint).login['token']
16
+ @token = Authentication.new(username, password, @as_endpoint, true).login['token']
17
17
 
18
18
  @dest_folder = File.dirname(__FILE__) + '/tmp/'
19
19
  FileUtils.mkdir_p @dest_folder unless File.exist?(@dest_folder)
20
20
  end
21
21
 
22
22
  def test_download_file
23
- instance = DataStoreDownload.new(@dss_endpoint, @token)
23
+ instance = DataStoreDownload.new(@dss_endpoint, @token, true)
24
24
  dest = @dest_folder + 'utf8.txt'
25
25
  options = { downloadType: 'file', permID: '20160210130359377-22', source: 'original/utf8.txt', dest: dest }
26
26
  FileUtils.remove_file(dest) if File.exist?(dest)
@@ -29,7 +29,7 @@ class DataStoreDownloadTest < Test::Unit::TestCase
29
29
  end
30
30
 
31
31
  def test_download_file_with_space_in_name
32
- instance = DataStoreDownload.new(@dss_endpoint, @token)
32
+ instance = DataStoreDownload.new(@dss_endpoint, @token, true)
33
33
  dest = @dest_folder + 'Genes List Nature Paper Test.docx'
34
34
  options = { downloadType: 'file', permID: '20160322172551664-35', source: 'original/Genes List Nature Paper Test.docx', dest: dest }
35
35
  FileUtils.remove_file(dest) if File.exist?(dest)
@@ -38,7 +38,7 @@ class DataStoreDownloadTest < Test::Unit::TestCase
38
38
  end
39
39
 
40
40
  def test_download_folder
41
- instance = DataStoreDownload.new(@dss_endpoint, @token)
41
+ instance = DataStoreDownload.new(@dss_endpoint, @token, true)
42
42
  source = 'original/DEFAULT'
43
43
  dest = @dest_folder
44
44
  options = { downloadType: 'folder', permID: '20160215111736723-31', source: source, dest: dest }
@@ -50,7 +50,7 @@ class DataStoreDownloadTest < Test::Unit::TestCase
50
50
  end
51
51
 
52
52
  def test_download_dataset_files
53
- instance = DataStoreDownload.new(@dss_endpoint, @token)
53
+ instance = DataStoreDownload.new(@dss_endpoint, @token, true)
54
54
  source = 'original'
55
55
  dest = @dest_folder
56
56
  options = { downloadType: 'dataset', permID: '20151217153943290-5', source: source, dest: dest }
@@ -13,19 +13,19 @@ class DataStoreQueryTest < Test::Unit::TestCase
13
13
  @as_endpoint = 'https://openbis-api.fair-dom.org/openbis/openbis'
14
14
  username = 'apiuser'
15
15
  password = 'apiuser'
16
- @token = Authentication.new(username, password, @as_endpoint).login['token']
16
+ @token = Authentication.new(username, password, @as_endpoint, true).login['token']
17
17
 
18
18
  @options = { entityType: 'DataSetFile', queryType: 'PROPERTY', property: 'SEEK_DATAFILE_ID', propertyValue: 'DataFile_1' }
19
19
  end
20
20
 
21
21
  def test_query
22
- instance = DataStoreQuery.new(@dss_endpoint, @token)
22
+ instance = DataStoreQuery.new(@dss_endpoint, @token, true)
23
23
  result = instance.query(@options)
24
24
  assert !result['datasetfiles'].empty?
25
25
  end
26
26
 
27
27
  def test_query_permid_attribute
28
- instance = DataStoreQuery.new(@dss_endpoint, @token)
28
+ instance = DataStoreQuery.new(@dss_endpoint, @token, true)
29
29
  @options[:queryType] = 'ATTRIBUTE'
30
30
  @options[:attribute] = 'DataSetPermID'
31
31
  @options[:attributeValue] = '20151217153943290-5'
@@ -35,7 +35,7 @@ class DataStoreQueryTest < Test::Unit::TestCase
35
35
  end
36
36
 
37
37
  def test_query_multiple_permid_attribute_values
38
- instance = DataStoreQuery.new(@dss_endpoint, @token)
38
+ instance = DataStoreQuery.new(@dss_endpoint, @token, true)
39
39
  @options[:queryType] = 'ATTRIBUTE'
40
40
  @options[:attribute] = 'DataSetPermID'
41
41
  @options[:attributeValue] = '20151217153943290-5,20160210130359377-22'
@@ -44,7 +44,7 @@ class DataStoreQueryTest < Test::Unit::TestCase
44
44
  end
45
45
 
46
46
  def test_query_all_permid
47
- instance = DataStoreQuery.new(@dss_endpoint, @token)
47
+ instance = DataStoreQuery.new(@dss_endpoint, @token, true)
48
48
  @options[:queryType] = 'ATTRIBUTE'
49
49
  @options[:attribute] = 'DataSetPermID'
50
50
  @options[:attributeValue] = ''
@@ -53,7 +53,7 @@ class DataStoreQueryTest < Test::Unit::TestCase
53
53
  end
54
54
 
55
55
  def test_query_no_result
56
- instance = DataStoreQuery.new(@dss_endpoint, @token)
56
+ instance = DataStoreQuery.new(@dss_endpoint, @token, true)
57
57
  @options[:propertyValue] = 'Some_value'
58
58
  result = instance.query(@options)
59
59
  assert result.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openseek-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.4
4
+ version: '0.18'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Owen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-28 00:00:00.000000000 Z
13
+ date: 2022-02-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: terrapin
@@ -119,7 +119,7 @@ files:
119
119
  - jars/lib/jackson-databind-2.9.2.jar
120
120
  - jars/lib/json-simple-1.1.1.jar
121
121
  - jars/lib/openBIS-API-V3-batteries-included-20.10.1-r1615554298.jar
122
- - jars/openseek-api-0.18.jar
122
+ - jars/openseek-api-0.19.jar
123
123
  - lib/fairdom/openbis_api/application_server_query.rb
124
124
  - lib/fairdom/openbis_api/authentication.rb
125
125
  - lib/fairdom/openbis_api/data_store_download.rb
Binary file