pulp_rpm_client 3.0.0b3.dev.1559835992
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_rpm_client might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +134 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentApi.md +396 -0
- data/docs/DistributionsApi.md +352 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/Package.md +95 -0
- data/docs/PublicationsApi.md +229 -0
- data/docs/RemotesApi.md +412 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RpmApi.md +128 -0
- data/docs/RpmDistribution.md +29 -0
- data/docs/RpmPublication.md +27 -0
- data/docs/RpmRemote.md +47 -0
- data/docs/UpdateRecord.md +55 -0
- data/git_push.sh +55 -0
- data/lib/pulp_rpm_client/api/content_api.rb +482 -0
- data/lib/pulp_rpm_client/api/distributions_api.rb +430 -0
- data/lib/pulp_rpm_client/api/publications_api.rb +273 -0
- data/lib/pulp_rpm_client/api/remotes_api.rb +506 -0
- data/lib/pulp_rpm_client/api/rpm_api.rb +164 -0
- data/lib/pulp_rpm_client/api_client.rb +386 -0
- data/lib/pulp_rpm_client/api_error.rb +57 -0
- data/lib/pulp_rpm_client/configuration.rb +248 -0
- data/lib/pulp_rpm_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_rpm_client/models/inline_response200.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2002.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2003.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2004.rb +235 -0
- data/lib/pulp_rpm_client/models/package.rb +983 -0
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +214 -0
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +337 -0
- data/lib/pulp_rpm_client/models/rpm_publication.rb +258 -0
- data/lib/pulp_rpm_client/models/rpm_remote.rb +549 -0
- data/lib/pulp_rpm_client/models/update_record.rb +764 -0
- data/lib/pulp_rpm_client/version.rb +15 -0
- data/lib/pulp_rpm_client.rb +56 -0
- data/pulp_rpm_client.gemspec +45 -0
- data/spec/api/content_api_spec.rb +137 -0
- data/spec/api/distributions_api_spec.rb +116 -0
- data/spec/api/publications_api_spec.rb +85 -0
- data/spec/api/remotes_api_spec.rb +131 -0
- data/spec/api/rpm_api_spec.rb +63 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/package_spec.rb +275 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/rpm_distribution_spec.rb +77 -0
- data/spec/models/rpm_publication_spec.rb +71 -0
- data/spec/models/rpm_remote_spec.rb +135 -0
- data/spec/models/update_record_spec.rb +155 -0
- data/spec/spec_helper.rb +111 -0
- metadata +309 -0
@@ -0,0 +1,15 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module PulpRpmClient
|
14
|
+
VERSION = '3.0.0b3.dev.1559835992'
|
15
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'pulp_rpm_client/api_client'
|
15
|
+
require 'pulp_rpm_client/api_error'
|
16
|
+
require 'pulp_rpm_client/version'
|
17
|
+
require 'pulp_rpm_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'pulp_rpm_client/models/async_operation_response'
|
21
|
+
require 'pulp_rpm_client/models/inline_response200'
|
22
|
+
require 'pulp_rpm_client/models/inline_response2001'
|
23
|
+
require 'pulp_rpm_client/models/inline_response2002'
|
24
|
+
require 'pulp_rpm_client/models/inline_response2003'
|
25
|
+
require 'pulp_rpm_client/models/inline_response2004'
|
26
|
+
require 'pulp_rpm_client/models/package'
|
27
|
+
require 'pulp_rpm_client/models/repository_sync_url'
|
28
|
+
require 'pulp_rpm_client/models/rpm_distribution'
|
29
|
+
require 'pulp_rpm_client/models/rpm_publication'
|
30
|
+
require 'pulp_rpm_client/models/rpm_remote'
|
31
|
+
require 'pulp_rpm_client/models/update_record'
|
32
|
+
|
33
|
+
# APIs
|
34
|
+
require 'pulp_rpm_client/api/content_api'
|
35
|
+
require 'pulp_rpm_client/api/distributions_api'
|
36
|
+
require 'pulp_rpm_client/api/publications_api'
|
37
|
+
require 'pulp_rpm_client/api/remotes_api'
|
38
|
+
require 'pulp_rpm_client/api/rpm_api'
|
39
|
+
|
40
|
+
module PulpRpmClient
|
41
|
+
class << self
|
42
|
+
# Customize default settings for the SDK using block.
|
43
|
+
# PulpRpmClient.configure do |config|
|
44
|
+
# config.username = "xxx"
|
45
|
+
# config.password = "xxx"
|
46
|
+
# end
|
47
|
+
# If no block given, return the default Configuration object.
|
48
|
+
def configure
|
49
|
+
if block_given?
|
50
|
+
yield(Configuration.default)
|
51
|
+
else
|
52
|
+
Configuration.default
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Pulp 3 API
|
5
|
+
|
6
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v3
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 4.0.2-SNAPSHOT
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "pulp_rpm_client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "pulp_rpm_client"
|
20
|
+
s.version = PulpRpmClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
23
|
+
s.email = [""]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "Pulp 3 API Ruby Gem"
|
26
|
+
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
27
|
+
s.license = 'GPLv2'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
@@ -0,0 +1,137 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::ContentApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::ContentApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentApi' do
|
30
|
+
it 'should create an instance of ContentApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::ContentApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for content_rpm_advisories_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 '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
|
84
|
+
# Create a package
|
85
|
+
# Create a new Package from a request.
|
86
|
+
# @param data
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [Package]
|
89
|
+
describe 'content_rpm_packages_create test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for content_rpm_packages_list
|
96
|
+
# List packages
|
97
|
+
# 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
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :name Filter results where name matches value
|
100
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
101
|
+
# @option opts [String] :epoch Filter results where epoch matches value
|
102
|
+
# @option opts [String] :epoch__in Filter results where epoch is in a comma-separated list of values
|
103
|
+
# @option opts [String] :version Filter results where version matches value
|
104
|
+
# @option opts [String] :version__in Filter results where version is in a comma-separated list of values
|
105
|
+
# @option opts [String] :release Filter results where release matches value
|
106
|
+
# @option opts [String] :release__in Filter results where release is in a comma-separated list of values
|
107
|
+
# @option opts [String] :arch Filter results where arch matches value
|
108
|
+
# @option opts [String] :arch__in Filter results where arch is in a comma-separated list of values
|
109
|
+
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
110
|
+
# @option opts [String] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
111
|
+
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
112
|
+
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
113
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
114
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
115
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
116
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
117
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
118
|
+
# @return [InlineResponse2001]
|
119
|
+
describe 'content_rpm_packages_list test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# unit tests for content_rpm_packages_read
|
126
|
+
# Inspect a package
|
127
|
+
# 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
|
+
# @param package_href URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @return [Package]
|
131
|
+
describe 'content_rpm_packages_read test' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
@@ -0,0 +1,116 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::DistributionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DistributionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::DistributionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DistributionsApi' do
|
30
|
+
it 'should create an instance of DistributionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::DistributionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for distributions_rpm_rpm_create
|
36
|
+
# Create a rpm distribution
|
37
|
+
# Trigger an asynchronous create task
|
38
|
+
# @param data
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'distributions_rpm_rpm_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 distributions_rpm_rpm_delete
|
48
|
+
# Delete a rpm distribution
|
49
|
+
# Trigger an asynchronous delete task
|
50
|
+
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe 'distributions_rpm_rpm_delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for distributions_rpm_rpm_list
|
60
|
+
# List rpm distributions
|
61
|
+
# ViewSet for RPM Distributions.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :name
|
64
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
|
+
# @option opts [String] :base_path
|
66
|
+
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
67
|
+
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
68
|
+
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
69
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
70
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
71
|
+
# @return [InlineResponse2002]
|
72
|
+
describe 'distributions_rpm_rpm_list test' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# unit tests for distributions_rpm_rpm_partial_update
|
79
|
+
# Partially update a rpm distribution
|
80
|
+
# Trigger an asynchronous partial update task
|
81
|
+
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
82
|
+
# @param data
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @return [AsyncOperationResponse]
|
85
|
+
describe 'distributions_rpm_rpm_partial_update test' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# unit tests for distributions_rpm_rpm_read
|
92
|
+
# Inspect a rpm distribution
|
93
|
+
# ViewSet for RPM Distributions.
|
94
|
+
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [RpmDistribution]
|
97
|
+
describe 'distributions_rpm_rpm_read test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# unit tests for distributions_rpm_rpm_update
|
104
|
+
# Update a rpm distribution
|
105
|
+
# Trigger an asynchronous update task
|
106
|
+
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
107
|
+
# @param data
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @return [AsyncOperationResponse]
|
110
|
+
describe 'distributions_rpm_rpm_update test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::PublicationsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PublicationsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::PublicationsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PublicationsApi' do
|
30
|
+
it 'should create an instance of PublicationsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::PublicationsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for publications_rpm_rpm_create
|
36
|
+
# Create a rpm publication
|
37
|
+
# Trigger an asynchronous task to create a new RPM content publication.
|
38
|
+
# @param data
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'publications_rpm_rpm_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 publications_rpm_rpm_delete
|
48
|
+
# Delete a rpm publication
|
49
|
+
# ViewSet for Rpm Publications.
|
50
|
+
# @param rpm_publication_href URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'publications_rpm_rpm_delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for publications_rpm_rpm_list
|
60
|
+
# List rpm publications
|
61
|
+
# ViewSet for Rpm Publications.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
64
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
65
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
66
|
+
# @return [InlineResponse2003]
|
67
|
+
describe 'publications_rpm_rpm_list test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for publications_rpm_rpm_read
|
74
|
+
# Inspect a rpm publication
|
75
|
+
# ViewSet for Rpm Publications.
|
76
|
+
# @param rpm_publication_href URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [RpmPublication]
|
79
|
+
describe 'publications_rpm_rpm_read test' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
@@ -0,0 +1,131 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::RemotesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RemotesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::RemotesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RemotesApi' do
|
30
|
+
it 'should create an instance of RemotesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::RemotesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for remotes_rpm_rpm_create
|
36
|
+
# Create a rpm remote
|
37
|
+
# A ViewSet for RpmRemote.
|
38
|
+
# @param data
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [RpmRemote]
|
41
|
+
describe 'remotes_rpm_rpm_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 remotes_rpm_rpm_delete
|
48
|
+
# Delete a rpm remote
|
49
|
+
# Trigger an asynchronous delete task
|
50
|
+
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe 'remotes_rpm_rpm_delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for remotes_rpm_rpm_list
|
60
|
+
# List rpm remotes
|
61
|
+
# A ViewSet for RpmRemote.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :name
|
64
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
|
+
# @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
|
66
|
+
# @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
|
67
|
+
# @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
|
68
|
+
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
69
|
+
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
70
|
+
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
71
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
72
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
73
|
+
# @return [InlineResponse2004]
|
74
|
+
describe 'remotes_rpm_rpm_list test' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# unit tests for remotes_rpm_rpm_partial_update
|
81
|
+
# Partially update a rpm remote
|
82
|
+
# Trigger an asynchronous partial update task
|
83
|
+
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
84
|
+
# @param data
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [AsyncOperationResponse]
|
87
|
+
describe 'remotes_rpm_rpm_partial_update test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit tests for remotes_rpm_rpm_read
|
94
|
+
# Inspect a rpm remote
|
95
|
+
# A ViewSet for RpmRemote.
|
96
|
+
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [RpmRemote]
|
99
|
+
describe 'remotes_rpm_rpm_read test' do
|
100
|
+
it 'should work' do
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# unit tests for remotes_rpm_rpm_sync
|
106
|
+
# Sync from remote
|
107
|
+
# Trigger an asynchronous task to sync RPM content.
|
108
|
+
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
109
|
+
# @param data
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [AsyncOperationResponse]
|
112
|
+
describe 'remotes_rpm_rpm_sync test' do
|
113
|
+
it 'should work' do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# unit tests for remotes_rpm_rpm_update
|
119
|
+
# Update a rpm remote
|
120
|
+
# Trigger an asynchronous update task
|
121
|
+
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
122
|
+
# @param data
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [AsyncOperationResponse]
|
125
|
+
describe 'remotes_rpm_rpm_update test' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
@@ -0,0 +1,63 @@
|
|
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.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::RpmApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RpmApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::RpmApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RpmApi' do
|
30
|
+
it 'should create an instance of RpmApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::RpmApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for copy_content
|
36
|
+
# Copy content
|
37
|
+
# Trigger an asynchronous task to copy RPM contentfrom one repository into another, creating a newrepository version.
|
38
|
+
# @param dest_repo A URI of the repository.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :source_repo A URI of the repository.
|
41
|
+
# @option opts [String] :source_repo_version A URI of the repository version
|
42
|
+
# @option opts [Array<String>] :types A list of types to copy [\"package\", \"advisory\"]
|
43
|
+
# @return [AsyncOperationResponse]
|
44
|
+
describe 'copy_content test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for upload_rpm_package
|
51
|
+
# Upload a package
|
52
|
+
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
53
|
+
# @param file The rpm file.
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @option opts [String] :repository A URI of the repository.
|
56
|
+
# @return [AsyncOperationResponse]
|
57
|
+
describe 'upload_rpm_package test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|