pulp_2to3_migration_client 0.2.0b2.dev01587578581 → 0.2.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/MigrationPlansApi.md +5 -5
- data/docs/Pulp2contentApi.md +3 -3
- data/docs/Pulp2repositoriesApi.md +3 -3
- data/docs/Pulp2to3MigrationMigrationPlanRead.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentRead.md} +5 -3
- data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryRead.md} +2 -2
- data/lib/pulp_2to3_migration_client.rb +3 -2
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +6 -6
- data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +3 -3
- data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +3 -3
- data/lib/pulp_2to3_migration_client/configuration.rb +2 -2
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read.rb +231 -0
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_read.rb} +33 -8
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_read.rb} +3 -3
- data/lib/pulp_2to3_migration_client/version.rb +1 -1
- data/pulpcore/__init__.py +2 -0
- data/pulpcore/client/__init__.py +2 -0
- data/pulpcore/client/pulp_2to3_migration/__init__.py +42 -0
- data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
- data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +609 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2content_api.py +317 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2repositories_api.py +289 -0
- data/pulpcore/client/pulp_2to3_migration/api_client.py +647 -0
- data/pulpcore/client/pulp_2to3_migration/configuration.py +387 -0
- data/pulpcore/client/pulp_2to3_migration/exceptions.py +120 -0
- data/pulpcore/client/pulp_2to3_migration/models/__init__.py +25 -0
- data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +123 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response200.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2001.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2002.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +150 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +177 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_read.py +177 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_read.py +353 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_read.py +441 -0
- data/pulpcore/client/pulp_2to3_migration/rest.py +296 -0
- data/requirements.txt +6 -0
- data/setup.cfg +2 -0
- data/setup.py +41 -0
- data/spec/api/migration_plans_api_spec.rb +2 -2
- data/spec/api/pulp2content_api_spec.rb +1 -1
- data/spec/api/pulp2repositories_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/pulp2to3_migration_migration_plan_read_spec.rb +53 -0
- data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_read_spec.rb} +12 -6
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_read_spec.rb} +6 -6
- data/test-requirements.txt +3 -0
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +53 -0
- data/test/test_inline_response200.py +67 -0
- data/test/test_inline_response2001.py +79 -0
- data/test/test_inline_response2002.py +89 -0
- data/test/test_migration_plan_run.py +53 -0
- data/test/test_migration_plans_api.py +68 -0
- data/test/test_pulp2content_api.py +47 -0
- data/test/test_pulp2repositories_api.py +47 -0
- data/test/test_pulp2to3_migration_migration_plan.py +55 -0
- data/test/test_pulp2to3_migration_migration_plan_read.py +55 -0
- data/test/test_pulp2to3_migration_pulp2_content_read.py +64 -0
- data/test/test_pulp2to3_migration_pulp2_repository_read.py +68 -0
- data/tox.ini +9 -0
- metadata +53 -10
data/requirements.txt
ADDED
data/setup.cfg
ADDED
data/setup.py
ADDED
@@ -0,0 +1,41 @@
|
|
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.0b3"
|
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
|
+
)
|
@@ -37,7 +37,7 @@ describe 'MigrationPlansApi' do
|
|
37
37
|
# MigrationPlan ViewSet.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [Pulp2to3MigrationMigrationPlanRead]
|
41
41
|
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -79,7 +79,7 @@ describe 'MigrationPlansApi' do
|
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @option opts [String] :fields A list of fields to include in the response.
|
81
81
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
82
|
-
# @return [
|
82
|
+
# @return [Pulp2to3MigrationMigrationPlanRead]
|
83
83
|
describe 'read test' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -66,7 +66,7 @@ describe 'Pulp2contentApi' do
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
67
|
# @option opts [String] :fields A list of fields to include in the response.
|
68
68
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
69
|
-
# @return [
|
69
|
+
# @return [Pulp2to3MigrationPulp2ContentRead]
|
70
70
|
describe 'read test' do
|
71
71
|
it 'should work' do
|
72
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -59,7 +59,7 @@ describe 'Pulp2repositoriesApi' do
|
|
59
59
|
# @param [Hash] opts the optional parameters
|
60
60
|
# @option opts [String] :fields A list of fields to include in the response.
|
61
61
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
62
|
-
# @return [
|
62
|
+
# @return [Pulp2to3MigrationPulp2RepositoryRead]
|
63
63
|
describe 'read test' do
|
64
64
|
it 'should work' do
|
65
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe Pulp2to3MigrationClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# Pulp2to3MigrationClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe Pulp2to3MigrationClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Pulp2to3MigrationMigrationPlanRead' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Pulp2to3MigrationMigrationPlanRead' do
|
31
|
+
it 'should create an instance of Pulp2to3MigrationMigrationPlanRead' do
|
32
|
+
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "pulp_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "pulp_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "plan"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Pulp2to3MigrationClient::
|
17
|
+
# Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'Pulp2to3MigrationPulp2ContentRead' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = Pulp2to3MigrationClient::
|
23
|
+
@instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::
|
30
|
+
describe 'test an instance of Pulp2to3MigrationPulp2ContentRead' do
|
31
|
+
it 'should create an instance of Pulp2to3MigrationPulp2ContentRead' do
|
32
|
+
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "pulp_href"' do
|
@@ -80,4 +80,10 @@ describe 'Pulp2to3MigrationPulp2Content' do
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
describe 'test attribute "pulp3_repository_version"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
83
89
|
end
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Pulp2to3MigrationClient::
|
17
|
+
# Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'Pulp2to3MigrationPulp2RepositoryRead' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = Pulp2to3MigrationClient::
|
23
|
+
@instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::
|
30
|
+
describe 'test an instance of Pulp2to3MigrationPulp2RepositoryRead' do
|
31
|
+
it 'should create an instance of Pulp2to3MigrationPulp2RepositoryRead' do
|
32
|
+
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "pulp_href"' do
|
data/test/__init__.py
ADDED
File without changes
|
@@ -0,0 +1,53 @@
|
|
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()
|
@@ -0,0 +1,67 @@
|
|
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()
|
@@ -0,0 +1,79 @@
|
|
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()
|