pulp_python_client 3.11.8 → 3.12.0
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/README.md +31 -12
- data/docs/ContentPackagesApi.md +13 -19
- data/docs/DistributionsPypiApi.md +245 -41
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PackageMetadataResponse.md +3 -3
- data/docs/PublicationsPypiApi.md +237 -17
- data/docs/PypiApi.md +8 -4
- data/docs/PypiLegacyApi.md +1 -3
- data/docs/PypiMetadataApi.md +8 -4
- data/docs/PypiSimpleApi.md +1 -7
- data/docs/PythonPythonPackageContent.md +6 -6
- data/docs/PythonPythonPackageContentResponse.md +6 -6
- data/docs/RemotesPythonApi.md +245 -43
- data/docs/RepositoriesPythonApi.md +249 -53
- data/docs/RepositoriesPythonVersionsApi.md +5 -17
- data/lib/pulp_python_client/api/content_packages_api.rb +12 -21
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -24
- data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -12
- data/lib/pulp_python_client/api/pypi_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +0 -3
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_simple_api.rb +0 -9
- data/lib/pulp_python_client/api/remotes_python_api.rb +276 -27
- data/lib/pulp_python_client/api/repositories_python_api.rb +276 -30
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +0 -12
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_python_client/models/nested_role.rb +253 -0
- data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
- data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
- data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/content_packages_api_spec.rb +6 -9
- data/spec/api/distributions_pypi_api_spec.rb +54 -8
- data/spec/api/publications_pypi_api_spec.rb +54 -4
- data/spec/api/pypi_api_spec.rb +0 -1
- data/spec/api/pypi_legacy_api_spec.rb +0 -1
- data/spec/api/pypi_metadata_api_spec.rb +0 -1
- data/spec/api/pypi_simple_api_spec.rb +0 -3
- data/spec/api/remotes_python_api_spec.rb +54 -9
- data/spec/api/repositories_python_api_spec.rb +54 -10
- data/spec/api/repositories_python_versions_api_spec.rb +0 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +68 -52
|
@@ -32,12 +32,24 @@ describe 'RemotesPythonApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
37
|
+
# Add a role for this object to users/groups.
|
|
38
|
+
# @param python_python_remote_href
|
|
39
|
+
# @param nested_role
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [NestedRoleResponse]
|
|
42
|
+
describe 'add_role 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
|
+
|
|
35
48
|
# unit tests for create
|
|
36
49
|
# Create a python remote
|
|
37
50
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
|
38
51
|
# @param python_python_remote
|
|
39
52
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
53
|
# @return [PythonPythonRemoteResponse]
|
|
42
54
|
describe 'create test' do
|
|
43
55
|
it 'should work' do
|
|
@@ -50,7 +62,6 @@ describe 'RemotesPythonApi' do
|
|
|
50
62
|
# Trigger an asynchronous delete task
|
|
51
63
|
# @param python_python_remote_href
|
|
52
64
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
65
|
# @return [AsyncOperationResponse]
|
|
55
66
|
describe 'delete test' do
|
|
56
67
|
it 'should work' do
|
|
@@ -64,7 +75,6 @@ describe 'RemotesPythonApi' do
|
|
|
64
75
|
# @param config A Bandersnatch config that may be used to construct a Python Remote.
|
|
65
76
|
# @param name A unique name for this remote
|
|
66
77
|
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
68
78
|
# @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
69
79
|
# @return [PythonPythonRemoteResponse]
|
|
70
80
|
describe 'from_bandersnatch test' do
|
|
@@ -77,7 +87,6 @@ describe 'RemotesPythonApi' do
|
|
|
77
87
|
# List python remotes
|
|
78
88
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
|
79
89
|
# @param [Hash] opts the optional parameters
|
|
80
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
81
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
82
91
|
# @option opts [String] :name Filter results where name matches value
|
|
83
92
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
@@ -109,13 +118,40 @@ describe 'RemotesPythonApi' do
|
|
|
109
118
|
end
|
|
110
119
|
end
|
|
111
120
|
|
|
121
|
+
# unit tests for list_roles
|
|
122
|
+
# List roles
|
|
123
|
+
# List roles assigned to this object.
|
|
124
|
+
# @param python_python_remote_href
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
127
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
128
|
+
# @return [ObjectRolesResponse]
|
|
129
|
+
describe 'list_roles test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for my_permissions
|
|
136
|
+
# List user permissions
|
|
137
|
+
# List permissions available to the current user on this object.
|
|
138
|
+
# @param python_python_remote_href
|
|
139
|
+
# @param [Hash] opts the optional parameters
|
|
140
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
141
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
142
|
+
# @return [MyPermissionsResponse]
|
|
143
|
+
describe 'my_permissions test' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
112
149
|
# unit tests for partial_update
|
|
113
150
|
# Update a python remote
|
|
114
151
|
# Trigger an asynchronous partial update task
|
|
115
152
|
# @param python_python_remote_href
|
|
116
153
|
# @param patchedpython_python_remote
|
|
117
154
|
# @param [Hash] opts the optional parameters
|
|
118
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
119
155
|
# @return [AsyncOperationResponse]
|
|
120
156
|
describe 'partial_update test' do
|
|
121
157
|
it 'should work' do
|
|
@@ -128,7 +164,6 @@ describe 'RemotesPythonApi' do
|
|
|
128
164
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
|
129
165
|
# @param python_python_remote_href
|
|
130
166
|
# @param [Hash] opts the optional parameters
|
|
131
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
132
167
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
133
168
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
134
169
|
# @return [PythonPythonRemoteResponse]
|
|
@@ -138,13 +173,25 @@ describe 'RemotesPythonApi' do
|
|
|
138
173
|
end
|
|
139
174
|
end
|
|
140
175
|
|
|
176
|
+
# unit tests for remove_role
|
|
177
|
+
# Remove a role
|
|
178
|
+
# Remove a role for this object from users/groups.
|
|
179
|
+
# @param python_python_remote_href
|
|
180
|
+
# @param nested_role
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [NestedRoleResponse]
|
|
183
|
+
describe 'remove_role test' do
|
|
184
|
+
it 'should work' do
|
|
185
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
141
189
|
# unit tests for set_label
|
|
142
190
|
# Set a label
|
|
143
191
|
# Set a single pulp_label on the object to a specific value or null.
|
|
144
192
|
# @param python_python_remote_href
|
|
145
193
|
# @param set_label
|
|
146
194
|
# @param [Hash] opts the optional parameters
|
|
147
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
148
195
|
# @return [SetLabelResponse]
|
|
149
196
|
describe 'set_label test' do
|
|
150
197
|
it 'should work' do
|
|
@@ -158,7 +205,6 @@ describe 'RemotesPythonApi' do
|
|
|
158
205
|
# @param python_python_remote_href
|
|
159
206
|
# @param unset_label
|
|
160
207
|
# @param [Hash] opts the optional parameters
|
|
161
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
162
208
|
# @return [UnsetLabelResponse]
|
|
163
209
|
describe 'unset_label test' do
|
|
164
210
|
it 'should work' do
|
|
@@ -172,7 +218,6 @@ describe 'RemotesPythonApi' do
|
|
|
172
218
|
# @param python_python_remote_href
|
|
173
219
|
# @param python_python_remote
|
|
174
220
|
# @param [Hash] opts the optional parameters
|
|
175
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
176
221
|
# @return [AsyncOperationResponse]
|
|
177
222
|
describe 'update test' do
|
|
178
223
|
it 'should work' do
|
|
@@ -32,12 +32,24 @@ describe 'RepositoriesPythonApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
37
|
+
# Add a role for this object to users/groups.
|
|
38
|
+
# @param python_python_repository_href
|
|
39
|
+
# @param nested_role
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [NestedRoleResponse]
|
|
42
|
+
describe 'add_role 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
|
+
|
|
35
48
|
# unit tests for create
|
|
36
49
|
# Create a python repository
|
|
37
50
|
# PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
|
|
38
51
|
# @param python_python_repository
|
|
39
52
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
53
|
# @return [PythonPythonRepositoryResponse]
|
|
42
54
|
describe 'create test' do
|
|
43
55
|
it 'should work' do
|
|
@@ -50,7 +62,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
50
62
|
# Trigger an asynchronous delete task
|
|
51
63
|
# @param python_python_repository_href
|
|
52
64
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
65
|
# @return [AsyncOperationResponse]
|
|
55
66
|
describe 'delete test' do
|
|
56
67
|
it 'should work' do
|
|
@@ -62,7 +73,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
62
73
|
# List python repositorys
|
|
63
74
|
# PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
|
|
64
75
|
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
66
76
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
|
67
77
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
68
78
|
# @option opts [String] :name Filter results where name matches value
|
|
@@ -99,13 +109,26 @@ describe 'RepositoriesPythonApi' do
|
|
|
99
109
|
end
|
|
100
110
|
end
|
|
101
111
|
|
|
112
|
+
# unit tests for list_roles
|
|
113
|
+
# List roles
|
|
114
|
+
# List roles assigned to this object.
|
|
115
|
+
# @param python_python_repository_href
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
118
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
119
|
+
# @return [ObjectRolesResponse]
|
|
120
|
+
describe 'list_roles test' do
|
|
121
|
+
it 'should work' do
|
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
102
126
|
# unit tests for modify
|
|
103
127
|
# Modify Repository Content
|
|
104
128
|
# Trigger an asynchronous task to create a new repository version.
|
|
105
129
|
# @param python_python_repository_href
|
|
106
130
|
# @param repository_add_remove_content
|
|
107
131
|
# @param [Hash] opts the optional parameters
|
|
108
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
109
132
|
# @return [AsyncOperationResponse]
|
|
110
133
|
describe 'modify test' do
|
|
111
134
|
it 'should work' do
|
|
@@ -113,13 +136,26 @@ describe 'RepositoriesPythonApi' do
|
|
|
113
136
|
end
|
|
114
137
|
end
|
|
115
138
|
|
|
139
|
+
# unit tests for my_permissions
|
|
140
|
+
# List user permissions
|
|
141
|
+
# List permissions available to the current user on this object.
|
|
142
|
+
# @param python_python_repository_href
|
|
143
|
+
# @param [Hash] opts the optional parameters
|
|
144
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
145
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
146
|
+
# @return [MyPermissionsResponse]
|
|
147
|
+
describe 'my_permissions test' do
|
|
148
|
+
it 'should work' do
|
|
149
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
116
153
|
# unit tests for partial_update
|
|
117
154
|
# Update a python repository
|
|
118
155
|
# Trigger an asynchronous partial update task
|
|
119
156
|
# @param python_python_repository_href
|
|
120
157
|
# @param patchedpython_python_repository
|
|
121
158
|
# @param [Hash] opts the optional parameters
|
|
122
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
123
159
|
# @return [AsyncOperationResponse]
|
|
124
160
|
describe 'partial_update test' do
|
|
125
161
|
it 'should work' do
|
|
@@ -132,7 +168,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
132
168
|
# PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
|
|
133
169
|
# @param python_python_repository_href
|
|
134
170
|
# @param [Hash] opts the optional parameters
|
|
135
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
136
171
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
137
172
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
138
173
|
# @return [PythonPythonRepositoryResponse]
|
|
@@ -142,13 +177,25 @@ describe 'RepositoriesPythonApi' do
|
|
|
142
177
|
end
|
|
143
178
|
end
|
|
144
179
|
|
|
180
|
+
# unit tests for remove_role
|
|
181
|
+
# Remove a role
|
|
182
|
+
# Remove a role for this object from users/groups.
|
|
183
|
+
# @param python_python_repository_href
|
|
184
|
+
# @param nested_role
|
|
185
|
+
# @param [Hash] opts the optional parameters
|
|
186
|
+
# @return [NestedRoleResponse]
|
|
187
|
+
describe 'remove_role test' do
|
|
188
|
+
it 'should work' do
|
|
189
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
145
193
|
# unit tests for set_label
|
|
146
194
|
# Set a label
|
|
147
195
|
# Set a single pulp_label on the object to a specific value or null.
|
|
148
196
|
# @param python_python_repository_href
|
|
149
197
|
# @param set_label
|
|
150
198
|
# @param [Hash] opts the optional parameters
|
|
151
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
152
199
|
# @return [SetLabelResponse]
|
|
153
200
|
describe 'set_label test' do
|
|
154
201
|
it 'should work' do
|
|
@@ -162,7 +209,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
162
209
|
# @param python_python_repository_href
|
|
163
210
|
# @param repository_sync_url
|
|
164
211
|
# @param [Hash] opts the optional parameters
|
|
165
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
166
212
|
# @return [AsyncOperationResponse]
|
|
167
213
|
describe 'sync test' do
|
|
168
214
|
it 'should work' do
|
|
@@ -176,7 +222,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
176
222
|
# @param python_python_repository_href
|
|
177
223
|
# @param unset_label
|
|
178
224
|
# @param [Hash] opts the optional parameters
|
|
179
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
180
225
|
# @return [UnsetLabelResponse]
|
|
181
226
|
describe 'unset_label test' do
|
|
182
227
|
it 'should work' do
|
|
@@ -190,7 +235,6 @@ describe 'RepositoriesPythonApi' do
|
|
|
190
235
|
# @param python_python_repository_href
|
|
191
236
|
# @param python_python_repository
|
|
192
237
|
# @param [Hash] opts the optional parameters
|
|
193
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
194
238
|
# @return [AsyncOperationResponse]
|
|
195
239
|
describe 'update test' do
|
|
196
240
|
it 'should work' do
|
|
@@ -37,7 +37,6 @@ describe 'RepositoriesPythonVersionsApi' do
|
|
|
37
37
|
# Trigger an asynchronous task to delete a repository version.
|
|
38
38
|
# @param python_python_repository_version_href
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
40
|
# @return [AsyncOperationResponse]
|
|
42
41
|
describe 'delete test' do
|
|
43
42
|
it 'should work' do
|
|
@@ -50,7 +49,6 @@ describe 'RepositoriesPythonVersionsApi' do
|
|
|
50
49
|
# PythonRepositoryVersion represents a single Python repository version.
|
|
51
50
|
# @param python_python_repository_href
|
|
52
51
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
52
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
55
53
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
56
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -84,7 +82,6 @@ describe 'RepositoriesPythonVersionsApi' do
|
|
|
84
82
|
# PythonRepositoryVersion represents a single Python repository version.
|
|
85
83
|
# @param python_python_repository_version_href
|
|
86
84
|
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
88
85
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
89
86
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
90
87
|
# @return [RepositoryVersionResponse]
|
|
@@ -99,7 +96,6 @@ describe 'RepositoriesPythonVersionsApi' do
|
|
|
99
96
|
# @param python_python_repository_version_href
|
|
100
97
|
# @param repair
|
|
101
98
|
# @param [Hash] opts the optional parameters
|
|
102
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
103
99
|
# @return [AsyncOperationResponse]
|
|
104
100
|
describe 'repair test' do
|
|
105
101
|
it 'should work' do
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ describe PulpPythonClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("http://
|
|
21
|
+
# uri = URI.parse("http://pulp")
|
|
22
22
|
# PulpPythonClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe PulpPythonClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("http://
|
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("http://
|
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
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 PulpPythonClient::MyPermissionsResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'MyPermissionsResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = PulpPythonClient::MyPermissionsResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of MyPermissionsResponse' do
|
|
31
|
+
it 'should create an instance of MyPermissionsResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(PulpPythonClient::MyPermissionsResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "permissions"' 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
|
+
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 PulpPythonClient::NestedRoleResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'NestedRoleResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = PulpPythonClient::NestedRoleResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of NestedRoleResponse' do
|
|
31
|
+
it 'should create an instance of NestedRoleResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(PulpPythonClient::NestedRoleResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "users"' 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 "groups"' 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 "role"' 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,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 PulpPythonClient::NestedRole
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'NestedRole' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = PulpPythonClient::NestedRole.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of NestedRole' do
|
|
31
|
+
it 'should create an instance of NestedRole' do
|
|
32
|
+
expect(@instance).to be_instance_of(PulpPythonClient::NestedRole)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "users"' 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 "groups"' 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 "role"' 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,41 @@
|
|
|
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 PulpPythonClient::ObjectRolesResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ObjectRolesResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = PulpPythonClient::ObjectRolesResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ObjectRolesResponse' do
|
|
31
|
+
it 'should create an instance of ObjectRolesResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(PulpPythonClient::ObjectRolesResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "roles"' 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
|
+
end
|