pulp_2to3_migration_client 0.12.0.dev1623642407 → 0.12.0.dev1624592835

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/build/lib/pulpcore/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/__init__.py +2 -0
  6. data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  7. data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  8. data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  9. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  10. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  11. data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  12. data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  13. data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  14. data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  15. data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  16. data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  17. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  18. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  19. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  20. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  21. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  22. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  23. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  24. data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  25. data/dist/pulp_2to3_migration-client-0.12.0.dev1624592827.tar.gz +0 -0
  26. data/dist/pulp_2to3_migration_client-0.12.0.dev1624592827-py3-none-any.whl +0 -0
  27. data/lib/pulp_2to3_migration_client.rb +1 -1
  28. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
  29. data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
  30. data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
  31. data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
  32. data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
  33. data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
  34. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
  35. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
  36. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
  37. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
  38. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
  39. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
  40. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
  41. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
  42. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
  43. data/lib/pulp_2to3_migration_client/version.rb +2 -2
  44. data/pulp_2to3_migration_client.egg-info/PKG-INFO +15 -0
  45. data/pulp_2to3_migration_client.egg-info/SOURCES.txt +41 -0
  46. data/pulp_2to3_migration_client.egg-info/dependency_links.txt +1 -0
  47. data/pulp_2to3_migration_client.egg-info/requires.txt +4 -0
  48. data/pulp_2to3_migration_client.egg-info/top_level.txt +1 -0
  49. data/pulp_2to3_migration_client.gemspec +1 -1
  50. data/pulpcore/__init__.py +2 -0
  51. data/pulpcore/client/__init__.py +2 -0
  52. data/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  53. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  54. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  55. data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  56. data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  57. data/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  58. data/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  59. data/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  60. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  61. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  62. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  63. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  64. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  65. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  66. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  67. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  68. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  69. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  70. data/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  71. data/requirements.txt +6 -0
  72. data/setup.cfg +2 -0
  73. data/setup.py +42 -0
  74. data/spec/api/migration_plans_api_spec.rb +1 -1
  75. data/spec/api/pulp2_content_api_spec.rb +1 -1
  76. data/spec/api/pulp2_repositories_api_spec.rb +1 -1
  77. data/spec/api_client_spec.rb +2 -2
  78. data/spec/configuration_spec.rb +1 -1
  79. data/spec/models/async_operation_response_spec.rb +1 -1
  80. data/spec/models/migration_plan_run_spec.rb +1 -1
  81. data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
  82. data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
  83. data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
  84. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
  85. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
  86. data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
  87. data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
  88. data/spec/spec_helper.rb +1 -1
  89. data/test-requirements.txt +3 -0
  90. data/test/__init__.py +0 -0
  91. data/test/test_async_operation_response.py +54 -0
  92. data/test/test_migration_plan_run.py +55 -0
  93. data/test/test_migration_plans_api.py +76 -0
  94. data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +61 -0
  95. data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +67 -0
  96. data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +72 -0
  97. data/test/test_pulp2_content_api.py +48 -0
  98. data/test/test_pulp2_repositories_api.py +48 -0
  99. data/test/test_pulp2to3_migration_migration_plan.py +54 -0
  100. data/test/test_pulp2to3_migration_migration_plan_response.py +56 -0
  101. data/test/test_pulp2to3_migration_pulp2_content_response.py +65 -0
  102. data/test/test_pulp2to3_migration_pulp2_repository_response.py +69 -0
  103. data/tox.ini +9 -0
  104. metadata +74 -7
data/requirements.txt ADDED
@@ -0,0 +1,6 @@
1
+ certifi >= 14.05.14
2
+ future; python_version<="2.7"
3
+ six >= 1.10
4
+ python_dateutil >= 2.5.3
5
+ setuptools >= 21.0.0
6
+ urllib3 >= 1.15.1
data/setup.cfg ADDED
@@ -0,0 +1,2 @@
1
+ [flake8]
2
+ max-line-length=99
data/setup.py ADDED
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from setuptools import setup, find_packages # noqa: H301
15
+
16
+ NAME = "pulp_2to3_migration-client"
17
+ VERSION = "0.12.0.dev1624592827"
18
+ # To install the library, run the following
19
+ #
20
+ # python setup.py install
21
+ #
22
+ # prerequisite: setuptools
23
+ # http://pypi.python.org/pypi/setuptools
24
+
25
+ REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
26
+ setup(
27
+ name=NAME,
28
+ version=VERSION,
29
+ description="Pulp 3 API",
30
+ author="Pulp Team",
31
+ author_email="pulp-list@redhat.com",
32
+ url="",
33
+ keywords=["pulp", "pulpcore", "client", "Pulp 3 API"],
34
+ install_requires=REQUIRES,
35
+ python_requires='>=3.4', # restrict client usage to Python 3 only
36
+ packages=find_packages(exclude=["test", "tests"]),
37
+ include_package_data=True,
38
+ license="GPLv2+",
39
+ long_description="""\
40
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
41
+ """
42
+ )
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -118,7 +118,7 @@ describe Pulp2to3MigrationClient::ApiClient do
118
118
  end
119
119
 
120
120
  it 'fails for invalid collection format' do
121
- expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
121
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
122
122
  end
123
123
  end
124
124
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,3 @@
1
+ pytest~=4.6.7 # needed for python 2.7+3.4
2
+ pytest-cov>=2.8.1
3
+ pytest-randomly==1.2.3 # needed for python 2.7+3.4
data/test/__init__.py ADDED
File without changes
@@ -0,0 +1,54 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import unittest
17
+ import datetime
18
+
19
+ import pulpcore.client.pulp_2to3_migration
20
+ from pulpcore.client.pulp_2to3_migration.models.async_operation_response import AsyncOperationResponse # noqa: E501
21
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
22
+
23
+ class TestAsyncOperationResponse(unittest.TestCase):
24
+ """AsyncOperationResponse unit test stubs"""
25
+
26
+ def setUp(self):
27
+ pass
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def make_instance(self, include_optional):
33
+ """Test AsyncOperationResponse
34
+ include_option is a boolean, when False only required
35
+ params are included, when True both required and
36
+ optional params are included """
37
+ # model = pulpcore.client.pulp_2to3_migration.models.async_operation_response.AsyncOperationResponse() # noqa: E501
38
+ if include_optional :
39
+ return AsyncOperationResponse(
40
+ task = '0'
41
+ )
42
+ else :
43
+ return AsyncOperationResponse(
44
+ task = '0',
45
+ )
46
+
47
+ def testAsyncOperationResponse(self):
48
+ """Test AsyncOperationResponse"""
49
+ inst_req_only = self.make_instance(include_optional=False)
50
+ inst_req_and_optional = self.make_instance(include_optional=True)
51
+
52
+
53
+ if __name__ == '__main__':
54
+ unittest.main()
@@ -0,0 +1,55 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import unittest
17
+ import datetime
18
+
19
+ import pulpcore.client.pulp_2to3_migration
20
+ from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun # noqa: E501
21
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
22
+
23
+ class TestMigrationPlanRun(unittest.TestCase):
24
+ """MigrationPlanRun unit test stubs"""
25
+
26
+ def setUp(self):
27
+ pass
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def make_instance(self, include_optional):
33
+ """Test MigrationPlanRun
34
+ include_option is a boolean, when False only required
35
+ params are included, when True both required and
36
+ optional params are included """
37
+ # model = pulpcore.client.pulp_2to3_migration.models.migration_plan_run.MigrationPlanRun() # noqa: E501
38
+ if include_optional :
39
+ return MigrationPlanRun(
40
+ validate = True,
41
+ dry_run = True,
42
+ skip_corrupted = True
43
+ )
44
+ else :
45
+ return MigrationPlanRun(
46
+ )
47
+
48
+ def testMigrationPlanRun(self):
49
+ """Test MigrationPlanRun"""
50
+ inst_req_only = self.make_instance(include_optional=False)
51
+ inst_req_and_optional = self.make_instance(include_optional=True)
52
+
53
+
54
+ if __name__ == '__main__':
55
+ unittest.main()
@@ -0,0 +1,76 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import unittest
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.api.migration_plans_api import MigrationPlansApi # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+
23
+ class TestMigrationPlansApi(unittest.TestCase):
24
+ """MigrationPlansApi unit test stubs"""
25
+
26
+ def setUp(self):
27
+ self.api = pulpcore.client.pulp_2to3_migration.api.migration_plans_api.MigrationPlansApi() # noqa: E501
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def test_create(self):
33
+ """Test case for create
34
+
35
+ Create a migration plan # noqa: E501
36
+ """
37
+ pass
38
+
39
+ def test_delete(self):
40
+ """Test case for delete
41
+
42
+ Delete a migration plan # noqa: E501
43
+ """
44
+ pass
45
+
46
+ def test_list(self):
47
+ """Test case for list
48
+
49
+ List migration plans # noqa: E501
50
+ """
51
+ pass
52
+
53
+ def test_read(self):
54
+ """Test case for read
55
+
56
+ Inspect a migration plan # noqa: E501
57
+ """
58
+ pass
59
+
60
+ def test_reset(self):
61
+ """Test case for reset
62
+
63
+ Reset Pulp 3 data for plugins specified in the migration plan # noqa: E501
64
+ """
65
+ pass
66
+
67
+ def test_run(self):
68
+ """Test case for run
69
+
70
+ Run migration plan # noqa: E501
71
+ """
72
+ pass
73
+
74
+
75
+ if __name__ == '__main__':
76
+ unittest.main()
@@ -0,0 +1,61 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import unittest
17
+ import datetime
18
+
19
+ import pulpcore.client.pulp_2to3_migration
20
+ from pulpcore.client.pulp_2to3_migration.models.paginatedpulp2to3_migration_migration_plan_response_list import Paginatedpulp2to3MigrationMigrationPlanResponseList # noqa: E501
21
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
22
+
23
+ class TestPaginatedpulp2to3MigrationMigrationPlanResponseList(unittest.TestCase):
24
+ """Paginatedpulp2to3MigrationMigrationPlanResponseList unit test stubs"""
25
+
26
+ def setUp(self):
27
+ pass
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def make_instance(self, include_optional):
33
+ """Test Paginatedpulp2to3MigrationMigrationPlanResponseList
34
+ include_option is a boolean, when False only required
35
+ params are included, when True both required and
36
+ optional params are included """
37
+ # model = pulpcore.client.pulp_2to3_migration.models.paginatedpulp2to3_migration_migration_plan_response_list.Paginatedpulp2to3MigrationMigrationPlanResponseList() # noqa: E501
38
+ if include_optional :
39
+ return Paginatedpulp2to3MigrationMigrationPlanResponseList(
40
+ count = 123,
41
+ next = 'http://api.example.org/accounts/?offset=400&limit=100',
42
+ previous = 'http://api.example.org/accounts/?offset=200&limit=100',
43
+ results = [
44
+ pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/migration_plan_response.pulp_2to3_migration.MigrationPlanResponse(
45
+ pulp_href = '0',
46
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
47
+ plan = pulpcore.client.pulp_2to3_migration.models.plan.plan(), )
48
+ ]
49
+ )
50
+ else :
51
+ return Paginatedpulp2to3MigrationMigrationPlanResponseList(
52
+ )
53
+
54
+ def testPaginatedpulp2to3MigrationMigrationPlanResponseList(self):
55
+ """Test Paginatedpulp2to3MigrationMigrationPlanResponseList"""
56
+ inst_req_only = self.make_instance(include_optional=False)
57
+ inst_req_and_optional = self.make_instance(include_optional=True)
58
+
59
+
60
+ if __name__ == '__main__':
61
+ unittest.main()