triglav_client 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +201 -0
- data/README.md +136 -0
- data/Rakefile +1 -0
- data/docs/AggregatedResourceEachResponse.md +11 -0
- data/docs/AuthApi.md +150 -0
- data/docs/BulkinsertResponse.md +8 -0
- data/docs/Credential.md +10 -0
- data/docs/ErrorModel.md +9 -0
- data/docs/JobEachResponse.md +12 -0
- data/docs/JobMessageEachResponse.md +11 -0
- data/docs/JobMessagesApi.md +117 -0
- data/docs/JobRequest.md +12 -0
- data/docs/JobResponse.md +14 -0
- data/docs/JobsApi.md +217 -0
- data/docs/LastJobMessageIdResponse.md +8 -0
- data/docs/LastMessageIdResponse.md +8 -0
- data/docs/MessageEachResponse.md +16 -0
- data/docs/MessageFetchRequest.md +10 -0
- data/docs/MessageRequest.md +13 -0
- data/docs/MessageResponse.md +16 -0
- data/docs/MessagesApi.md +170 -0
- data/docs/ResourceEachResponse.md +13 -0
- data/docs/ResourceRequest.md +15 -0
- data/docs/ResourceResponse.md +17 -0
- data/docs/ResourcesApi.md +335 -0
- data/docs/TokenResponse.md +9 -0
- data/docs/UserEachResponse.md +11 -0
- data/docs/UserRequest.md +13 -0
- data/docs/UserResponse.md +15 -0
- data/docs/UsersApi.md +274 -0
- data/example/example.rb +40 -0
- data/git_push.sh +67 -0
- data/lib/triglav_client.rb +77 -0
- data/lib/triglav_client/api/auth_api.rb +196 -0
- data/lib/triglav_client/api/job_messages_api.rb +153 -0
- data/lib/triglav_client/api/jobs_api.rb +257 -0
- data/lib/triglav_client/api/messages_api.rb +208 -0
- data/lib/triglav_client/api/resources_api.rb +379 -0
- data/lib/triglav_client/api/users_api.rb +318 -0
- data/lib/triglav_client/api_client.rb +379 -0
- data/lib/triglav_client/api_error.rb +47 -0
- data/lib/triglav_client/configuration.rb +214 -0
- data/lib/triglav_client/models/aggregated_resource_each_response.rb +230 -0
- data/lib/triglav_client/models/bulkinsert_response.rb +200 -0
- data/lib/triglav_client/models/credential.rb +252 -0
- data/lib/triglav_client/models/error_model.rb +212 -0
- data/lib/triglav_client/models/job_each_response.rb +235 -0
- data/lib/triglav_client/models/job_message_each_response.rb +229 -0
- data/lib/triglav_client/models/job_request.rb +241 -0
- data/lib/triglav_client/models/job_response.rb +259 -0
- data/lib/triglav_client/models/last_job_message_id_response.rb +200 -0
- data/lib/triglav_client/models/last_message_id_response.rb +200 -0
- data/lib/triglav_client/models/message_each_response.rb +281 -0
- data/lib/triglav_client/models/message_fetch_request.rb +223 -0
- data/lib/triglav_client/models/message_request.rb +254 -0
- data/lib/triglav_client/models/message_response.rb +281 -0
- data/lib/triglav_client/models/resource_each_response.rb +250 -0
- data/lib/triglav_client/models/resource_request.rb +269 -0
- data/lib/triglav_client/models/resource_response.rb +287 -0
- data/lib/triglav_client/models/token_response.rb +208 -0
- data/lib/triglav_client/models/user_each_response.rb +262 -0
- data/lib/triglav_client/models/user_request.rb +280 -0
- data/lib/triglav_client/models/user_response.rb +300 -0
- data/lib/triglav_client/version.rb +26 -0
- data/spec/api/auth_api_spec.rb +80 -0
- data/spec/api/job_messages_api_spec.rb +71 -0
- data/spec/api/jobs_api_spec.rb +93 -0
- data/spec/api/messages_api_spec.rb +74 -0
- data/spec/api/resources_api_spec.rb +109 -0
- data/spec/api/users_api_spec.rb +106 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/aggregated_resource_each_response_spec.rb +71 -0
- data/spec/models/bulkinsert_response_spec.rb +53 -0
- data/spec/models/credential_spec.rb +69 -0
- data/spec/models/error_model_spec.rb +59 -0
- data/spec/models/job_each_response_spec.rb +77 -0
- data/spec/models/job_message_each_response_spec.rb +65 -0
- data/spec/models/job_request_spec.rb +71 -0
- data/spec/models/job_response_spec.rb +89 -0
- data/spec/models/last_job_message_id_response_spec.rb +53 -0
- data/spec/models/last_message_id_response_spec.rb +53 -0
- data/spec/models/message_each_response_spec.rb +89 -0
- data/spec/models/message_fetch_request_spec.rb +65 -0
- data/spec/models/message_request_spec.rb +59 -0
- data/spec/models/message_response_spec.rb +89 -0
- data/spec/models/resource_each_response_spec.rb +71 -0
- data/spec/models/resource_request_spec.rb +83 -0
- data/spec/models/resource_response_spec.rb +101 -0
- data/spec/models/token_response_spec.rb +59 -0
- data/spec/models/user_each_response_spec.rb +75 -0
- data/spec/models/user_request_spec.rb +87 -0
- data/spec/models/user_response_spec.rb +99 -0
- data/spec/spec_helper.rb +122 -0
- data/triglav_client.gemspec +55 -0
- metadata +351 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
module TriglavClient
|
25
|
+
VERSION = "0.1.32"
|
26
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API Reference
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for TriglavClient::AuthApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'AuthApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = TriglavClient::AuthApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of AuthApi' do
|
41
|
+
it 'should create an instact of AuthApi' do
|
42
|
+
expect(@instance).to be_instance_of(TriglavClient::AuthApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_token
|
47
|
+
#
|
48
|
+
# Creates a new token
|
49
|
+
# @param credential
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [TokenResponse]
|
52
|
+
describe 'create_token test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for delete_token
|
59
|
+
#
|
60
|
+
# Deletes (Expires) a token of header
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @return [nil]
|
63
|
+
describe 'delete_token test' do
|
64
|
+
it "should work" do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for me
|
70
|
+
#
|
71
|
+
# Returns a user property of the access_token
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @return [UserResponse]
|
74
|
+
describe 'me test' do
|
75
|
+
it "should work" do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API Reference
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for TriglavClient::JobMessagesApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'JobMessagesApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = TriglavClient::JobMessagesApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of JobMessagesApi' do
|
41
|
+
it 'should create an instact of JobMessagesApi' do
|
42
|
+
expect(@instance).to be_instance_of(TriglavClient::JobMessagesApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for fetch_job_messages
|
47
|
+
#
|
48
|
+
# Fetch Job messages
|
49
|
+
# @param offset Offset (Greater than or equal to) ID for Messages to fetch from
|
50
|
+
# @param job_id Job ID
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Integer] :limit Number of limits
|
53
|
+
# @return [Array<JobMessageEachResponse>]
|
54
|
+
describe 'fetch_job_messages test' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for get_last_job_message_id
|
61
|
+
#
|
62
|
+
# Get the current last message id which would be used as a first offset to fetch messages
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [LastJobMessageIdResponse]
|
65
|
+
describe 'get_last_job_message_id test' do
|
66
|
+
it "should work" do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API Reference
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for TriglavClient::JobsApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'JobsApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = TriglavClient::JobsApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of JobsApi' do
|
41
|
+
it 'should create an instact of JobsApi' do
|
42
|
+
expect(@instance).to be_instance_of(TriglavClient::JobsApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_or_update_job
|
47
|
+
#
|
48
|
+
# Creates or Updates a single job
|
49
|
+
# @param job Job parameters
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [JobResponse]
|
52
|
+
describe 'create_or_update_job test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for delete_job
|
59
|
+
#
|
60
|
+
# Deletes single job
|
61
|
+
# @param id_or_uri ID or URI of job to fetch
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [nil]
|
64
|
+
describe 'delete_job test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for get_job
|
71
|
+
#
|
72
|
+
# Returns a single job
|
73
|
+
# @param id_or_uri ID or URI of job to fetch
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [JobResponse]
|
76
|
+
describe 'get_job test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for list_jobs
|
83
|
+
#
|
84
|
+
# Returns all jobs
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [Array<JobEachResponse>]
|
87
|
+
describe 'list_jobs test' do
|
88
|
+
it "should work" do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API Reference
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for TriglavClient::MessagesApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'MessagesApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = TriglavClient::MessagesApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of MessagesApi' do
|
41
|
+
it 'should create an instact of MessagesApi' do
|
42
|
+
expect(@instance).to be_instance_of(TriglavClient::MessagesApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for fetch_messages
|
47
|
+
#
|
48
|
+
# Fetches messages
|
49
|
+
# @param offset Offset (Greater than or equal to) ID for Messages to fetch from
|
50
|
+
# @param resource_uri URI of Resource
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :datetime Datetime formatted by ISO 8601. LIKE search is used.
|
53
|
+
# @return [Array<MessageEachResponse>]
|
54
|
+
describe 'fetch_messages test' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for send_message
|
61
|
+
#
|
62
|
+
# Enqueues a new message
|
63
|
+
# @param resource_uri URI of Resource
|
64
|
+
# @param datetime Datetime formatted by ISO 8601
|
65
|
+
# @param message Message to add
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [MessageResponse]
|
68
|
+
describe 'send_message test' do
|
69
|
+
it "should work" do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
=begin
|
2
|
+
#Triglav API
|
3
|
+
|
4
|
+
#Triglav API Reference
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: triglav_admin_my@dena.jp
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for TriglavClient::ResourcesApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'ResourcesApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = TriglavClient::ResourcesApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of ResourcesApi' do
|
41
|
+
it 'should create an instact of ResourcesApi' do
|
42
|
+
expect(@instance).to be_instance_of(TriglavClient::ResourcesApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_resource
|
47
|
+
#
|
48
|
+
# Creates a new resource
|
49
|
+
# @param resource Resource to add
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [ResourceResponse]
|
52
|
+
describe 'create_resource test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for delete_resource
|
59
|
+
#
|
60
|
+
# Deletes single resource
|
61
|
+
# @param id_or_uri ID or URI of resource to fetch
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [nil]
|
64
|
+
describe 'delete_resource test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for get_resource
|
71
|
+
#
|
72
|
+
# Returns a single resource
|
73
|
+
# @param id_or_uri ID or URI of resource to fetch
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [ResourceResponse]
|
76
|
+
describe 'get_resource test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for list_resources
|
83
|
+
#
|
84
|
+
# Returns all resources from the system
|
85
|
+
# @param uri_prefix Prefix of Resource URI
|
86
|
+
# @param consumable Consuamble
|
87
|
+
# @param notifiable Notifiable
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Array<ResourceEachResponse>]
|
90
|
+
describe 'list_resources test' do
|
91
|
+
it "should work" do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# unit tests for update_resource
|
97
|
+
#
|
98
|
+
# Updates a single resource
|
99
|
+
# @param id_or_uri ID or URI of resource to fetch
|
100
|
+
# @param resource Resource parameters to update
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [ResourceResponse]
|
103
|
+
describe 'update_resource test' do
|
104
|
+
it "should work" do
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|