pulp_2to3_migration_client 0.12.0.dev1623642407 → 0.12.0.dev1624592835
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/requirements.txt
ADDED
data/setup.cfg
ADDED
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
|
+
)
|
data/spec/api_client_spec.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.
|
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
|
|
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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()
|