osdn-client 0.0.20160304
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/osdn-client.rb +45 -0
- data/lib/osdn-client/api/default_api.rb +148 -0
- data/lib/osdn-client/api/project_api.rb +1752 -0
- data/lib/osdn-client/api/project_frs_api.rb +1033 -0
- data/lib/osdn-client/api/project_news_api.rb +673 -0
- data/lib/osdn-client/api/user_api.rb +76 -0
- data/lib/osdn-client/api_client.rb +318 -0
- data/lib/osdn-client/api_error.rb +24 -0
- data/lib/osdn-client/configuration.rb +177 -0
- data/lib/osdn-client/models/group.rb +298 -0
- data/lib/osdn-client/models/group_tool_flags.rb +236 -0
- data/lib/osdn-client/models/news.rb +206 -0
- data/lib/osdn-client/models/package.rb +198 -0
- data/lib/osdn-client/models/pong.rb +176 -0
- data/lib/osdn-client/models/rel_file.rb +256 -0
- data/lib/osdn-client/models/release.rb +228 -0
- data/lib/osdn-client/models/simple_chamber.rb +176 -0
- data/lib/osdn-client/models/simple_group.rb +176 -0
- data/lib/osdn-client/models/simple_user.rb +166 -0
- data/lib/osdn-client/models/skill.rb +176 -0
- data/lib/osdn-client/models/token.rb +186 -0
- data/lib/osdn-client/models/user.rb +272 -0
- data/lib/osdn-client/version.rb +3 -0
- data/osdn-client.gemspec +32 -0
- data/spec/api/DefaultApi_spec.rb +58 -0
- data/spec/api/ProjectApi_spec.rb +472 -0
- data/spec/api/ProjectFrsApi_spec.rb +285 -0
- data/spec/api/ProjectNewsApi_spec.rb +194 -0
- data/spec/api/UserApi_spec.rb +39 -0
- data/spec/models/GroupToolFlags_spec.rb +124 -0
- data/spec/models/Group_spec.rb +184 -0
- data/spec/models/News_spec.rb +94 -0
- data/spec/models/Package_spec.rb +84 -0
- data/spec/models/Pong_spec.rb +64 -0
- data/spec/models/RelFile_spec.rb +144 -0
- data/spec/models/Release_spec.rb +114 -0
- data/spec/models/SimpleChamber_spec.rb +64 -0
- data/spec/models/SimpleGroup_spec.rb +64 -0
- data/spec/models/SimpleUser_spec.rb +54 -0
- data/spec/models/Skill_spec.rb +64 -0
- data/spec/models/Token_spec.rb +74 -0
- data/spec/models/User_spec.rb +154 -0
- metadata +284 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for OSDNClient::
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'Pong' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = OSDNClient::Pong.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of Pong' do
|
19
|
+
it 'should create an instact of Pong' do
|
20
|
+
@instance.should be_a(OSDNClient::Pong)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "time"' do
|
24
|
+
it 'should work' do
|
25
|
+
# assertion here
|
26
|
+
# should be_a()
|
27
|
+
# should be_nil
|
28
|
+
# should ==
|
29
|
+
# should_not ==
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "loggedin"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here
|
36
|
+
# should be_a()
|
37
|
+
# should be_nil
|
38
|
+
# should ==
|
39
|
+
# should_not ==
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'test attribute "login_id"' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "login_name"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here
|
56
|
+
# should be_a()
|
57
|
+
# should be_nil
|
58
|
+
# should ==
|
59
|
+
# should_not ==
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
@@ -0,0 +1,144 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for OSDNClient::
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'RelFile' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = OSDNClient::RelFile.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of RelFile' do
|
19
|
+
it 'should create an instact of RelFile' do
|
20
|
+
@instance.should be_a(OSDNClient::RelFile)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' do
|
24
|
+
it 'should work' do
|
25
|
+
# assertion here
|
26
|
+
# should be_a()
|
27
|
+
# should be_nil
|
28
|
+
# should ==
|
29
|
+
# should_not ==
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "name"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here
|
36
|
+
# should be_a()
|
37
|
+
# should be_nil
|
38
|
+
# should ==
|
39
|
+
# should_not ==
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'test attribute "date"' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "url"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here
|
56
|
+
# should be_a()
|
57
|
+
# should be_nil
|
58
|
+
# should ==
|
59
|
+
# should_not ==
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'test attribute "visibility"' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here
|
66
|
+
# should be_a()
|
67
|
+
# should be_nil
|
68
|
+
# should ==
|
69
|
+
# should_not ==
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'test attribute "cascaded_visibility"' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here
|
76
|
+
# should be_a()
|
77
|
+
# should be_nil
|
78
|
+
# should ==
|
79
|
+
# should_not ==
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "release_id"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here
|
86
|
+
# should be_a()
|
87
|
+
# should be_nil
|
88
|
+
# should ==
|
89
|
+
# should_not ==
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe 'test attribute "size"' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here
|
96
|
+
# should be_a()
|
97
|
+
# should be_nil
|
98
|
+
# should ==
|
99
|
+
# should_not ==
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe 'test attribute "digest_md5"' do
|
104
|
+
it 'should work' do
|
105
|
+
# assertion here
|
106
|
+
# should be_a()
|
107
|
+
# should be_nil
|
108
|
+
# should ==
|
109
|
+
# should_not ==
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "digest_sha1"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here
|
116
|
+
# should be_a()
|
117
|
+
# should be_nil
|
118
|
+
# should ==
|
119
|
+
# should_not ==
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe 'test attribute "digest_sha256"' do
|
124
|
+
it 'should work' do
|
125
|
+
# assertion here
|
126
|
+
# should be_a()
|
127
|
+
# should be_nil
|
128
|
+
# should ==
|
129
|
+
# should_not ==
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
describe 'test attribute "download_count"' do
|
134
|
+
it 'should work' do
|
135
|
+
# assertion here
|
136
|
+
# should be_a()
|
137
|
+
# should be_nil
|
138
|
+
# should ==
|
139
|
+
# should_not ==
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
144
|
+
|
@@ -0,0 +1,114 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for OSDNClient::
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'Release' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = OSDNClient::Release.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of Release' do
|
19
|
+
it 'should create an instact of Release' do
|
20
|
+
@instance.should be_a(OSDNClient::Release)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' do
|
24
|
+
it 'should work' do
|
25
|
+
# assertion here
|
26
|
+
# should be_a()
|
27
|
+
# should be_nil
|
28
|
+
# should ==
|
29
|
+
# should_not ==
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "name"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here
|
36
|
+
# should be_a()
|
37
|
+
# should be_nil
|
38
|
+
# should ==
|
39
|
+
# should_not ==
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'test attribute "url"' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "visibility"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here
|
56
|
+
# should be_a()
|
57
|
+
# should be_nil
|
58
|
+
# should ==
|
59
|
+
# should_not ==
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'test attribute "cascaded_visibility"' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here
|
66
|
+
# should be_a()
|
67
|
+
# should be_nil
|
68
|
+
# should ==
|
69
|
+
# should_not ==
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'test attribute "package_id"' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here
|
76
|
+
# should be_a()
|
77
|
+
# should be_nil
|
78
|
+
# should ==
|
79
|
+
# should_not ==
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "file_count"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here
|
86
|
+
# should be_a()
|
87
|
+
# should be_nil
|
88
|
+
# should ==
|
89
|
+
# should_not ==
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe 'test attribute "is_draft"' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here
|
96
|
+
# should be_a()
|
97
|
+
# should be_nil
|
98
|
+
# should ==
|
99
|
+
# should_not ==
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe 'test attribute "files"' do
|
104
|
+
it 'should work' do
|
105
|
+
# assertion here
|
106
|
+
# should be_a()
|
107
|
+
# should be_nil
|
108
|
+
# should ==
|
109
|
+
# should_not ==
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
114
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for OSDNClient::
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'SimpleChamber' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = OSDNClient::SimpleChamber.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of SimpleChamber' do
|
19
|
+
it 'should create an instact of SimpleChamber' do
|
20
|
+
@instance.should be_a(OSDNClient::SimpleChamber)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' do
|
24
|
+
it 'should work' do
|
25
|
+
# assertion here
|
26
|
+
# should be_a()
|
27
|
+
# should be_nil
|
28
|
+
# should ==
|
29
|
+
# should_not ==
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "name"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here
|
36
|
+
# should be_a()
|
37
|
+
# should be_nil
|
38
|
+
# should ==
|
39
|
+
# should_not ==
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'test attribute "display_name"' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "last_update"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here
|
56
|
+
# should be_a()
|
57
|
+
# should be_nil
|
58
|
+
# should ==
|
59
|
+
# should_not ==
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for OSDNClient::
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'SimpleGroup' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = OSDNClient::SimpleGroup.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of SimpleGroup' do
|
19
|
+
it 'should create an instact of SimpleGroup' do
|
20
|
+
@instance.should be_a(OSDNClient::SimpleGroup)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' do
|
24
|
+
it 'should work' do
|
25
|
+
# assertion here
|
26
|
+
# should be_a()
|
27
|
+
# should be_nil
|
28
|
+
# should ==
|
29
|
+
# should_not ==
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "name"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here
|
36
|
+
# should be_a()
|
37
|
+
# should be_nil
|
38
|
+
# should ==
|
39
|
+
# should_not ==
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'test attribute "display_name"' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "last_update"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here
|
56
|
+
# should be_a()
|
57
|
+
# should be_nil
|
58
|
+
# should ==
|
59
|
+
# should_not ==
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|