pulpcore_client 3.14.19 → 3.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +1 -1
- data/docs/ContentguardsApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +473 -0
- data/docs/ExportersFilesystemApi.md +362 -0
- data/docs/ExportersFilesystemExportsApi.md +243 -0
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/FilesystemExport.md +21 -0
- data/docs/FilesystemExportResponse.md +25 -0
- data/docs/FilesystemExporter.md +21 -0
- data/docs/FilesystemExporterResponse.md +25 -0
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsModelPermissionsApi.md +1 -1
- data/docs/GroupsObjectPermissionsApi.md +1 -1
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/MethodEnum.md +16 -0
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanup.md +3 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PaginatedFilesystemExportResponseList.md +23 -0
- data/docs/PaginatedFilesystemExporterResponseList.md +23 -0
- data/docs/PaginatedRBACContentGuardResponseList.md +23 -0
- data/docs/PatchedFilesystemExporter.md +21 -0
- data/docs/PatchedRBACContentGuard.md +19 -0
- data/docs/PublicationsApi.md +1 -1
- data/docs/RBACContentGuard.md +19 -0
- data/docs/RBACContentGuardPermission.md +19 -0
- data/docs/RBACContentGuardResponse.md +27 -0
- data/docs/ReclaimSpace.md +19 -0
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +1 -1
- data/docs/RepositoriesReclaimSpaceApi.md +61 -0
- data/docs/RepositoryResponse.md +3 -3
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TasksApi.md +1 -1
- data/docs/UploadsApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/docs/WorkersApi.md +1 -1
- data/git_push.sh +58 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +580 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +442 -0
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +297 -0
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +84 -0
- data/lib/pulpcore_client/api_client.rb +5 -2
- data/lib/pulpcore_client/configuration.rb +2 -3
- data/lib/pulpcore_client/models/filesystem_export.rb +229 -0
- data/lib/pulpcore_client/models/filesystem_export_response.rb +250 -0
- data/lib/pulpcore_client/models/filesystem_exporter.rb +238 -0
- data/lib/pulpcore_client/models/filesystem_exporter_response.rb +257 -0
- data/lib/pulpcore_client/models/method_enum.rb +37 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +17 -4
- data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +228 -0
- data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +219 -0
- data/lib/pulpcore_client/models/rbac_content_guard.rb +224 -0
- data/lib/pulpcore_client/models/rbac_content_guard_permission.rb +219 -0
- data/lib/pulpcore_client/models/rbac_content_guard_response.rb +261 -0
- data/lib/pulpcore_client/models/reclaim_space.rb +227 -0
- data/lib/pulpcore_client/models/repository_response.rb +17 -16
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +18 -0
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/contentguards_rbac_api_spec.rb +146 -0
- data/spec/api/exporters_filesystem_api_spec.rb +120 -0
- data/spec/api/exporters_filesystem_exports_api_spec.rb +91 -0
- data/spec/api/repositories_reclaim_space_api_spec.rb +46 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/filesystem_export_response_spec.rb +65 -0
- data/spec/models/filesystem_export_spec.rb +53 -0
- data/spec/models/filesystem_exporter_response_spec.rb +65 -0
- data/spec/models/filesystem_exporter_spec.rb +53 -0
- data/spec/models/method_enum_spec.rb +35 -0
- data/spec/models/orphans_cleanup_spec.rb +6 -0
- data/spec/models/paginated_filesystem_export_response_list_spec.rb +59 -0
- data/spec/models/paginated_filesystem_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_rbac_content_guard_response_list_spec.rb +59 -0
- data/spec/models/patched_filesystem_exporter_spec.rb +53 -0
- data/spec/models/patched_rbac_content_guard_spec.rb +47 -0
- data/spec/models/rbac_content_guard_permission_spec.rb +47 -0
- data/spec/models/rbac_content_guard_response_spec.rb +71 -0
- data/spec/models/rbac_content_guard_spec.rb +47 -0
- data/spec/models/reclaim_space_spec.rb +47 -0
- data/spec/models/repository_response_spec.rb +1 -1
- metadata +158 -91
@@ -0,0 +1,146 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::ContentguardsRbacApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentguardsRbacApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::ContentguardsRbacApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentguardsRbacApi' do
|
30
|
+
it 'should create an instance of ContentguardsRbacApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::ContentguardsRbacApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for assign_permission
|
36
|
+
# Add download permission
|
37
|
+
# Give users and groups the `download` permission
|
38
|
+
# @param r_b_a_c_content_guard_href
|
39
|
+
# @param rbac_content_guard_permission
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [RBACContentGuardResponse]
|
42
|
+
describe 'assign_permission test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for create
|
49
|
+
# Create a rbac content guard
|
50
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
51
|
+
# @param rbac_content_guard
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [RBACContentGuardResponse]
|
54
|
+
describe 'create test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for delete
|
61
|
+
# Delete a rbac content guard
|
62
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
63
|
+
# @param r_b_a_c_content_guard_href
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [nil]
|
66
|
+
describe 'delete test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for list
|
73
|
+
# List rbac content guards
|
74
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
77
|
+
# @option opts [String] :name
|
78
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
79
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
80
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
81
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
82
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
83
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
84
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
85
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
86
|
+
# @return [PaginatedRBACContentGuardResponseList]
|
87
|
+
describe 'list 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 partial_update
|
94
|
+
# Update a rbac content guard
|
95
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
96
|
+
# @param r_b_a_c_content_guard_href
|
97
|
+
# @param patched_rbac_content_guard
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [RBACContentGuardResponse]
|
100
|
+
describe 'partial_update test' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for read
|
107
|
+
# Inspect a rbac content guard
|
108
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
109
|
+
# @param r_b_a_c_content_guard_href
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
112
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
113
|
+
# @return [RBACContentGuardResponse]
|
114
|
+
describe 'read test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# unit tests for remove_permission
|
121
|
+
# Remove download permission
|
122
|
+
# Remove `download` permission from users and groups
|
123
|
+
# @param r_b_a_c_content_guard_href
|
124
|
+
# @param rbac_content_guard_permission
|
125
|
+
# @param [Hash] opts the optional parameters
|
126
|
+
# @return [RBACContentGuardResponse]
|
127
|
+
describe 'remove_permission test' do
|
128
|
+
it 'should work' do
|
129
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# unit tests for update
|
134
|
+
# Update a rbac content guard
|
135
|
+
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
136
|
+
# @param r_b_a_c_content_guard_href
|
137
|
+
# @param rbac_content_guard
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @return [RBACContentGuardResponse]
|
140
|
+
describe 'update test' do
|
141
|
+
it 'should work' do
|
142
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
end
|
@@ -0,0 +1,120 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::ExportersFilesystemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ExportersFilesystemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::ExportersFilesystemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ExportersFilesystemApi' do
|
30
|
+
it 'should create an instance of ExportersFilesystemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::ExportersFilesystemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a filesystem exporter
|
37
|
+
# Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
|
38
|
+
# @param filesystem_exporter
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [FilesystemExporterResponse]
|
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 delete
|
48
|
+
# Delete a filesystem exporter
|
49
|
+
# Trigger an asynchronous delete task
|
50
|
+
# @param filesystem_exporter_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe '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 list
|
60
|
+
# List filesystem exporters
|
61
|
+
# Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
+
# @option opts [String] :name
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
71
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
|
+
# @return [PaginatedFilesystemExporterResponseList]
|
74
|
+
describe '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 partial_update
|
81
|
+
# Update a filesystem exporter
|
82
|
+
# Trigger an asynchronous partial update task
|
83
|
+
# @param filesystem_exporter_href
|
84
|
+
# @param patched_filesystem_exporter
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [AsyncOperationResponse]
|
87
|
+
describe '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 read
|
94
|
+
# Inspect a filesystem exporter
|
95
|
+
# Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
|
96
|
+
# @param filesystem_exporter_href
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
+
# @return [FilesystemExporterResponse]
|
101
|
+
describe 'read test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for update
|
108
|
+
# Update a filesystem exporter
|
109
|
+
# Trigger an asynchronous update task
|
110
|
+
# @param filesystem_exporter_href
|
111
|
+
# @param filesystem_exporter
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [AsyncOperationResponse]
|
114
|
+
describe 'update test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::ExportersFilesystemExportsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ExportersFilesystemExportsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::ExportersFilesystemExportsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ExportersFilesystemExportsApi' do
|
30
|
+
it 'should create an instance of ExportersFilesystemExportsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::ExportersFilesystemExportsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a filesystem export
|
37
|
+
# Trigger an asynchronous task to export files to the filesystem
|
38
|
+
# @param filesystem_exporter_href
|
39
|
+
# @param filesystem_export
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [AsyncOperationResponse]
|
42
|
+
describe 'create test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete
|
49
|
+
# Delete a filesystem export
|
50
|
+
# Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
|
51
|
+
# @param filesystem_filesystem_export_href
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [nil]
|
54
|
+
describe 'delete test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for list
|
61
|
+
# List filesystem exports
|
62
|
+
# Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
|
63
|
+
# @param filesystem_exporter_href
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
66
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
68
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
69
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
|
+
# @return [PaginatedFilesystemExportResponseList]
|
71
|
+
describe 'list test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# unit tests for read
|
78
|
+
# Inspect a filesystem export
|
79
|
+
# Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
|
80
|
+
# @param filesystem_filesystem_export_href
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
83
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
84
|
+
# @return [FilesystemExportResponse]
|
85
|
+
describe 'read 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
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::RepositoriesReclaimSpaceApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoriesReclaimSpaceApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::RepositoriesReclaimSpaceApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoriesReclaimSpaceApi' do
|
30
|
+
it 'should create an instance of RepositoriesReclaimSpaceApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::RepositoriesReclaimSpaceApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for reclaim
|
36
|
+
# Trigger an asynchronous space reclaim operation.
|
37
|
+
# @param reclaim_space
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [AsyncOperationResponse]
|
40
|
+
describe 'reclaim test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpcoreClient::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("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpcoreClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::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("
|
31
|
+
# expect(config.base_url).to eq("https://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("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -0,0 +1,65 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::FilesystemExportResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'FilesystemExportResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::FilesystemExportResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of FilesystemExportResponse' do
|
31
|
+
it 'should create an instance of FilesystemExportResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::FilesystemExportResponse)
|
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 "task"' 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
|
+
describe 'test attribute "exported_resources"' 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
|
+
describe 'test attribute "params"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::FilesystemExport
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'FilesystemExport' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::FilesystemExport.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of FilesystemExport' do
|
31
|
+
it 'should create an instance of FilesystemExport' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::FilesystemExport)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "task"' 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 "publication"' 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 "repository_version"' 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
|
@@ -0,0 +1,65 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::FilesystemExporterResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'FilesystemExporterResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::FilesystemExporterResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of FilesystemExporterResponse' do
|
31
|
+
it 'should create an instance of FilesystemExporterResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::FilesystemExporterResponse)
|
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 "name"' 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
|
+
describe 'test attribute "path"' 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
|
+
describe 'test attribute "method"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::FilesystemExporter
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'FilesystemExporter' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::FilesystemExporter.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of FilesystemExporter' do
|
31
|
+
it 'should create an instance of FilesystemExporter' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::FilesystemExporter)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' 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 "path"' 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 "method"' 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
|