pulp_2to3_migration_client 0.2.0b4.dev01592833441 → 0.2.0b4.dev01592853251

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/pulp_2to3_migration_client/version.rb +1 -1
  4. metadata +1 -40
  5. data/pulpcore/__init__.py +0 -2
  6. data/pulpcore/client/__init__.py +0 -2
  7. data/pulpcore/client/pulp_2to3_migration/__init__.py +0 -42
  8. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +0 -8
  9. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +0 -609
  10. data/pulpcore/client/pulp_2to3_migration/api/pulp2content_api.py +0 -317
  11. data/pulpcore/client/pulp_2to3_migration/api/pulp2repositories_api.py +0 -289
  12. data/pulpcore/client/pulp_2to3_migration/api_client.py +0 -647
  13. data/pulpcore/client/pulp_2to3_migration/configuration.py +0 -387
  14. data/pulpcore/client/pulp_2to3_migration/exceptions.py +0 -120
  15. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +0 -25
  16. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +0 -123
  17. data/pulpcore/client/pulp_2to3_migration/models/inline_response200.py +0 -198
  18. data/pulpcore/client/pulp_2to3_migration/models/inline_response2001.py +0 -198
  19. data/pulpcore/client/pulp_2to3_migration/models/inline_response2002.py +0 -198
  20. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +0 -150
  21. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +0 -177
  22. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_read.py +0 -177
  23. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_read.py +0 -353
  24. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_read.py +0 -441
  25. data/pulpcore/client/pulp_2to3_migration/rest.py +0 -296
  26. data/requirements.txt +0 -6
  27. data/setup.cfg +0 -2
  28. data/setup.py +0 -41
  29. data/test-requirements.txt +0 -3
  30. data/test/__init__.py +0 -0
  31. data/test/test_async_operation_response.py +0 -53
  32. data/test/test_inline_response200.py +0 -67
  33. data/test/test_inline_response2001.py +0 -79
  34. data/test/test_inline_response2002.py +0 -89
  35. data/test/test_migration_plan_run.py +0 -53
  36. data/test/test_migration_plans_api.py +0 -68
  37. data/test/test_pulp2content_api.py +0 -47
  38. data/test/test_pulp2repositories_api.py +0 -47
  39. data/test/test_pulp2to3_migration_migration_plan.py +0 -55
  40. data/test/test_pulp2to3_migration_migration_plan_read.py +0 -55
  41. data/test/test_pulp2to3_migration_pulp2_content_read.py +0 -64
  42. data/test/test_pulp2to3_migration_pulp2_repository_read.py +0 -68
  43. data/tox.ini +0 -9
@@ -1,6 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- [flake8]
2
- max-line-length=99
data/setup.py DELETED
@@ -1,41 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from setuptools import setup, find_packages # noqa: H301
14
-
15
- NAME = "pulp_2to3_migration-client"
16
- VERSION = "0.2.0b4.dev0"
17
- # To install the library, run the following
18
- #
19
- # python setup.py install
20
- #
21
- # prerequisite: setuptools
22
- # http://pypi.python.org/pypi/setuptools
23
-
24
- REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
25
-
26
- setup(
27
- name=NAME,
28
- version=VERSION,
29
- description="Pulp 3 API",
30
- author="OpenAPI Generator community",
31
- author_email="team@openapitools.org",
32
- url="",
33
- keywords=["OpenAPI", "OpenAPI-Generator", "Pulp 3 API"],
34
- install_requires=REQUIRES,
35
- packages=find_packages(exclude=["test", "tests"]),
36
- include_package_data=True,
37
- license="GPLv2+",
38
- long_description="""\
39
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
40
- """
41
- )
@@ -1,3 +0,0 @@
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
File without changes
@@ -1,53 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
- import datetime
17
-
18
- import pulpcore.client.pulp_2to3_migration
19
- from pulpcore.client.pulp_2to3_migration.models.async_operation_response import AsyncOperationResponse # noqa: E501
20
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
-
22
- class TestAsyncOperationResponse(unittest.TestCase):
23
- """AsyncOperationResponse unit test stubs"""
24
-
25
- def setUp(self):
26
- pass
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def make_instance(self, include_optional):
32
- """Test AsyncOperationResponse
33
- include_option is a boolean, when False only required
34
- params are included, when True both required and
35
- optional params are included """
36
- # model = pulpcore.client.pulp_2to3_migration.models.async_operation_response.AsyncOperationResponse() # noqa: E501
37
- if include_optional :
38
- return AsyncOperationResponse(
39
- task = '0'
40
- )
41
- else :
42
- return AsyncOperationResponse(
43
- task = '0',
44
- )
45
-
46
- def testAsyncOperationResponse(self):
47
- """Test AsyncOperationResponse"""
48
- inst_req_only = self.make_instance(include_optional=False)
49
- inst_req_and_optional = self.make_instance(include_optional=True)
50
-
51
-
52
- if __name__ == '__main__':
53
- unittest.main()
@@ -1,67 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
- import datetime
17
-
18
- import pulpcore.client.pulp_2to3_migration
19
- from pulpcore.client.pulp_2to3_migration.models.inline_response200 import InlineResponse200 # noqa: E501
20
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
-
22
- class TestInlineResponse200(unittest.TestCase):
23
- """InlineResponse200 unit test stubs"""
24
-
25
- def setUp(self):
26
- pass
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def make_instance(self, include_optional):
32
- """Test InlineResponse200
33
- include_option is a boolean, when False only required
34
- params are included, when True both required and
35
- optional params are included """
36
- # model = pulpcore.client.pulp_2to3_migration.models.inline_response200.InlineResponse200() # noqa: E501
37
- if include_optional :
38
- return InlineResponse200(
39
- count = 56,
40
- next = '0',
41
- previous = '0',
42
- results = [
43
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/migration_plan_read.pulp_2to3_migration.MigrationPlanRead(
44
- pulp_href = '0',
45
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
- plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan(), )
47
- ]
48
- )
49
- else :
50
- return InlineResponse200(
51
- count = 56,
52
- results = [
53
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/migration_plan_read.pulp_2to3_migration.MigrationPlanRead(
54
- pulp_href = '0',
55
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
56
- plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan(), )
57
- ],
58
- )
59
-
60
- def testInlineResponse200(self):
61
- """Test InlineResponse200"""
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,79 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
- import datetime
17
-
18
- import pulpcore.client.pulp_2to3_migration
19
- from pulpcore.client.pulp_2to3_migration.models.inline_response2001 import InlineResponse2001 # noqa: E501
20
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
-
22
- class TestInlineResponse2001(unittest.TestCase):
23
- """InlineResponse2001 unit test stubs"""
24
-
25
- def setUp(self):
26
- pass
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def make_instance(self, include_optional):
32
- """Test InlineResponse2001
33
- include_option is a boolean, when False only required
34
- params are included, when True both required and
35
- optional params are included """
36
- # model = pulpcore.client.pulp_2to3_migration.models.inline_response2001.InlineResponse2001() # noqa: E501
37
- if include_optional :
38
- return InlineResponse2001(
39
- count = 56,
40
- next = '0',
41
- previous = '0',
42
- results = [
43
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_content_read.pulp_2to3_migration.Pulp2ContentRead(
44
- pulp_href = '0',
45
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
- pulp2_id = '0',
47
- pulp2_content_type_id = '0',
48
- pulp2_last_updated = 56,
49
- pulp2_storage_path = '0',
50
- downloaded = True,
51
- pulp3_content = '0',
52
- pulp3_repository_version = '0', )
53
- ]
54
- )
55
- else :
56
- return InlineResponse2001(
57
- count = 56,
58
- results = [
59
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_content_read.pulp_2to3_migration.Pulp2ContentRead(
60
- pulp_href = '0',
61
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
62
- pulp2_id = '0',
63
- pulp2_content_type_id = '0',
64
- pulp2_last_updated = 56,
65
- pulp2_storage_path = '0',
66
- downloaded = True,
67
- pulp3_content = '0',
68
- pulp3_repository_version = '0', )
69
- ],
70
- )
71
-
72
- def testInlineResponse2001(self):
73
- """Test InlineResponse2001"""
74
- inst_req_only = self.make_instance(include_optional=False)
75
- inst_req_and_optional = self.make_instance(include_optional=True)
76
-
77
-
78
- if __name__ == '__main__':
79
- unittest.main()
@@ -1,89 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
- import datetime
17
-
18
- import pulpcore.client.pulp_2to3_migration
19
- from pulpcore.client.pulp_2to3_migration.models.inline_response2002 import InlineResponse2002 # noqa: E501
20
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
-
22
- class TestInlineResponse2002(unittest.TestCase):
23
- """InlineResponse2002 unit test stubs"""
24
-
25
- def setUp(self):
26
- pass
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def make_instance(self, include_optional):
32
- """Test InlineResponse2002
33
- include_option is a boolean, when False only required
34
- params are included, when True both required and
35
- optional params are included """
36
- # model = pulpcore.client.pulp_2to3_migration.models.inline_response2002.InlineResponse2002() # noqa: E501
37
- if include_optional :
38
- return InlineResponse2002(
39
- count = 56,
40
- next = '0',
41
- previous = '0',
42
- results = [
43
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_repository_read.pulp_2to3_migration.Pulp2RepositoryRead(
44
- pulp_href = '0',
45
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
- pulp2_object_id = '0',
47
- pulp2_repo_id = '0',
48
- pulp2_repo_type = '0',
49
- is_migrated = True,
50
- not_in_plan = True,
51
- pulp3_repository_version = '0',
52
- pulp3_remote_href = '0',
53
- pulp3_publication_href = '0',
54
- pulp3_distribution_hrefs = [
55
- '0'
56
- ],
57
- pulp3_repository_href = '0', )
58
- ]
59
- )
60
- else :
61
- return InlineResponse2002(
62
- count = 56,
63
- results = [
64
- pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_repository_read.pulp_2to3_migration.Pulp2RepositoryRead(
65
- pulp_href = '0',
66
- pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
67
- pulp2_object_id = '0',
68
- pulp2_repo_id = '0',
69
- pulp2_repo_type = '0',
70
- is_migrated = True,
71
- not_in_plan = True,
72
- pulp3_repository_version = '0',
73
- pulp3_remote_href = '0',
74
- pulp3_publication_href = '0',
75
- pulp3_distribution_hrefs = [
76
- '0'
77
- ],
78
- pulp3_repository_href = '0', )
79
- ],
80
- )
81
-
82
- def testInlineResponse2002(self):
83
- """Test InlineResponse2002"""
84
- inst_req_only = self.make_instance(include_optional=False)
85
- inst_req_and_optional = self.make_instance(include_optional=True)
86
-
87
-
88
- if __name__ == '__main__':
89
- unittest.main()
@@ -1,53 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
- import datetime
17
-
18
- import pulpcore.client.pulp_2to3_migration
19
- from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun # noqa: E501
20
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
-
22
- class TestMigrationPlanRun(unittest.TestCase):
23
- """MigrationPlanRun unit test stubs"""
24
-
25
- def setUp(self):
26
- pass
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def make_instance(self, include_optional):
32
- """Test MigrationPlanRun
33
- include_option is a boolean, when False only required
34
- params are included, when True both required and
35
- optional params are included """
36
- # model = pulpcore.client.pulp_2to3_migration.models.migration_plan_run.MigrationPlanRun() # noqa: E501
37
- if include_optional :
38
- return MigrationPlanRun(
39
- validate = True,
40
- dry_run = True
41
- )
42
- else :
43
- return MigrationPlanRun(
44
- )
45
-
46
- def testMigrationPlanRun(self):
47
- """Test MigrationPlanRun"""
48
- inst_req_only = self.make_instance(include_optional=False)
49
- inst_req_and_optional = self.make_instance(include_optional=True)
50
-
51
-
52
- if __name__ == '__main__':
53
- unittest.main()
@@ -1,68 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import unittest
16
-
17
- import pulpcore.client.pulp_2to3_migration
18
- from pulpcore.client.pulp_2to3_migration.api.migration_plans_api import MigrationPlansApi # noqa: E501
19
- from pulpcore.client.pulp_2to3_migration.rest import ApiException
20
-
21
-
22
- class TestMigrationPlansApi(unittest.TestCase):
23
- """MigrationPlansApi unit test stubs"""
24
-
25
- def setUp(self):
26
- self.api = pulpcore.client.pulp_2to3_migration.api.migration_plans_api.MigrationPlansApi() # noqa: E501
27
-
28
- def tearDown(self):
29
- pass
30
-
31
- def test_create(self):
32
- """Test case for create
33
-
34
- Create a migration plan # noqa: E501
35
- """
36
- pass
37
-
38
- def test_delete(self):
39
- """Test case for delete
40
-
41
- Delete a migration plan # noqa: E501
42
- """
43
- pass
44
-
45
- def test_list(self):
46
- """Test case for list
47
-
48
- List migration plans # noqa: E501
49
- """
50
- pass
51
-
52
- def test_read(self):
53
- """Test case for read
54
-
55
- Inspect a migration plan # noqa: E501
56
- """
57
- pass
58
-
59
- def test_run(self):
60
- """Test case for run
61
-
62
- Run migration plan # noqa: E501
63
- """
64
- pass
65
-
66
-
67
- if __name__ == '__main__':
68
- unittest.main()