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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/build/lib/pulpcore/__init__.py +2 -0
- data/build/lib/pulpcore/client/__init__.py +2 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
- data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
- data/dist/pulp_2to3_migration-client-0.12.0.dev1624592827.tar.gz +0 -0
- data/dist/pulp_2to3_migration_client-0.12.0.dev1624592827-py3-none-any.whl +0 -0
- data/lib/pulp_2to3_migration_client.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
- data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
- data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/version.rb +2 -2
- data/pulp_2to3_migration_client.egg-info/PKG-INFO +15 -0
- data/pulp_2to3_migration_client.egg-info/SOURCES.txt +41 -0
- data/pulp_2to3_migration_client.egg-info/dependency_links.txt +1 -0
- data/pulp_2to3_migration_client.egg-info/requires.txt +4 -0
- data/pulp_2to3_migration_client.egg-info/top_level.txt +1 -0
- data/pulp_2to3_migration_client.gemspec +1 -1
- data/pulpcore/__init__.py +2 -0
- data/pulpcore/client/__init__.py +2 -0
- data/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
- data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
- data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
- data/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
- data/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
- data/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
- data/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
- data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
- data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
- data/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
- data/requirements.txt +6 -0
- data/setup.cfg +2 -0
- data/setup.py +42 -0
- data/spec/api/migration_plans_api_spec.rb +1 -1
- data/spec/api/pulp2_content_api_spec.rb +1 -1
- data/spec/api/pulp2_repositories_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/migration_plan_run_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/test-requirements.txt +3 -0
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +54 -0
- data/test/test_migration_plan_run.py +55 -0
- data/test/test_migration_plans_api.py +76 -0
- data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +61 -0
- data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +67 -0
- data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +72 -0
- data/test/test_pulp2_content_api.py +48 -0
- data/test/test_pulp2_repositories_api.py +48 -0
- data/test/test_pulp2to3_migration_migration_plan.py +54 -0
- data/test/test_pulp2to3_migration_migration_plan_response.py +56 -0
- data/test/test_pulp2to3_migration_pulp2_content_response.py +65 -0
- data/test/test_pulp2to3_migration_pulp2_repository_response.py +69 -0
- data/tox.ini +9 -0
- metadata +74 -7
@@ -0,0 +1,67 @@
|
|
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_pulp2_content_response_list import Paginatedpulp2to3MigrationPulp2ContentResponseList # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPaginatedpulp2to3MigrationPulp2ContentResponseList(unittest.TestCase):
|
24
|
+
"""Paginatedpulp2to3MigrationPulp2ContentResponseList 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 Paginatedpulp2to3MigrationPulp2ContentResponseList
|
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_pulp2_content_response_list.Paginatedpulp2to3MigrationPulp2ContentResponseList() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Paginatedpulp2to3MigrationPulp2ContentResponseList(
|
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/pulp2_content_response.pulp_2to3_migration.Pulp2ContentResponse(
|
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
|
+
pulp2_id = '0',
|
48
|
+
pulp2_content_type_id = '0',
|
49
|
+
pulp2_last_updated = 56,
|
50
|
+
pulp2_storage_path = '0',
|
51
|
+
downloaded = True,
|
52
|
+
pulp3_content = '0',
|
53
|
+
pulp3_repository_version = '0', )
|
54
|
+
]
|
55
|
+
)
|
56
|
+
else :
|
57
|
+
return Paginatedpulp2to3MigrationPulp2ContentResponseList(
|
58
|
+
)
|
59
|
+
|
60
|
+
def testPaginatedpulp2to3MigrationPulp2ContentResponseList(self):
|
61
|
+
"""Test Paginatedpulp2to3MigrationPulp2ContentResponseList"""
|
62
|
+
inst_req_only = self.make_instance(include_optional=False)
|
63
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
64
|
+
|
65
|
+
|
66
|
+
if __name__ == '__main__':
|
67
|
+
unittest.main()
|
@@ -0,0 +1,72 @@
|
|
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_pulp2_repository_response_list import Paginatedpulp2to3MigrationPulp2RepositoryResponseList # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPaginatedpulp2to3MigrationPulp2RepositoryResponseList(unittest.TestCase):
|
24
|
+
"""Paginatedpulp2to3MigrationPulp2RepositoryResponseList 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 Paginatedpulp2to3MigrationPulp2RepositoryResponseList
|
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_pulp2_repository_response_list.Paginatedpulp2to3MigrationPulp2RepositoryResponseList() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Paginatedpulp2to3MigrationPulp2RepositoryResponseList(
|
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/pulp2_repository_response.pulp_2to3_migration.Pulp2RepositoryResponse(
|
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
|
+
pulp2_object_id = '0',
|
48
|
+
pulp2_repo_id = '0',
|
49
|
+
pulp2_repo_type = '0',
|
50
|
+
is_migrated = True,
|
51
|
+
not_in_plan = True,
|
52
|
+
pulp3_repository_version = '0',
|
53
|
+
pulp3_remote_href = '0',
|
54
|
+
pulp3_publication_href = '0',
|
55
|
+
pulp3_distribution_hrefs = [
|
56
|
+
'0'
|
57
|
+
],
|
58
|
+
pulp3_repository_href = '0', )
|
59
|
+
]
|
60
|
+
)
|
61
|
+
else :
|
62
|
+
return Paginatedpulp2to3MigrationPulp2RepositoryResponseList(
|
63
|
+
)
|
64
|
+
|
65
|
+
def testPaginatedpulp2to3MigrationPulp2RepositoryResponseList(self):
|
66
|
+
"""Test Paginatedpulp2to3MigrationPulp2RepositoryResponseList"""
|
67
|
+
inst_req_only = self.make_instance(include_optional=False)
|
68
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
69
|
+
|
70
|
+
|
71
|
+
if __name__ == '__main__':
|
72
|
+
unittest.main()
|
@@ -0,0 +1,48 @@
|
|
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.pulp2_content_api import Pulp2ContentApi # noqa: E501
|
20
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
21
|
+
|
22
|
+
|
23
|
+
class TestPulp2ContentApi(unittest.TestCase):
|
24
|
+
"""Pulp2ContentApi unit test stubs"""
|
25
|
+
|
26
|
+
def setUp(self):
|
27
|
+
self.api = pulpcore.client.pulp_2to3_migration.api.pulp2_content_api.Pulp2ContentApi() # noqa: E501
|
28
|
+
|
29
|
+
def tearDown(self):
|
30
|
+
pass
|
31
|
+
|
32
|
+
def test_list(self):
|
33
|
+
"""Test case for list
|
34
|
+
|
35
|
+
List pulp2 contents # noqa: E501
|
36
|
+
"""
|
37
|
+
pass
|
38
|
+
|
39
|
+
def test_read(self):
|
40
|
+
"""Test case for read
|
41
|
+
|
42
|
+
Inspect a pulp2 content # noqa: E501
|
43
|
+
"""
|
44
|
+
pass
|
45
|
+
|
46
|
+
|
47
|
+
if __name__ == '__main__':
|
48
|
+
unittest.main()
|
@@ -0,0 +1,48 @@
|
|
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.pulp2_repositories_api import Pulp2RepositoriesApi # noqa: E501
|
20
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
21
|
+
|
22
|
+
|
23
|
+
class TestPulp2RepositoriesApi(unittest.TestCase):
|
24
|
+
"""Pulp2RepositoriesApi unit test stubs"""
|
25
|
+
|
26
|
+
def setUp(self):
|
27
|
+
self.api = pulpcore.client.pulp_2to3_migration.api.pulp2_repositories_api.Pulp2RepositoriesApi() # noqa: E501
|
28
|
+
|
29
|
+
def tearDown(self):
|
30
|
+
pass
|
31
|
+
|
32
|
+
def test_list(self):
|
33
|
+
"""Test case for list
|
34
|
+
|
35
|
+
List pulp2 repositorys # noqa: E501
|
36
|
+
"""
|
37
|
+
pass
|
38
|
+
|
39
|
+
def test_read(self):
|
40
|
+
"""Test case for read
|
41
|
+
|
42
|
+
Inspect a pulp2 repository # noqa: E501
|
43
|
+
"""
|
44
|
+
pass
|
45
|
+
|
46
|
+
|
47
|
+
if __name__ == '__main__':
|
48
|
+
unittest.main()
|
@@ -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.pulp2to3_migration_migration_plan import Pulp2to3MigrationMigrationPlan # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPulp2to3MigrationMigrationPlan(unittest.TestCase):
|
24
|
+
"""Pulp2to3MigrationMigrationPlan 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 Pulp2to3MigrationMigrationPlan
|
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.pulp2to3_migration_migration_plan.Pulp2to3MigrationMigrationPlan() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Pulp2to3MigrationMigrationPlan(
|
40
|
+
plan = None
|
41
|
+
)
|
42
|
+
else :
|
43
|
+
return Pulp2to3MigrationMigrationPlan(
|
44
|
+
plan = None,
|
45
|
+
)
|
46
|
+
|
47
|
+
def testPulp2to3MigrationMigrationPlan(self):
|
48
|
+
"""Test Pulp2to3MigrationMigrationPlan"""
|
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,56 @@
|
|
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.pulp2to3_migration_migration_plan_response import Pulp2to3MigrationMigrationPlanResponse # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPulp2to3MigrationMigrationPlanResponse(unittest.TestCase):
|
24
|
+
"""Pulp2to3MigrationMigrationPlanResponse 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 Pulp2to3MigrationMigrationPlanResponse
|
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.pulp2to3_migration_migration_plan_response.Pulp2to3MigrationMigrationPlanResponse() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Pulp2to3MigrationMigrationPlanResponse(
|
40
|
+
pulp_href = '0',
|
41
|
+
pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
42
|
+
plan = pulpcore.client.pulp_2to3_migration.models.plan.plan()
|
43
|
+
)
|
44
|
+
else :
|
45
|
+
return Pulp2to3MigrationMigrationPlanResponse(
|
46
|
+
plan = pulpcore.client.pulp_2to3_migration.models.plan.plan(),
|
47
|
+
)
|
48
|
+
|
49
|
+
def testPulp2to3MigrationMigrationPlanResponse(self):
|
50
|
+
"""Test Pulp2to3MigrationMigrationPlanResponse"""
|
51
|
+
inst_req_only = self.make_instance(include_optional=False)
|
52
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
53
|
+
|
54
|
+
|
55
|
+
if __name__ == '__main__':
|
56
|
+
unittest.main()
|
@@ -0,0 +1,65 @@
|
|
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.pulp2to3_migration_pulp2_content_response import Pulp2to3MigrationPulp2ContentResponse # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPulp2to3MigrationPulp2ContentResponse(unittest.TestCase):
|
24
|
+
"""Pulp2to3MigrationPulp2ContentResponse 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 Pulp2to3MigrationPulp2ContentResponse
|
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.pulp2to3_migration_pulp2_content_response.Pulp2to3MigrationPulp2ContentResponse() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Pulp2to3MigrationPulp2ContentResponse(
|
40
|
+
pulp_href = '0',
|
41
|
+
pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
42
|
+
pulp2_id = '0',
|
43
|
+
pulp2_content_type_id = '0',
|
44
|
+
pulp2_last_updated = 56,
|
45
|
+
pulp2_storage_path = '0',
|
46
|
+
downloaded = True,
|
47
|
+
pulp3_content = '0',
|
48
|
+
pulp3_repository_version = '0'
|
49
|
+
)
|
50
|
+
else :
|
51
|
+
return Pulp2to3MigrationPulp2ContentResponse(
|
52
|
+
pulp2_id = '0',
|
53
|
+
pulp2_content_type_id = '0',
|
54
|
+
pulp2_last_updated = 56,
|
55
|
+
pulp2_storage_path = '0',
|
56
|
+
)
|
57
|
+
|
58
|
+
def testPulp2to3MigrationPulp2ContentResponse(self):
|
59
|
+
"""Test Pulp2to3MigrationPulp2ContentResponse"""
|
60
|
+
inst_req_only = self.make_instance(include_optional=False)
|
61
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
62
|
+
|
63
|
+
|
64
|
+
if __name__ == '__main__':
|
65
|
+
unittest.main()
|
@@ -0,0 +1,69 @@
|
|
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.pulp2to3_migration_pulp2_repository_response import Pulp2to3MigrationPulp2RepositoryResponse # noqa: E501
|
21
|
+
from pulpcore.client.pulp_2to3_migration.rest import ApiException
|
22
|
+
|
23
|
+
class TestPulp2to3MigrationPulp2RepositoryResponse(unittest.TestCase):
|
24
|
+
"""Pulp2to3MigrationPulp2RepositoryResponse 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 Pulp2to3MigrationPulp2RepositoryResponse
|
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.pulp2to3_migration_pulp2_repository_response.Pulp2to3MigrationPulp2RepositoryResponse() # noqa: E501
|
38
|
+
if include_optional :
|
39
|
+
return Pulp2to3MigrationPulp2RepositoryResponse(
|
40
|
+
pulp_href = '0',
|
41
|
+
pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
42
|
+
pulp2_object_id = '0',
|
43
|
+
pulp2_repo_id = '0',
|
44
|
+
pulp2_repo_type = '0',
|
45
|
+
is_migrated = True,
|
46
|
+
not_in_plan = True,
|
47
|
+
pulp3_repository_version = '0',
|
48
|
+
pulp3_remote_href = '0',
|
49
|
+
pulp3_publication_href = '0',
|
50
|
+
pulp3_distribution_hrefs = [
|
51
|
+
'0'
|
52
|
+
],
|
53
|
+
pulp3_repository_href = '0'
|
54
|
+
)
|
55
|
+
else :
|
56
|
+
return Pulp2to3MigrationPulp2RepositoryResponse(
|
57
|
+
pulp2_object_id = '0',
|
58
|
+
pulp2_repo_id = '0',
|
59
|
+
pulp2_repo_type = '0',
|
60
|
+
)
|
61
|
+
|
62
|
+
def testPulp2to3MigrationPulp2RepositoryResponse(self):
|
63
|
+
"""Test Pulp2to3MigrationPulp2RepositoryResponse"""
|
64
|
+
inst_req_only = self.make_instance(include_optional=False)
|
65
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
66
|
+
|
67
|
+
|
68
|
+
if __name__ == '__main__':
|
69
|
+
unittest.main()
|