pulp_rpm_client 3.0.0b3.dev.1560786621 → 3.0.0b4
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.lock +1 -1
- data/README.md +32 -32
- data/docs/ContentAdvisoriesApi.md +196 -0
- data/docs/ContentPackagesApi.md +208 -0
- data/docs/{DistributionsApi.md → DistributionsRpmApi.md} +37 -37
- data/docs/Package.md +2 -2
- data/docs/{PublicationsApi.md → PublicationsRpmApi.md} +25 -25
- data/docs/{RemotesApi.md → RemotesRpmApi.md} +43 -43
- data/docs/{RpmApi.md → RpmCopyApi.md} +4 -62
- data/docs/RpmRemote.md +3 -5
- data/docs/RpmUploadApi.md +66 -0
- data/lib/pulp_rpm_client.rb +7 -5
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
- data/lib/pulp_rpm_client/api/{distributions_api.rb → distributions_rpm_api.rb} +38 -38
- data/lib/pulp_rpm_client/api/{publications_api.rb → publications_rpm_api.rb} +24 -24
- data/lib/pulp_rpm_client/api/{remotes_api.rb → remotes_rpm_api.rb} +45 -45
- data/lib/pulp_rpm_client/api/{rpm_api.rb → rpm_copy_api.rb} +4 -72
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
- data/lib/pulp_rpm_client/models/package.rb +10 -10
- data/lib/pulp_rpm_client/models/rpm_remote.rb +4 -14
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +83 -0
- data/spec/api/{content_api_spec.rb → content_packages_api_spec.rb} +12 -60
- data/spec/api/{distributions_api_spec.rb → distributions_rpm_api_spec.rb} +18 -18
- data/spec/api/{publications_api_spec.rb → publications_rpm_api_spec.rb} +14 -14
- data/spec/api/{remotes_api_spec.rb → remotes_rpm_api_spec.rb} +20 -20
- data/spec/api/{rpm_api_spec.rb → rpm_copy_api_spec.rb} +6 -19
- data/spec/api/rpm_upload_api_spec.rb +48 -0
- data/spec/models/package_spec.rb +2 -2
- data/spec/models/rpm_remote_spec.rb +0 -6
- metadata +30 -22
- data/docs/ContentApi.md +0 -396
- data/lib/pulp_rpm_client/api/content_api.rb +0 -482
|
@@ -0,0 +1,90 @@
|
|
|
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.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module PulpRpmClient
|
|
16
|
+
class RpmUploadApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Upload a package
|
|
23
|
+
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
|
24
|
+
# @param file [File] The rpm file.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :repository A URI of the repository.
|
|
27
|
+
# @return [AsyncOperationResponse]
|
|
28
|
+
def upload_rpm_package(file, opts = {})
|
|
29
|
+
data, _status_code, _headers = upload_rpm_package_with_http_info(file, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Upload a package
|
|
34
|
+
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
|
35
|
+
# @param file [File] The rpm file.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :repository A URI of the repository.
|
|
38
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
39
|
+
def upload_rpm_package_with_http_info(file, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: RpmUploadApi.upload_rpm_package ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'file' is set
|
|
44
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling RpmUploadApi.upload_rpm_package"
|
|
46
|
+
end
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = '/rpm/upload/'
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = opts[:query_params] || {}
|
|
52
|
+
|
|
53
|
+
# header parameters
|
|
54
|
+
header_params = opts[:header_params] || {}
|
|
55
|
+
# HTTP header 'Accept' (if needed)
|
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
57
|
+
# HTTP header 'Content-Type'
|
|
58
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
59
|
+
|
|
60
|
+
# form parameters
|
|
61
|
+
form_params = opts[:form_params] || {}
|
|
62
|
+
form_params['file'] = file
|
|
63
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:body]
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: RpmUploadApi#upload_rpm_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -16,11 +16,11 @@ module PulpRpmClient
|
|
|
16
16
|
class Package
|
|
17
17
|
attr_accessor :_href
|
|
18
18
|
|
|
19
|
+
attr_accessor :_type
|
|
20
|
+
|
|
19
21
|
# Timestamp of creation.
|
|
20
22
|
attr_accessor :_created
|
|
21
23
|
|
|
22
|
-
attr_accessor :_type
|
|
23
|
-
|
|
24
24
|
# Artifact file representing the physical content
|
|
25
25
|
attr_accessor :_artifact
|
|
26
26
|
|
|
@@ -136,8 +136,8 @@ module PulpRpmClient
|
|
|
136
136
|
def self.attribute_map
|
|
137
137
|
{
|
|
138
138
|
:'_href' => :'_href',
|
|
139
|
-
:'_created' => :'_created',
|
|
140
139
|
:'_type' => :'_type',
|
|
140
|
+
:'_created' => :'_created',
|
|
141
141
|
:'_artifact' => :'_artifact',
|
|
142
142
|
:'name' => :'name',
|
|
143
143
|
:'epoch' => :'epoch',
|
|
@@ -182,8 +182,8 @@ module PulpRpmClient
|
|
|
182
182
|
def self.openapi_types
|
|
183
183
|
{
|
|
184
184
|
:'_href' => :'String',
|
|
185
|
-
:'_created' => :'DateTime',
|
|
186
185
|
:'_type' => :'String',
|
|
186
|
+
:'_created' => :'DateTime',
|
|
187
187
|
:'_artifact' => :'String',
|
|
188
188
|
:'name' => :'String',
|
|
189
189
|
:'epoch' => :'String',
|
|
@@ -243,14 +243,14 @@ module PulpRpmClient
|
|
|
243
243
|
self._href = attributes[:'_href']
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
-
if attributes.key?(:'_created')
|
|
247
|
-
self._created = attributes[:'_created']
|
|
248
|
-
end
|
|
249
|
-
|
|
250
246
|
if attributes.key?(:'_type')
|
|
251
247
|
self._type = attributes[:'_type']
|
|
252
248
|
end
|
|
253
249
|
|
|
250
|
+
if attributes.key?(:'_created')
|
|
251
|
+
self._created = attributes[:'_created']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
254
|
if attributes.key?(:'_artifact')
|
|
255
255
|
self._artifact = attributes[:'_artifact']
|
|
256
256
|
end
|
|
@@ -817,8 +817,8 @@ module PulpRpmClient
|
|
|
817
817
|
return true if self.equal?(o)
|
|
818
818
|
self.class == o.class &&
|
|
819
819
|
_href == o._href &&
|
|
820
|
-
_created == o._created &&
|
|
821
820
|
_type == o._type &&
|
|
821
|
+
_created == o._created &&
|
|
822
822
|
_artifact == o._artifact &&
|
|
823
823
|
name == o.name &&
|
|
824
824
|
epoch == o.epoch &&
|
|
@@ -867,7 +867,7 @@ module PulpRpmClient
|
|
|
867
867
|
# Calculates hash code according to all attributes.
|
|
868
868
|
# @return [Integer] Hash code
|
|
869
869
|
def hash
|
|
870
|
-
[_href,
|
|
870
|
+
[_href, _type, _created, _artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, size_archive, size_installed, size_package, time_build, time_file, relative_path].hash
|
|
871
871
|
end
|
|
872
872
|
|
|
873
873
|
# Builds the object from hash
|
|
@@ -27,13 +27,10 @@ module PulpRpmClient
|
|
|
27
27
|
# The URL of an external content source.
|
|
28
28
|
attr_accessor :url
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :validate
|
|
32
|
-
|
|
33
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server. Returns SHA256 sum on GET.
|
|
30
|
+
# A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET.
|
|
34
31
|
attr_accessor :ssl_ca_certificate
|
|
35
32
|
|
|
36
|
-
# A PEM encoded client certificate used for authentication. Returns SHA256 sum on GET.
|
|
33
|
+
# A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET.
|
|
37
34
|
attr_accessor :ssl_client_certificate
|
|
38
35
|
|
|
39
36
|
# A PEM encoded private key used for authentication. Returns SHA256 sum on GET.
|
|
@@ -57,7 +54,7 @@ module PulpRpmClient
|
|
|
57
54
|
# Total number of simultaneous connections.
|
|
58
55
|
attr_accessor :download_concurrency
|
|
59
56
|
|
|
60
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and '
|
|
57
|
+
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
|
61
58
|
attr_accessor :policy
|
|
62
59
|
|
|
63
60
|
class EnumAttributeValidator
|
|
@@ -90,7 +87,6 @@ module PulpRpmClient
|
|
|
90
87
|
:'_type' => :'_type',
|
|
91
88
|
:'name' => :'name',
|
|
92
89
|
:'url' => :'url',
|
|
93
|
-
:'validate' => :'validate',
|
|
94
90
|
:'ssl_ca_certificate' => :'ssl_ca_certificate',
|
|
95
91
|
:'ssl_client_certificate' => :'ssl_client_certificate',
|
|
96
92
|
:'ssl_client_key' => :'ssl_client_key',
|
|
@@ -112,7 +108,6 @@ module PulpRpmClient
|
|
|
112
108
|
:'_type' => :'String',
|
|
113
109
|
:'name' => :'String',
|
|
114
110
|
:'url' => :'String',
|
|
115
|
-
:'validate' => :'Boolean',
|
|
116
111
|
:'ssl_ca_certificate' => :'String',
|
|
117
112
|
:'ssl_client_certificate' => :'String',
|
|
118
113
|
:'ssl_client_key' => :'String',
|
|
@@ -161,10 +156,6 @@ module PulpRpmClient
|
|
|
161
156
|
self.url = attributes[:'url']
|
|
162
157
|
end
|
|
163
158
|
|
|
164
|
-
if attributes.key?(:'validate')
|
|
165
|
-
self.validate = attributes[:'validate']
|
|
166
|
-
end
|
|
167
|
-
|
|
168
159
|
if attributes.key?(:'ssl_ca_certificate')
|
|
169
160
|
self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
|
|
170
161
|
end
|
|
@@ -411,7 +402,6 @@ module PulpRpmClient
|
|
|
411
402
|
_type == o._type &&
|
|
412
403
|
name == o.name &&
|
|
413
404
|
url == o.url &&
|
|
414
|
-
validate == o.validate &&
|
|
415
405
|
ssl_ca_certificate == o.ssl_ca_certificate &&
|
|
416
406
|
ssl_client_certificate == o.ssl_client_certificate &&
|
|
417
407
|
ssl_client_key == o.ssl_client_key &&
|
|
@@ -433,7 +423,7 @@ module PulpRpmClient
|
|
|
433
423
|
# Calculates hash code according to all attributes.
|
|
434
424
|
# @return [Integer] Hash code
|
|
435
425
|
def hash
|
|
436
|
-
[_href, _created, _type, name, url,
|
|
426
|
+
[_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy].hash
|
|
437
427
|
end
|
|
438
428
|
|
|
439
429
|
# Builds the object from hash
|
|
@@ -0,0 +1,83 @@
|
|
|
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.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpRpmClient::ContentAdvisoriesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ContentAdvisoriesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpRpmClient::ContentAdvisoriesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ContentAdvisoriesApi' do
|
|
30
|
+
it 'should create an instance of ContentAdvisoriesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::ContentAdvisoriesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create an update record
|
|
37
|
+
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
38
|
+
# @param data
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [UpdateRecord]
|
|
41
|
+
describe 'create test' 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
|
+
# unit tests for list
|
|
48
|
+
# List update records
|
|
49
|
+
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @option opts [String] :id Filter results where id matches value
|
|
52
|
+
# @option opts [String] :id__in Filter results where id is in a comma-separated list of values
|
|
53
|
+
# @option opts [String] :status Filter results where status matches value
|
|
54
|
+
# @option opts [String] :status__in Filter results where status is in a comma-separated list of values
|
|
55
|
+
# @option opts [String] :severity Filter results where severity matches value
|
|
56
|
+
# @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
|
|
57
|
+
# @option opts [String] :type Filter results where type matches value
|
|
58
|
+
# @option opts [String] :type__in Filter results where type is in a comma-separated list of values
|
|
59
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
60
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
61
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
62
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
63
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
64
|
+
# @return [InlineResponse200]
|
|
65
|
+
describe 'list test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for read
|
|
72
|
+
# Inspect an update record
|
|
73
|
+
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
74
|
+
# @param update_record_href URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [UpdateRecord]
|
|
77
|
+
describe 'read test' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
end
|
|
@@ -13,86 +13,38 @@ OpenAPI Generator version: 4.0.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for PulpRpmClient::
|
|
16
|
+
# Unit tests for PulpRpmClient::ContentPackagesApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'ContentPackagesApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = PulpRpmClient::
|
|
22
|
+
@api_instance = PulpRpmClient::ContentPackagesApi.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(PulpRpmClient::
|
|
29
|
+
describe 'test an instance of ContentPackagesApi' do
|
|
30
|
+
it 'should create an instance of ContentPackagesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::ContentPackagesApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
36
|
-
# Create an update record
|
|
37
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
38
|
-
# @param data
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [UpdateRecord]
|
|
41
|
-
describe 'content_rpm_advisories_create test' 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
|
-
# unit tests for content_rpm_advisories_list
|
|
48
|
-
# List update records
|
|
49
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
50
|
-
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @option opts [String] :id Filter results where id matches value
|
|
52
|
-
# @option opts [String] :id__in Filter results where id is in a comma-separated list of values
|
|
53
|
-
# @option opts [String] :status Filter results where status matches value
|
|
54
|
-
# @option opts [String] :status__in Filter results where status is in a comma-separated list of values
|
|
55
|
-
# @option opts [String] :severity Filter results where severity matches value
|
|
56
|
-
# @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
|
|
57
|
-
# @option opts [String] :type Filter results where type matches value
|
|
58
|
-
# @option opts [String] :type__in Filter results where type is in a comma-separated list of values
|
|
59
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
60
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
61
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
62
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
|
63
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
|
64
|
-
# @return [InlineResponse200]
|
|
65
|
-
describe 'content_rpm_advisories_list test' do
|
|
66
|
-
it 'should work' do
|
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# unit tests for content_rpm_advisories_read
|
|
72
|
-
# Inspect an update record
|
|
73
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
|
74
|
-
# @param update_record_href URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
|
75
|
-
# @param [Hash] opts the optional parameters
|
|
76
|
-
# @return [UpdateRecord]
|
|
77
|
-
describe 'content_rpm_advisories_read test' do
|
|
78
|
-
it 'should work' do
|
|
79
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# unit tests for content_rpm_packages_create
|
|
35
|
+
# unit tests for create
|
|
84
36
|
# Create a package
|
|
85
37
|
# Create a new Package from a request.
|
|
86
38
|
# @param data
|
|
87
39
|
# @param [Hash] opts the optional parameters
|
|
88
40
|
# @return [Package]
|
|
89
|
-
describe '
|
|
41
|
+
describe 'create test' do
|
|
90
42
|
it 'should work' do
|
|
91
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
44
|
end
|
|
93
45
|
end
|
|
94
46
|
|
|
95
|
-
# unit tests for
|
|
47
|
+
# unit tests for list
|
|
96
48
|
# List packages
|
|
97
49
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
|
98
50
|
# @param [Hash] opts the optional parameters
|
|
@@ -116,19 +68,19 @@ describe 'ContentApi' do
|
|
|
116
68
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
117
69
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
118
70
|
# @return [InlineResponse2001]
|
|
119
|
-
describe '
|
|
71
|
+
describe 'list test' do
|
|
120
72
|
it 'should work' do
|
|
121
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
74
|
end
|
|
123
75
|
end
|
|
124
76
|
|
|
125
|
-
# unit tests for
|
|
77
|
+
# unit tests for read
|
|
126
78
|
# Inspect a package
|
|
127
79
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
|
128
80
|
# @param package_href URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
|
129
81
|
# @param [Hash] opts the optional parameters
|
|
130
82
|
# @return [Package]
|
|
131
|
-
describe '
|
|
83
|
+
describe 'read test' do
|
|
132
84
|
it 'should work' do
|
|
133
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
134
86
|
end
|
|
@@ -13,50 +13,50 @@ OpenAPI Generator version: 4.0.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for PulpRpmClient::
|
|
16
|
+
# Unit tests for PulpRpmClient::DistributionsRpmApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'DistributionsRpmApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = PulpRpmClient::
|
|
22
|
+
@api_instance = PulpRpmClient::DistributionsRpmApi.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(PulpRpmClient::
|
|
29
|
+
describe 'test an instance of DistributionsRpmApi' do
|
|
30
|
+
it 'should create an instance of DistributionsRpmApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::DistributionsRpmApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
35
|
+
# unit tests for create
|
|
36
36
|
# Create a rpm distribution
|
|
37
37
|
# Trigger an asynchronous create task
|
|
38
38
|
# @param data
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [AsyncOperationResponse]
|
|
41
|
-
describe '
|
|
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
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
# unit tests for
|
|
47
|
+
# unit tests for delete
|
|
48
48
|
# Delete a rpm distribution
|
|
49
49
|
# Trigger an asynchronous delete task
|
|
50
50
|
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
52
|
# @return [AsyncOperationResponse]
|
|
53
|
-
describe '
|
|
53
|
+
describe 'delete test' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
# unit tests for
|
|
59
|
+
# unit tests for list
|
|
60
60
|
# List rpm distributions
|
|
61
61
|
# ViewSet for RPM Distributions.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
@@ -69,45 +69,45 @@ describe 'DistributionsApi' do
|
|
|
69
69
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
70
70
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
71
71
|
# @return [InlineResponse2002]
|
|
72
|
-
describe '
|
|
72
|
+
describe 'list test' do
|
|
73
73
|
it 'should work' do
|
|
74
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
# unit tests for
|
|
78
|
+
# unit tests for partial_update
|
|
79
79
|
# Partially update a rpm distribution
|
|
80
80
|
# Trigger an asynchronous partial update task
|
|
81
81
|
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
82
82
|
# @param data
|
|
83
83
|
# @param [Hash] opts the optional parameters
|
|
84
84
|
# @return [AsyncOperationResponse]
|
|
85
|
-
describe '
|
|
85
|
+
describe 'partial_update test' do
|
|
86
86
|
it 'should work' do
|
|
87
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
88
88
|
end
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
# unit tests for
|
|
91
|
+
# unit tests for read
|
|
92
92
|
# Inspect a rpm distribution
|
|
93
93
|
# ViewSet for RPM Distributions.
|
|
94
94
|
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [RpmDistribution]
|
|
97
|
-
describe '
|
|
97
|
+
describe 'read test' do
|
|
98
98
|
it 'should work' do
|
|
99
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# unit tests for
|
|
103
|
+
# unit tests for update
|
|
104
104
|
# Update a rpm distribution
|
|
105
105
|
# Trigger an asynchronous update task
|
|
106
106
|
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
107
107
|
# @param data
|
|
108
108
|
# @param [Hash] opts the optional parameters
|
|
109
109
|
# @return [AsyncOperationResponse]
|
|
110
|
-
describe '
|
|
110
|
+
describe 'update test' do
|
|
111
111
|
it 'should work' do
|
|
112
112
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
113
113
|
end
|