libis-services 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/services/oracle_client.rb +3 -23
- data/lib/libis/services/rest_client.rb +35 -5
- data/lib/libis/services/rosetta/collection_info.rb +2 -0
- data/lib/libis/services/soap_client.rb +9 -0
- data/lib/libis/services/version.rb +1 -1
- data/spec/alma_service_spec.rb +65 -9
- data/spec/ie_data.rb +8 -22
- data/spec/primo_limo_spec.rb +358 -358
- data/spec/primo_search_spec.rb +29 -29
- data/spec/rosetta_collection_spec.rb +3 -0
- data/spec/rosetta_ie_spec.rb +1 -0
- data/spec/rosetta_sip_spec.rb +1 -1
- metadata +3 -4
data/spec/primo_search_spec.rb
CHANGED
@@ -6,34 +6,34 @@ require 'libis-tools'
|
|
6
6
|
describe 'Primo search service' do
|
7
7
|
let(:subject) { Libis::Services::Primo::Search.new }
|
8
8
|
|
9
|
-
context 'query' do
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
context 'find' do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
9
|
+
# context 'query' do
|
10
|
+
#
|
11
|
+
# it 'default return result' do
|
12
|
+
# result = subject.query 'foo'
|
13
|
+
# expect(result.keys).to eq [:count, :from, :to, :step, :data]
|
14
|
+
# expect(result[:data].size).to eq [result[:count], result[:step] - 1].min
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
# end
|
18
|
+
|
19
|
+
# context 'find' do
|
20
|
+
#
|
21
|
+
# it 'default return result' do
|
22
|
+
# result = subject.query 'foo'
|
23
|
+
# count = result[:count]
|
24
|
+
# result = subject.find 'foo'
|
25
|
+
# expect(result).to be_a Array
|
26
|
+
# expect(result.size).to eq count
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# it 'limit number of results' do
|
30
|
+
# result = subject.query 'foo', step: 1
|
31
|
+
# count = result[:count] / 2
|
32
|
+
# result = subject.find 'foo', max_count: count
|
33
|
+
# expect(result).to be_a Array
|
34
|
+
# expect(result.size).to eq count
|
35
|
+
# end
|
36
|
+
#
|
37
|
+
# end
|
38
38
|
|
39
39
|
end
|
@@ -110,6 +110,7 @@ describe 'Rosetta Collection Service' do
|
|
110
110
|
let(:collection_data) { {
|
111
111
|
name: 'My new test collection',
|
112
112
|
parent_id: parent_id,
|
113
|
+
collection_order: 0,
|
113
114
|
md_dc: {
|
114
115
|
type: 'descriptive',
|
115
116
|
sub_type: 'dc',
|
@@ -172,6 +173,8 @@ describe 'Rosetta Collection Service' do
|
|
172
173
|
end
|
173
174
|
|
174
175
|
it 'retrieve new collection' do
|
176
|
+
puts new_collection.to_hash
|
177
|
+
puts new_collection_data
|
175
178
|
expect(new_collection.to_hash).to match_collection(new_collection_data)
|
176
179
|
end
|
177
180
|
|
data/spec/rosetta_ie_spec.rb
CHANGED
data/spec/rosetta_sip_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
requirements: []
|
317
317
|
rubyforge_project:
|
318
|
-
rubygems_version: 2.
|
318
|
+
rubygems_version: 2.5.1
|
319
319
|
signing_key:
|
320
320
|
specification_version: 4
|
321
321
|
summary: LIBIS Services toolbox.
|
@@ -332,4 +332,3 @@ test_files:
|
|
332
332
|
- spec/rosetta_producer_spec.rb
|
333
333
|
- spec/rosetta_sip_spec.rb
|
334
334
|
- spec/spec_helper.rb
|
335
|
-
has_rdoc:
|