osdn-client 0.0.20160304 → 0.0.20160711

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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +182 -0
  4. data/docs/DefaultApi.md +115 -0
  5. data/docs/Group.md +23 -0
  6. data/docs/GroupToolFlags.md +17 -0
  7. data/docs/News.md +14 -0
  8. data/docs/Package.md +13 -0
  9. data/docs/Pong.md +11 -0
  10. data/docs/ProjectApi.md +1511 -0
  11. data/docs/ProjectFrsApi.md +888 -0
  12. data/docs/ProjectNewsApi.md +576 -0
  13. data/docs/RelFile.md +19 -0
  14. data/docs/Release.md +16 -0
  15. data/docs/SimpleChamber.md +11 -0
  16. data/docs/SimpleGroup.md +11 -0
  17. data/docs/SimpleUser.md +10 -0
  18. data/docs/Skill.md +11 -0
  19. data/docs/Token.md +12 -0
  20. data/docs/User.md +20 -0
  21. data/docs/UserApi.md +63 -0
  22. data/lib/osdn-client.rb +32 -9
  23. data/lib/osdn-client/api/default_api.rb +50 -39
  24. data/lib/osdn-client/api/project_api.rb +661 -773
  25. data/lib/osdn-client/api/project_frs_api.rb +350 -412
  26. data/lib/osdn-client/api/project_news_api.rb +217 -244
  27. data/lib/osdn-client/api/user_api.rb +35 -20
  28. data/lib/osdn-client/api_client.rb +74 -13
  29. data/lib/osdn-client/api_error.rb +23 -0
  30. data/lib/osdn-client/configuration.rb +45 -1
  31. data/lib/osdn-client/models/group.rb +103 -65
  32. data/lib/osdn-client/models/group_tool_flags.rb +91 -47
  33. data/lib/osdn-client/models/news.rb +85 -38
  34. data/lib/osdn-client/models/package.rb +83 -35
  35. data/lib/osdn-client/models/pong.rb +79 -29
  36. data/lib/osdn-client/models/rel_file.rb +95 -53
  37. data/lib/osdn-client/models/release.rb +89 -44
  38. data/lib/osdn-client/models/simple_chamber.rb +79 -29
  39. data/lib/osdn-client/models/simple_group.rb +79 -29
  40. data/lib/osdn-client/models/simple_user.rb +77 -26
  41. data/lib/osdn-client/models/skill.rb +79 -29
  42. data/lib/osdn-client/models/token.rb +81 -32
  43. data/lib/osdn-client/models/user.rb +97 -56
  44. data/lib/osdn-client/version.rb +24 -1
  45. data/osdn-client.gemspec +30 -7
  46. data/spec/api/default_api_spec.rb +73 -0
  47. data/spec/api/{ProjectApi_spec.rb → project_api_spec.rb} +187 -264
  48. data/spec/api/{ProjectFrsApi_spec.rb → project_frs_api_spec.rb} +103 -136
  49. data/spec/api/{ProjectNewsApi_spec.rb → project_news_api_spec.rb} +71 -88
  50. data/spec/api/user_api_spec.rb +58 -0
  51. data/spec/api_client_spec.rb +315 -0
  52. data/spec/configuration_spec.rb +48 -0
  53. data/spec/models/group_spec.rb +143 -0
  54. data/spec/models/group_tool_flags_spec.rb +107 -0
  55. data/spec/models/news_spec.rb +89 -0
  56. data/spec/models/package_spec.rb +83 -0
  57. data/spec/models/pong_spec.rb +71 -0
  58. data/spec/models/rel_file_spec.rb +119 -0
  59. data/spec/models/release_spec.rb +101 -0
  60. data/spec/models/simple_chamber_spec.rb +71 -0
  61. data/spec/models/simple_group_spec.rb +71 -0
  62. data/spec/models/simple_user_spec.rb +65 -0
  63. data/spec/models/skill_spec.rb +71 -0
  64. data/spec/models/token_spec.rb +77 -0
  65. data/spec/models/user_spec.rb +125 -0
  66. data/spec/spec_helper.rb +122 -0
  67. metadata +87 -59
  68. data/spec/api/DefaultApi_spec.rb +0 -58
  69. data/spec/api/UserApi_spec.rb +0 -39
  70. data/spec/models/GroupToolFlags_spec.rb +0 -124
  71. data/spec/models/Group_spec.rb +0 -184
  72. data/spec/models/News_spec.rb +0 -94
  73. data/spec/models/Package_spec.rb +0 -84
  74. data/spec/models/Pong_spec.rb +0 -64
  75. data/spec/models/RelFile_spec.rb +0 -144
  76. data/spec/models/Release_spec.rb +0 -114
  77. data/spec/models/SimpleChamber_spec.rb +0 -64
  78. data/spec/models/SimpleGroup_spec.rb +0 -64
  79. data/spec/models/SimpleUser_spec.rb +0 -54
  80. data/spec/models/Skill_spec.rb +0 -64
  81. data/spec/models/Token_spec.rb +0 -74
  82. data/spec/models/User_spec.rb +0 -154
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20160304
7
+ Contact: admin@osdn.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 OSDNClient::UserApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'UserApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = OSDNClient::UserApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of UserApi' do
41
+ it 'should create an instact of UserApi' do
42
+ expect(@instance).to be_instance_of(OSDNClient::UserApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for get_user
47
+ #
48
+ # Get user profile.
49
+ # @param id_or_name numeric user id or user name
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [User]
52
+ describe 'get_user 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
+ end
@@ -0,0 +1,315 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20160304
7
+ Contact: admin@osdn.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
+
26
+ describe OSDNClient::ApiClient do
27
+ context 'initialization' do
28
+ context 'URL stuff' do
29
+ context 'host' do
30
+ it 'removes http from host' do
31
+ OSDNClient.configure { |c| c.host = 'http://example.com' }
32
+ expect(OSDNClient::Configuration.default.host).to eq('example.com')
33
+ end
34
+
35
+ it 'removes https from host' do
36
+ OSDNClient.configure { |c| c.host = 'https://wookiee.com' }
37
+ expect(OSDNClient::ApiClient.default.config.host).to eq('wookiee.com')
38
+ end
39
+
40
+ it 'removes trailing path from host' do
41
+ OSDNClient.configure { |c| c.host = 'hobo.com/v4' }
42
+ expect(OSDNClient::Configuration.default.host).to eq('hobo.com')
43
+ end
44
+ end
45
+
46
+ context 'base_path' do
47
+ it "prepends a slash to base_path" do
48
+ OSDNClient.configure { |c| c.base_path = 'v4/dog' }
49
+ expect(OSDNClient::Configuration.default.base_path).to eq('/v4/dog')
50
+ end
51
+
52
+ it "doesn't prepend a slash if one is already there" do
53
+ OSDNClient.configure { |c| c.base_path = '/v4/dog' }
54
+ expect(OSDNClient::Configuration.default.base_path).to eq('/v4/dog')
55
+ end
56
+
57
+ it "ends up as a blank string if nil" do
58
+ OSDNClient.configure { |c| c.base_path = nil }
59
+ expect(OSDNClient::Configuration.default.base_path).to eq('')
60
+ end
61
+ end
62
+ end
63
+ end
64
+
65
+ describe "#update_params_for_auth!" do
66
+ it "sets header api-key parameter with prefix" do
67
+ OSDNClient.configure do |c|
68
+ c.api_key_prefix['api_key'] = 'PREFIX'
69
+ c.api_key['api_key'] = 'special-key'
70
+ end
71
+
72
+ api_client = OSDNClient::ApiClient.new
73
+
74
+ config2 = OSDNClient::Configuration.new do |c|
75
+ c.api_key_prefix['api_key'] = 'PREFIX2'
76
+ c.api_key['api_key'] = 'special-key2'
77
+ end
78
+ api_client2 = OSDNClient::ApiClient.new(config2)
79
+
80
+ auth_names = ['api_key', 'unknown']
81
+
82
+ header_params = {}
83
+ query_params = {}
84
+ api_client.update_params_for_auth! header_params, query_params, auth_names
85
+ expect(header_params).to eq({'api_key' => 'PREFIX special-key'})
86
+ expect(query_params).to eq({})
87
+
88
+ header_params = {}
89
+ query_params = {}
90
+ api_client2.update_params_for_auth! header_params, query_params, auth_names
91
+ expect(header_params).to eq({'api_key' => 'PREFIX2 special-key2'})
92
+ expect(query_params).to eq({})
93
+ end
94
+
95
+ it "sets header api-key parameter without prefix" do
96
+ OSDNClient.configure do |c|
97
+ c.api_key_prefix['api_key'] = nil
98
+ c.api_key['api_key'] = 'special-key'
99
+ end
100
+
101
+ api_client = OSDNClient::ApiClient.new
102
+
103
+ header_params = {}
104
+ query_params = {}
105
+ auth_names = ['api_key', 'unknown']
106
+ api_client.update_params_for_auth! header_params, query_params, auth_names
107
+ expect(header_params).to eq({'api_key' => 'special-key'})
108
+ expect(query_params).to eq({})
109
+ end
110
+ end
111
+
112
+ describe "params_encoding in #build_request" do
113
+ let(:config) { OSDNClient::Configuration.new }
114
+ let(:api_client) { OSDNClient::ApiClient.new(config) }
115
+
116
+ it "defaults to nil" do
117
+ expect(OSDNClient::Configuration.default.params_encoding).to eq(nil)
118
+ expect(config.params_encoding).to eq(nil)
119
+
120
+ request = api_client.build_request(:get, '/test')
121
+ expect(request.options[:params_encoding]).to eq(nil)
122
+ end
123
+
124
+ it "can be customized" do
125
+ config.params_encoding = :multi
126
+ request = api_client.build_request(:get, '/test')
127
+ expect(request.options[:params_encoding]).to eq(:multi)
128
+ end
129
+ end
130
+
131
+ describe "timeout in #build_request" do
132
+ let(:config) { OSDNClient::Configuration.new }
133
+ let(:api_client) { OSDNClient::ApiClient.new(config) }
134
+
135
+ it "defaults to 0" do
136
+ expect(OSDNClient::Configuration.default.timeout).to eq(0)
137
+ expect(config.timeout).to eq(0)
138
+
139
+ request = api_client.build_request(:get, '/test')
140
+ expect(request.options[:timeout]).to eq(0)
141
+ end
142
+
143
+ it "can be customized" do
144
+ config.timeout = 100
145
+ request = api_client.build_request(:get, '/test')
146
+ expect(request.options[:timeout]).to eq(100)
147
+ end
148
+ end
149
+
150
+ describe "#deserialize" do
151
+ it "handles Array<Integer>" do
152
+ api_client = OSDNClient::ApiClient.new
153
+ headers = {'Content-Type' => 'application/json'}
154
+ response = double('response', headers: headers, body: '[12, 34]')
155
+ data = api_client.deserialize(response, 'Array<Integer>')
156
+ expect(data).to be_instance_of(Array)
157
+ expect(data).to eq([12, 34])
158
+ end
159
+
160
+ it "handles Array<Array<Integer>>" do
161
+ api_client = OSDNClient::ApiClient.new
162
+ headers = {'Content-Type' => 'application/json'}
163
+ response = double('response', headers: headers, body: '[[12, 34], [56]]')
164
+ data = api_client.deserialize(response, 'Array<Array<Integer>>')
165
+ expect(data).to be_instance_of(Array)
166
+ expect(data).to eq([[12, 34], [56]])
167
+ end
168
+
169
+ it "handles Hash<String, String>" do
170
+ api_client = OSDNClient::ApiClient.new
171
+ headers = {'Content-Type' => 'application/json'}
172
+ response = double('response', headers: headers, body: '{"message": "Hello"}')
173
+ data = api_client.deserialize(response, 'Hash<String, String>')
174
+ expect(data).to be_instance_of(Hash)
175
+ expect(data).to eq({:message => 'Hello'})
176
+ end
177
+
178
+ it "handles Hash<String, Pet>" do
179
+ api_client = OSDNClient::ApiClient.new
180
+ headers = {'Content-Type' => 'application/json'}
181
+ response = double('response', headers: headers, body: '{"pet": {"id": 1}}')
182
+ data = api_client.deserialize(response, 'Hash<String, Pet>')
183
+ expect(data).to be_instance_of(Hash)
184
+ expect(data.keys).to eq([:pet])
185
+
186
+ pet = data[:pet]
187
+ expect(pet).to be_instance_of(OSDNClient::Pet)
188
+ expect(pet.id).to eq(1)
189
+ end
190
+
191
+ it "handles Hash<String, Hash<String, Pet>>" do
192
+ api_client = OSDNClient::ApiClient.new
193
+ headers = {'Content-Type' => 'application/json'}
194
+ response = double('response', headers: headers, body: '{"data": {"pet": {"id": 1}}}')
195
+ result = api_client.deserialize(response, 'Hash<String, Hash<String, Pet>>')
196
+ expect(result).to be_instance_of(Hash)
197
+ expect(result.keys).to match_array([:data])
198
+
199
+ data = result[:data]
200
+ expect(data).to be_instance_of(Hash)
201
+ expect(data.keys).to match_array([:pet])
202
+
203
+ pet = data[:pet]
204
+ expect(pet).to be_instance_of(OSDNClient::Pet)
205
+ expect(pet.id).to eq(1)
206
+ end
207
+ end
208
+
209
+ describe "#object_to_hash" do
210
+ it "ignores nils and includes empty arrays" do
211
+ api_client = OSDNClient::ApiClient.new
212
+ pet = OSDNClient::Pet.new
213
+ pet.id = 1
214
+ pet.name = ''
215
+ pet.status = nil
216
+ pet.photo_urls = nil
217
+ pet.tags = []
218
+ expected = {id: 1, name: '', tags: []}
219
+ expect(api_client.object_to_hash(pet)).to eq(expected)
220
+ end
221
+ end
222
+
223
+ describe "#build_collection_param" do
224
+ let(:param) { ['aa', 'bb', 'cc'] }
225
+ let(:api_client) { OSDNClient::ApiClient.new }
226
+
227
+ it "works for csv" do
228
+ expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
229
+ end
230
+
231
+ it "works for ssv" do
232
+ expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
233
+ end
234
+
235
+ it "works for tsv" do
236
+ expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
237
+ end
238
+
239
+ it "works for pipes" do
240
+ expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
241
+ end
242
+
243
+ it "works for multi" do
244
+ expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
245
+ end
246
+
247
+ it "fails for invalid collection format" do
248
+ expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
249
+ end
250
+ end
251
+
252
+ describe "#json_mime?" do
253
+ let(:api_client) { OSDNClient::ApiClient.new }
254
+
255
+ it "works" do
256
+ expect(api_client.json_mime?(nil)).to eq false
257
+ expect(api_client.json_mime?('')).to eq false
258
+
259
+ expect(api_client.json_mime?('application/json')).to eq true
260
+ expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
261
+ expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
262
+
263
+ expect(api_client.json_mime?('application/xml')).to eq false
264
+ expect(api_client.json_mime?('text/plain')).to eq false
265
+ expect(api_client.json_mime?('application/jsonp')).to eq false
266
+ end
267
+ end
268
+
269
+ describe "#select_header_accept" do
270
+ let(:api_client) { OSDNClient::ApiClient.new }
271
+
272
+ it "works" do
273
+ expect(api_client.select_header_accept(nil)).to be_nil
274
+ expect(api_client.select_header_accept([])).to be_nil
275
+
276
+ expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
277
+ expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
278
+ expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
279
+
280
+ expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
281
+ expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
282
+ end
283
+ end
284
+
285
+ describe "#select_header_content_type" do
286
+ let(:api_client) { OSDNClient::ApiClient.new }
287
+
288
+ it "works" do
289
+ expect(api_client.select_header_content_type(nil)).to eq('application/json')
290
+ expect(api_client.select_header_content_type([])).to eq('application/json')
291
+
292
+ expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
293
+ expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
294
+ expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
295
+ expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
296
+ expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
297
+ end
298
+ end
299
+
300
+ describe "#sanitize_filename" do
301
+ let(:api_client) { OSDNClient::ApiClient.new }
302
+
303
+ it "works" do
304
+ expect(api_client.sanitize_filename('sun')).to eq('sun')
305
+ expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
306
+ expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
307
+ expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
308
+ expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
309
+ expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
310
+ expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
311
+ expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
312
+ expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
313
+ end
314
+ end
315
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20160304
7
+ Contact: admin@osdn.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
+
26
+ describe OSDNClient::Configuration do
27
+ let(:config) { OSDNClient::Configuration.default }
28
+
29
+ before(:each) do
30
+ OSDNClient.configure do |c|
31
+ c.host = 'petstore.swagger.io'
32
+ c.base_path = 'v2'
33
+ end
34
+ end
35
+
36
+ describe '#base_url' do
37
+ it 'should have the default value' do
38
+ expect(config.base_url).to eq('http://petstore.swagger.io/v2')
39
+ end
40
+
41
+ it 'should remove trailing slashes' do
42
+ [nil, '', '/', '//'].each do |base_path|
43
+ config.base_path = base_path
44
+ expect(config.base_url).to eq('http://petstore.swagger.io')
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,143 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.jp/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.jp/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20160304
7
+ Contact: admin@osdn.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
+ require 'date'
27
+
28
+ # Unit tests for OSDNClient::Group
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'Group' do
32
+ before do
33
+ # run before each test
34
+ @instance = OSDNClient::Group.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of Group' do
42
+ it 'should create an instact of Group' do
43
+ expect(@instance).to be_instance_of(OSDNClient::Group)
44
+ end
45
+ end
46
+ describe 'test attribute "id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "name"' 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
+ describe 'test attribute "display_name"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "last_update"' 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
+ describe 'test attribute "description"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "description_html"' 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
+ describe 'test attribute "start_date"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ describe 'test attribute "license"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "license_other"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "url"' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
106
+ describe 'test attribute "homepage"' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ describe 'test attribute "logo_image"' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ end
116
+ end
117
+
118
+ describe 'test attribute "banner_image"' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ end
122
+ end
123
+
124
+ describe 'test attribute "thumbnail_image"' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ end
128
+ end
129
+
130
+ describe 'test attribute "tools"' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
136
+ describe 'test attribute "members"' do
137
+ it 'should work' do
138
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
139
+ end
140
+ end
141
+
142
+ end
143
+