Skip to content

Commit 50a97d1

Browse files
authored
Merge pull request #12 from kubernetes-incubator/o3
Adding back generated test as they make sure the generated client is buildable
2 parents 848becd + 5c87338 commit 50a97d1

File tree

260 files changed

+17250
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+17250
-2
lines changed

.swagger-codegen-ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.gitignore
22
git_push.sh
3-
test/*
43
requirements.txt
54
test-requirements.txt
65
setup.py
6+
.travis.yml

scripts/generate.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,5 @@ cat "${CLIENT_ROOT}/README.prefix" "${CLIENT_ROOT}/README.md" > "${CLIENT_ROOT}/
6363
rm "${CLIENT_ROOT}/README.md"
6464
mv "${CLIENT_ROOT}/README.new" "${CLIENT_ROOT}/README.md"
6565
cp "${SCRIPT_ROOT}/LICENSE" "${CLIENT_ROOT}"
66-
rm -rf "${CLIENT_ROOT}/test"
6766

6867
echo "---Done."

test/__init__.py

Whitespace-only changes.

test/test_apis_api.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: unversioned
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
12+
Licensed under the Apache License, Version 2.0 (the "License");
13+
you may not use this file except in compliance with the License.
14+
You may obtain a copy of the License at
15+
16+
http://www.apache.org/licenses/LICENSE-2.0
17+
18+
Unless required by applicable law or agreed to in writing, software
19+
distributed under the License is distributed on an "AS IS" BASIS,
20+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
See the License for the specific language governing permissions and
22+
limitations under the License.
23+
"""
24+
25+
from __future__ import absolute_import
26+
27+
import os
28+
import sys
29+
import unittest
30+
31+
import k8sclient
32+
from k8sclient.rest import ApiException
33+
from k8sclient.apis.apis_api import ApisApi
34+
35+
36+
class TestApisApi(unittest.TestCase):
37+
""" ApisApi unit test stubs """
38+
39+
def setUp(self):
40+
self.api = k8sclient.apis.apis_api.ApisApi()
41+
42+
def tearDown(self):
43+
pass
44+
45+
def test_get_api_versions(self):
46+
"""
47+
Test case for get_api_versions
48+
49+
50+
"""
51+
pass
52+
53+
54+
if __name__ == '__main__':
55+
unittest.main()

test/test_apps_api.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: unversioned
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
12+
Licensed under the Apache License, Version 2.0 (the "License");
13+
you may not use this file except in compliance with the License.
14+
You may obtain a copy of the License at
15+
16+
http://www.apache.org/licenses/LICENSE-2.0
17+
18+
Unless required by applicable law or agreed to in writing, software
19+
distributed under the License is distributed on an "AS IS" BASIS,
20+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
See the License for the specific language governing permissions and
22+
limitations under the License.
23+
"""
24+
25+
from __future__ import absolute_import
26+
27+
import os
28+
import sys
29+
import unittest
30+
31+
import k8sclient
32+
from k8sclient.rest import ApiException
33+
from k8sclient.apis.apps_api import AppsApi
34+
35+
36+
class TestAppsApi(unittest.TestCase):
37+
""" AppsApi unit test stubs """
38+
39+
def setUp(self):
40+
self.api = k8sclient.apis.apps_api.AppsApi()
41+
42+
def tearDown(self):
43+
pass
44+
45+
def test_get_api_group(self):
46+
"""
47+
Test case for get_api_group
48+
49+
50+
"""
51+
pass
52+
53+
54+
if __name__ == '__main__':
55+
unittest.main()

test/test_apps_v1beta1_api.py

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: unversioned
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
12+
Licensed under the Apache License, Version 2.0 (the "License");
13+
you may not use this file except in compliance with the License.
14+
You may obtain a copy of the License at
15+
16+
http://www.apache.org/licenses/LICENSE-2.0
17+
18+
Unless required by applicable law or agreed to in writing, software
19+
distributed under the License is distributed on an "AS IS" BASIS,
20+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
See the License for the specific language governing permissions and
22+
limitations under the License.
23+
"""
24+
25+
from __future__ import absolute_import
26+
27+
import os
28+
import sys
29+
import unittest
30+
31+
import k8sclient
32+
from k8sclient.rest import ApiException
33+
from k8sclient.apis.apps_v1beta1_api import AppsV1beta1Api
34+
35+
36+
class TestAppsV1beta1Api(unittest.TestCase):
37+
""" AppsV1beta1Api unit test stubs """
38+
39+
def setUp(self):
40+
self.api = k8sclient.apis.apps_v1beta1_api.AppsV1beta1Api()
41+
42+
def tearDown(self):
43+
pass
44+
45+
def test_create_namespaced_stateful_set(self):
46+
"""
47+
Test case for create_namespaced_stateful_set
48+
49+
50+
"""
51+
pass
52+
53+
def test_delete_collection_namespaced_stateful_set(self):
54+
"""
55+
Test case for delete_collection_namespaced_stateful_set
56+
57+
58+
"""
59+
pass
60+
61+
def test_delete_namespaced_stateful_set(self):
62+
"""
63+
Test case for delete_namespaced_stateful_set
64+
65+
66+
"""
67+
pass
68+
69+
def test_get_api_resources(self):
70+
"""
71+
Test case for get_api_resources
72+
73+
74+
"""
75+
pass
76+
77+
def test_list_namespaced_stateful_set(self):
78+
"""
79+
Test case for list_namespaced_stateful_set
80+
81+
82+
"""
83+
pass
84+
85+
def test_list_stateful_set_for_all_namespaces(self):
86+
"""
87+
Test case for list_stateful_set_for_all_namespaces
88+
89+
90+
"""
91+
pass
92+
93+
def test_patch_namespaced_stateful_set(self):
94+
"""
95+
Test case for patch_namespaced_stateful_set
96+
97+
98+
"""
99+
pass
100+
101+
def test_patch_namespaced_stateful_set_status(self):
102+
"""
103+
Test case for patch_namespaced_stateful_set_status
104+
105+
106+
"""
107+
pass
108+
109+
def test_read_namespaced_stateful_set(self):
110+
"""
111+
Test case for read_namespaced_stateful_set
112+
113+
114+
"""
115+
pass
116+
117+
def test_read_namespaced_stateful_set_status(self):
118+
"""
119+
Test case for read_namespaced_stateful_set_status
120+
121+
122+
"""
123+
pass
124+
125+
def test_replace_namespaced_stateful_set(self):
126+
"""
127+
Test case for replace_namespaced_stateful_set
128+
129+
130+
"""
131+
pass
132+
133+
def test_replace_namespaced_stateful_set_status(self):
134+
"""
135+
Test case for replace_namespaced_stateful_set_status
136+
137+
138+
"""
139+
pass
140+
141+
142+
if __name__ == '__main__':
143+
unittest.main()

test/test_authentication_api.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: unversioned
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
12+
Licensed under the Apache License, Version 2.0 (the "License");
13+
you may not use this file except in compliance with the License.
14+
You may obtain a copy of the License at
15+
16+
http://www.apache.org/licenses/LICENSE-2.0
17+
18+
Unless required by applicable law or agreed to in writing, software
19+
distributed under the License is distributed on an "AS IS" BASIS,
20+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
See the License for the specific language governing permissions and
22+
limitations under the License.
23+
"""
24+
25+
from __future__ import absolute_import
26+
27+
import os
28+
import sys
29+
import unittest
30+
31+
import k8sclient
32+
from k8sclient.rest import ApiException
33+
from k8sclient.apis.authentication_api import AuthenticationApi
34+
35+
36+
class TestAuthenticationApi(unittest.TestCase):
37+
""" AuthenticationApi unit test stubs """
38+
39+
def setUp(self):
40+
self.api = k8sclient.apis.authentication_api.AuthenticationApi()
41+
42+
def tearDown(self):
43+
pass
44+
45+
def test_get_api_group(self):
46+
"""
47+
Test case for get_api_group
48+
49+
50+
"""
51+
pass
52+
53+
54+
if __name__ == '__main__':
55+
unittest.main()
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: unversioned
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
12+
Licensed under the Apache License, Version 2.0 (the "License");
13+
you may not use this file except in compliance with the License.
14+
You may obtain a copy of the License at
15+
16+
http://www.apache.org/licenses/LICENSE-2.0
17+
18+
Unless required by applicable law or agreed to in writing, software
19+
distributed under the License is distributed on an "AS IS" BASIS,
20+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
See the License for the specific language governing permissions and
22+
limitations under the License.
23+
"""
24+
25+
from __future__ import absolute_import
26+
27+
import os
28+
import sys
29+
import unittest
30+
31+
import k8sclient
32+
from k8sclient.rest import ApiException
33+
from k8sclient.apis.authentication_v1beta1_api import AuthenticationV1beta1Api
34+
35+
36+
class TestAuthenticationV1beta1Api(unittest.TestCase):
37+
""" AuthenticationV1beta1Api unit test stubs """
38+
39+
def setUp(self):
40+
self.api = k8sclient.apis.authentication_v1beta1_api.AuthenticationV1beta1Api()
41+
42+
def tearDown(self):
43+
pass
44+
45+
def test_create_token_review(self):
46+
"""
47+
Test case for create_token_review
48+
49+
50+
"""
51+
pass
52+
53+
def test_get_api_resources(self):
54+
"""
55+
Test case for get_api_resources
56+
57+
58+
"""
59+
pass
60+
61+
62+
if __name__ == '__main__':
63+
unittest.main()

0 commit comments

Comments
 (0)