pulp_2to3_migration_client 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/pulp_2to3_migration_client/api_client.rb +4 -2
- data/lib/pulp_2to3_migration_client/configuration.rb +7 -0
- data/lib/pulp_2to3_migration_client/version.rb +1 -1
- metadata +8 -75
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +0 -43
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +0 -8
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +0 -761
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +0 -350
- data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +0 -313
- data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +0 -26
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +0 -179
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +0 -124
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +0 -178
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +0 -338
- data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +0 -416
- data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +0 -292
- data/dist/pulp_2to3_migration-client-0.12.0.tar.gz +0 -0
- data/dist/pulp_2to3_migration_client-0.12.0-py3-none-any.whl +0 -0
- data/pulp_2to3_migration_client.egg-info/PKG-INFO +0 -15
- data/pulp_2to3_migration_client.egg-info/SOURCES.txt +0 -41
- data/pulp_2to3_migration_client.egg-info/dependency_links.txt +0 -1
- data/pulp_2to3_migration_client.egg-info/requires.txt +0 -4
- data/pulp_2to3_migration_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_2to3_migration/__init__.py +0 -43
- data/pulpcore/client/pulp_2to3_migration/api/__init__.py +0 -8
- data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +0 -761
- data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +0 -350
- data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +0 -313
- data/pulpcore/client/pulp_2to3_migration/api_client.py +0 -667
- data/pulpcore/client/pulp_2to3_migration/configuration.py +0 -427
- data/pulpcore/client/pulp_2to3_migration/exceptions.py +0 -121
- data/pulpcore/client/pulp_2to3_migration/models/__init__.py +0 -26
- data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +0 -179
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +0 -197
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -197
- data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +0 -124
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +0 -178
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +0 -338
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +0 -416
- data/pulpcore/client/pulp_2to3_migration/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/test-requirements.txt +0 -3
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +0 -54
- data/test/test_migration_plan_run.py +0 -55
- data/test/test_migration_plans_api.py +0 -76
- data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +0 -61
- data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -67
- data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -72
- data/test/test_pulp2_content_api.py +0 -48
- data/test/test_pulp2_repositories_api.py +0 -48
- data/test/test_pulp2to3_migration_migration_plan.py +0 -54
- data/test/test_pulp2to3_migration_migration_plan_response.py +0 -56
- data/test/test_pulp2to3_migration_pulp2_content_response.py +0 -65
- data/test/test_pulp2to3_migration_pulp2_repository_response.py +0 -69
- data/tox.ini +0 -9
data/requirements.txt
DELETED
data/setup.cfg
DELETED
data/setup.py
DELETED
@@ -1,42 +0,0 @@
|
|
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"
|
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
|
-
)
|
data/test-requirements.txt
DELETED
data/test/__init__.py
DELETED
File without changes
|
@@ -1,54 +0,0 @@
|
|
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()
|
@@ -1,55 +0,0 @@
|
|
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()
|
@@ -1,76 +0,0 @@
|
|
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()
|
@@ -1,61 +0,0 @@
|
|
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()
|
@@ -1,67 +0,0 @@
|
|
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()
|
@@ -1,72 +0,0 @@
|
|
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()
|