pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01595705725
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -20
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MigrationPlansApi.md +39 -43
- data/docs/Pulp2ContentApi.md +152 -0
- data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +27 -29
- data/docs/Pulp2to3MigrationMigrationPlan.md +1 -5
- data/docs/Pulp2to3MigrationMigrationPlanResponse.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentResponse.md} +3 -3
- data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md} +6 -6
- data/lib/pulp_2to3_migration_client.rb +7 -6
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +42 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -33
- data/lib/pulp_2to3_migration_client/api_client.rb +2 -2
- data/lib/pulp_2to3_migration_client/api_error.rb +2 -2
- data/lib/pulp_2to3_migration_client/configuration.rb +3 -3
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +4 -22
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +232 -0
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_response.rb} +7 -59
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_response.rb} +11 -108
- data/lib/pulp_2to3_migration_client/version.rb +3 -3
- data/pulp_2to3_migration_client.gemspec +4 -4
- data/spec/api/migration_plans_api_spec.rb +10 -14
- data/spec/api/pulp2_content_api_spec.rb +74 -0
- data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -17
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/migration_plan_run_spec.rb +2 -2
- data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +53 -0
- data/spec/models/pulp2to3_migration_migration_plan_spec.rb +2 -14
- data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_response_spec.rb} +8 -8
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +24 -20
- data/docs/Pulp2contentApi.md +0 -154
- data/spec/api/pulp2content_api_spec.rb +0 -76
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
-
|
16
|
+
# A serializer for the Pulp2Repositories
|
17
|
+
class Pulp2to3MigrationPulp2RepositoryResponse
|
17
18
|
attr_accessor :pulp_href
|
18
19
|
|
19
20
|
# Timestamp of creation.
|
@@ -32,16 +33,12 @@ module Pulp2to3MigrationClient
|
|
32
33
|
# RepositoryVersion to be served
|
33
34
|
attr_accessor :pulp3_repository_version
|
34
35
|
|
35
|
-
# Get pulp3_remote_href from pulp2repo
|
36
36
|
attr_accessor :pulp3_remote_href
|
37
37
|
|
38
|
-
# Get pulp3_publication_href from pulp3_repository_version
|
39
38
|
attr_accessor :pulp3_publication_href
|
40
39
|
|
41
|
-
# Get pulp3_distribution_hrefs from pulp3_repository_version
|
42
40
|
attr_accessor :pulp3_distribution_hrefs
|
43
41
|
|
44
|
-
# Get pulp3_repository_href from pulp2repo
|
45
42
|
attr_accessor :pulp3_repository_href
|
46
43
|
|
47
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -73,10 +70,10 @@ module Pulp2to3MigrationClient
|
|
73
70
|
:'is_migrated' => :'Boolean',
|
74
71
|
:'not_in_plan' => :'Boolean',
|
75
72
|
:'pulp3_repository_version' => :'String',
|
76
|
-
:'pulp3_remote_href' => :'
|
77
|
-
:'pulp3_publication_href' => :'
|
78
|
-
:'pulp3_distribution_hrefs' => :'
|
79
|
-
:'pulp3_repository_href' => :'
|
73
|
+
:'pulp3_remote_href' => :'Object',
|
74
|
+
:'pulp3_publication_href' => :'Object',
|
75
|
+
:'pulp3_distribution_hrefs' => :'Object',
|
76
|
+
:'pulp3_repository_href' => :'Object'
|
80
77
|
}
|
81
78
|
end
|
82
79
|
|
@@ -91,13 +88,13 @@ module Pulp2to3MigrationClient
|
|
91
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
92
89
|
def initialize(attributes = {})
|
93
90
|
if (!attributes.is_a?(Hash))
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryResponse` initialize method"
|
95
92
|
end
|
96
93
|
|
97
94
|
# check to see if the attribute exists and convert string to symbol for hash key
|
98
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
96
|
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
98
|
end
|
102
99
|
h[k.to_sym] = v
|
103
100
|
}
|
@@ -147,9 +144,7 @@ module Pulp2to3MigrationClient
|
|
147
144
|
end
|
148
145
|
|
149
146
|
if attributes.key?(:'pulp3_distribution_hrefs')
|
150
|
-
|
151
|
-
self.pulp3_distribution_hrefs = value
|
152
|
-
end
|
147
|
+
self.pulp3_distribution_hrefs = attributes[:'pulp3_distribution_hrefs']
|
153
148
|
end
|
154
149
|
|
155
150
|
if attributes.key?(:'pulp3_repository_href')
|
@@ -169,38 +164,14 @@ module Pulp2to3MigrationClient
|
|
169
164
|
invalid_properties.push('invalid value for "pulp2_object_id", the character length must be smaller than or equal to 255.')
|
170
165
|
end
|
171
166
|
|
172
|
-
if @pulp2_object_id.to_s.length < 1
|
173
|
-
invalid_properties.push('invalid value for "pulp2_object_id", the character length must be great than or equal to 1.')
|
174
|
-
end
|
175
|
-
|
176
167
|
if @pulp2_repo_id.nil?
|
177
168
|
invalid_properties.push('invalid value for "pulp2_repo_id", pulp2_repo_id cannot be nil.')
|
178
169
|
end
|
179
170
|
|
180
|
-
if @pulp2_repo_id.to_s.length < 1
|
181
|
-
invalid_properties.push('invalid value for "pulp2_repo_id", the character length must be great than or equal to 1.')
|
182
|
-
end
|
183
|
-
|
184
171
|
if @pulp2_repo_type.nil?
|
185
172
|
invalid_properties.push('invalid value for "pulp2_repo_type", pulp2_repo_type cannot be nil.')
|
186
173
|
end
|
187
174
|
|
188
|
-
if @pulp2_repo_type.to_s.length < 1
|
189
|
-
invalid_properties.push('invalid value for "pulp2_repo_type", the character length must be great than or equal to 1.')
|
190
|
-
end
|
191
|
-
|
192
|
-
if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
|
193
|
-
invalid_properties.push('invalid value for "pulp3_remote_href", the character length must be great than or equal to 1.')
|
194
|
-
end
|
195
|
-
|
196
|
-
if !@pulp3_publication_href.nil? && @pulp3_publication_href.to_s.length < 1
|
197
|
-
invalid_properties.push('invalid value for "pulp3_publication_href", the character length must be great than or equal to 1.')
|
198
|
-
end
|
199
|
-
|
200
|
-
if !@pulp3_repository_href.nil? && @pulp3_repository_href.to_s.length < 1
|
201
|
-
invalid_properties.push('invalid value for "pulp3_repository_href", the character length must be great than or equal to 1.')
|
202
|
-
end
|
203
|
-
|
204
175
|
invalid_properties
|
205
176
|
end
|
206
177
|
|
@@ -209,14 +180,8 @@ module Pulp2to3MigrationClient
|
|
209
180
|
def valid?
|
210
181
|
return false if @pulp2_object_id.nil?
|
211
182
|
return false if @pulp2_object_id.to_s.length > 255
|
212
|
-
return false if @pulp2_object_id.to_s.length < 1
|
213
183
|
return false if @pulp2_repo_id.nil?
|
214
|
-
return false if @pulp2_repo_id.to_s.length < 1
|
215
184
|
return false if @pulp2_repo_type.nil?
|
216
|
-
return false if @pulp2_repo_type.to_s.length < 1
|
217
|
-
return false if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
|
218
|
-
return false if !@pulp3_publication_href.nil? && @pulp3_publication_href.to_s.length < 1
|
219
|
-
return false if !@pulp3_repository_href.nil? && @pulp3_repository_href.to_s.length < 1
|
220
185
|
true
|
221
186
|
end
|
222
187
|
|
@@ -231,71 +196,9 @@ module Pulp2to3MigrationClient
|
|
231
196
|
fail ArgumentError, 'invalid value for "pulp2_object_id", the character length must be smaller than or equal to 255.'
|
232
197
|
end
|
233
198
|
|
234
|
-
if pulp2_object_id.to_s.length < 1
|
235
|
-
fail ArgumentError, 'invalid value for "pulp2_object_id", the character length must be great than or equal to 1.'
|
236
|
-
end
|
237
|
-
|
238
199
|
@pulp2_object_id = pulp2_object_id
|
239
200
|
end
|
240
201
|
|
241
|
-
# Custom attribute writer method with validation
|
242
|
-
# @param [Object] pulp2_repo_id Value to be assigned
|
243
|
-
def pulp2_repo_id=(pulp2_repo_id)
|
244
|
-
if pulp2_repo_id.nil?
|
245
|
-
fail ArgumentError, 'pulp2_repo_id cannot be nil'
|
246
|
-
end
|
247
|
-
|
248
|
-
if pulp2_repo_id.to_s.length < 1
|
249
|
-
fail ArgumentError, 'invalid value for "pulp2_repo_id", the character length must be great than or equal to 1.'
|
250
|
-
end
|
251
|
-
|
252
|
-
@pulp2_repo_id = pulp2_repo_id
|
253
|
-
end
|
254
|
-
|
255
|
-
# Custom attribute writer method with validation
|
256
|
-
# @param [Object] pulp2_repo_type Value to be assigned
|
257
|
-
def pulp2_repo_type=(pulp2_repo_type)
|
258
|
-
if pulp2_repo_type.nil?
|
259
|
-
fail ArgumentError, 'pulp2_repo_type cannot be nil'
|
260
|
-
end
|
261
|
-
|
262
|
-
if pulp2_repo_type.to_s.length < 1
|
263
|
-
fail ArgumentError, 'invalid value for "pulp2_repo_type", the character length must be great than or equal to 1.'
|
264
|
-
end
|
265
|
-
|
266
|
-
@pulp2_repo_type = pulp2_repo_type
|
267
|
-
end
|
268
|
-
|
269
|
-
# Custom attribute writer method with validation
|
270
|
-
# @param [Object] pulp3_remote_href Value to be assigned
|
271
|
-
def pulp3_remote_href=(pulp3_remote_href)
|
272
|
-
if !pulp3_remote_href.nil? && pulp3_remote_href.to_s.length < 1
|
273
|
-
fail ArgumentError, 'invalid value for "pulp3_remote_href", the character length must be great than or equal to 1.'
|
274
|
-
end
|
275
|
-
|
276
|
-
@pulp3_remote_href = pulp3_remote_href
|
277
|
-
end
|
278
|
-
|
279
|
-
# Custom attribute writer method with validation
|
280
|
-
# @param [Object] pulp3_publication_href Value to be assigned
|
281
|
-
def pulp3_publication_href=(pulp3_publication_href)
|
282
|
-
if !pulp3_publication_href.nil? && pulp3_publication_href.to_s.length < 1
|
283
|
-
fail ArgumentError, 'invalid value for "pulp3_publication_href", the character length must be great than or equal to 1.'
|
284
|
-
end
|
285
|
-
|
286
|
-
@pulp3_publication_href = pulp3_publication_href
|
287
|
-
end
|
288
|
-
|
289
|
-
# Custom attribute writer method with validation
|
290
|
-
# @param [Object] pulp3_repository_href Value to be assigned
|
291
|
-
def pulp3_repository_href=(pulp3_repository_href)
|
292
|
-
if !pulp3_repository_href.nil? && pulp3_repository_href.to_s.length < 1
|
293
|
-
fail ArgumentError, 'invalid value for "pulp3_repository_href", the character length must be great than or equal to 1.'
|
294
|
-
end
|
295
|
-
|
296
|
-
@pulp3_repository_href = pulp3_repository_href
|
297
|
-
end
|
298
|
-
|
299
202
|
# Checks equality by comparing each attribute.
|
300
203
|
# @param [Object] Object to be compared
|
301
204
|
def ==(o)
|
@@ -1,15 +1,15 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Pulp2to3MigrationClient
|
14
|
-
VERSION = '0.3.0b1.
|
14
|
+
VERSION = '0.3.0b1.dev01595705725'
|
15
15
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
=begin
|
4
4
|
#Pulp 3 API
|
5
5
|
|
6
|
-
#
|
6
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
7
7
|
|
8
8
|
The version of the OpenAPI document: v3
|
9
|
-
|
9
|
+
Contact: pulp-list@redhat.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 4.2.3
|
12
12
|
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.version = Pulp2to3MigrationClient::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
|
-
s.email = [""]
|
23
|
+
s.email = ["pulp-list@redhat.com"]
|
24
24
|
s.homepage = "https://openapi-generator.tech"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
|
-
s.description = "
|
26
|
+
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
27
|
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -33,11 +33,10 @@ describe 'MigrationPlansApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create
|
36
|
-
# Create a migration plan
|
37
36
|
# MigrationPlan ViewSet.
|
38
|
-
# @param
|
37
|
+
# @param pulp2to3_migration_migration_plan
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
39
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
41
40
|
describe 'create test' do
|
42
41
|
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -45,9 +44,8 @@ describe 'MigrationPlansApi' do
|
|
45
44
|
end
|
46
45
|
|
47
46
|
# unit tests for delete
|
48
|
-
# Delete a migration plan
|
49
47
|
# MigrationPlan ViewSet.
|
50
|
-
# @param migration_plan_href
|
48
|
+
# @param migration_plan_href
|
51
49
|
# @param [Hash] opts the optional parameters
|
52
50
|
# @return [nil]
|
53
51
|
describe 'delete test' do
|
@@ -57,12 +55,11 @@ describe 'MigrationPlansApi' do
|
|
57
55
|
end
|
58
56
|
|
59
57
|
# unit tests for list
|
60
|
-
# List migration plans
|
61
58
|
# MigrationPlan ViewSet.
|
62
59
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
64
60
|
# @option opts [Integer] :limit Number of results to return per page.
|
65
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
63
|
# @option opts [String] :fields A list of fields to include in the response.
|
67
64
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
68
65
|
# @return [InlineResponse200]
|
@@ -73,13 +70,12 @@ describe 'MigrationPlansApi' do
|
|
73
70
|
end
|
74
71
|
|
75
72
|
# unit tests for read
|
76
|
-
# Inspect a migration plan
|
77
73
|
# MigrationPlan ViewSet.
|
78
|
-
# @param migration_plan_href
|
74
|
+
# @param migration_plan_href
|
79
75
|
# @param [Hash] opts the optional parameters
|
80
76
|
# @option opts [String] :fields A list of fields to include in the response.
|
81
77
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
82
|
-
# @return [
|
78
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
83
79
|
describe 'read test' do
|
84
80
|
it 'should work' do
|
85
81
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -89,8 +85,8 @@ describe 'MigrationPlansApi' do
|
|
89
85
|
# unit tests for run
|
90
86
|
# Run migration plan
|
91
87
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
92
|
-
# @param migration_plan_href
|
93
|
-
# @param
|
88
|
+
# @param migration_plan_href
|
89
|
+
# @param migration_plan_run
|
94
90
|
# @param [Hash] opts the optional parameters
|
95
91
|
# @return [AsyncOperationResponse]
|
96
92
|
describe 'run test' do
|
@@ -0,0 +1,74 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
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
|
+
|
16
|
+
# Unit tests for Pulp2to3MigrationClient::Pulp2ContentApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'Pulp2ContentApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of Pulp2ContentApi' do
|
30
|
+
it 'should create an instance of Pulp2ContentApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2ContentApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# ViewSet for Pulp2Content model.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
39
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
40
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
41
|
+
# @option opts [String] :pulp2_content_type_id pulp2_content_type_id
|
42
|
+
# @option opts [String] :pulp2_content_type_id__in pulp2_content_type_id__in
|
43
|
+
# @option opts [String] :pulp2_id pulp2_id
|
44
|
+
# @option opts [String] :pulp2_id__in pulp2_id__in
|
45
|
+
# @option opts [String] :pulp2_last_updated pulp2_last_updated
|
46
|
+
# @option opts [String] :pulp2_last_updated__gt pulp2_last_updated__gt
|
47
|
+
# @option opts [String] :pulp2_last_updated__gte pulp2_last_updated__gte
|
48
|
+
# @option opts [String] :pulp2_last_updated__lt pulp2_last_updated__lt
|
49
|
+
# @option opts [String] :pulp2_last_updated__lte pulp2_last_updated__lte
|
50
|
+
# @option opts [String] :pulp2_last_updated__range pulp2_last_updated__range
|
51
|
+
# @option opts [String] :pulp3_content pulp3_content
|
52
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
53
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
54
|
+
# @return [InlineResponse2001]
|
55
|
+
describe 'list test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for read
|
62
|
+
# ViewSet for Pulp2Content model.
|
63
|
+
# @param pulp2_content_href
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
66
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
67
|
+
# @return [Pulp2to3MigrationPulp2ContentResponse]
|
68
|
+
describe 'read test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,36 +13,35 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for Pulp2to3MigrationClient::
|
16
|
+
# Unit tests for Pulp2to3MigrationClient::Pulp2RepositoriesApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'Pulp2RepositoriesApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Pulp2to3MigrationClient::
|
22
|
+
@api_instance = Pulp2to3MigrationClient::Pulp2RepositoriesApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(Pulp2to3MigrationClient::
|
29
|
+
describe 'test an instance of Pulp2RepositoriesApi' do
|
30
|
+
it 'should create an instance of Pulp2RepositoriesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2RepositoriesApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for list
|
36
|
-
# List pulp2 repositorys
|
37
36
|
# ViewSet for Pulp2Repositories model.
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :
|
40
|
-
# @option opts [String] :pulp2_repo_id
|
41
|
-
# @option opts [String] :pulp2_repo_id__in Filter results where pulp2_repo_id is in a comma-separated list of values
|
42
|
-
# @option opts [String] :is_migrated
|
43
|
-
# @option opts [String] :not_in_plan
|
38
|
+
# @option opts [String] :is_migrated is_migrated
|
44
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
|
+
# @option opts [String] :not_in_plan not_in_plan
|
45
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
42
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
43
|
+
# @option opts [String] :pulp2_repo_id pulp2_repo_id
|
44
|
+
# @option opts [String] :pulp2_repo_id__in pulp2_repo_id__in
|
46
45
|
# @option opts [String] :fields A list of fields to include in the response.
|
47
46
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
48
47
|
# @return [InlineResponse2002]
|
@@ -53,13 +52,12 @@ describe 'Pulp2repositoriesApi' do
|
|
53
52
|
end
|
54
53
|
|
55
54
|
# unit tests for read
|
56
|
-
# Inspect a pulp2 repository
|
57
55
|
# ViewSet for Pulp2Repositories model.
|
58
|
-
# @param pulp2_repository_href
|
56
|
+
# @param pulp2_repository_href
|
59
57
|
# @param [Hash] opts the optional parameters
|
60
58
|
# @option opts [String] :fields A list of fields to include in the response.
|
61
59
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
62
|
-
# @return [
|
60
|
+
# @return [Pulp2to3MigrationPulp2RepositoryResponse]
|
63
61
|
describe 'read test' do
|
64
62
|
it 'should work' do
|
65
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|