pulpcore_client 3.21.32 → 3.22.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 +147 -143
- data/docs/AccessPoliciesApi.md +28 -28
- data/docs/ArtifactDistributionResponse.md +29 -0
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentSettingsResponse.md +19 -0
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +53 -53
- data/docs/ContentguardsRbacApi.md +53 -53
- data/docs/DistributionResponse.md +1 -1
- data/docs/DistributionsApi.md +11 -11
- data/docs/DistributionsArtifactsApi.md +154 -0
- data/docs/ExportersFilesystemApi.md +33 -33
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +33 -33
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExport.md +1 -3
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -33
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
- data/docs/PublicationsApi.md +8 -8
- data/docs/RemoteResponse.md +4 -2
- data/docs/RemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesApi.md +10 -10
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +9 -9
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +10 -10
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +15 -13
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +3 -1
- data/docs/TaskGroupsApi.md +11 -13
- data/docs/TaskSchedulesApi.md +35 -35
- data/docs/TasksApi.md +128 -114
- data/docs/UploadsApi.md +61 -51
- data/docs/UserResponse.md +3 -1
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +15 -15
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
- data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
- data/lib/pulpcore_client/api/distributions_api.rb +12 -12
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +64 -64
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +8 -8
- data/lib/pulpcore_client/api/remotes_api.rb +10 -10
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +8 -8
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
- data/lib/pulpcore_client/api/roles_api.rb +38 -38
- data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
- data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
- data/lib/pulpcore_client/api/tasks_api.rb +159 -138
- data/lib/pulpcore_client/api/uploads_api.rb +84 -65
- data/lib/pulpcore_client/api/users_api.rb +38 -38
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +16 -16
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
- data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
- data/lib/pulpcore_client/models/distribution_response.rb +4 -2
- data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
- data/lib/pulpcore_client/models/group_role.rb +19 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
- data/lib/pulpcore_client/models/remote_response.rb +41 -27
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
- data/lib/pulpcore_client/models/repository_response.rb +4 -2
- data/lib/pulpcore_client/models/status_response.rb +19 -4
- data/lib/pulpcore_client/models/user_response.rb +16 -4
- data/lib/pulpcore_client/models/user_role.rb +19 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -2
- data/spec/api/access_policies_api_spec.rb +11 -11
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +3 -3
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
- data/spec/api/contentguards_rbac_api_spec.rb +21 -21
- data/spec/api/distributions_api_spec.rb +5 -5
- data/spec/api/distributions_artifacts_api_spec.rb +76 -0
- data/spec/api/exporters_filesystem_api_spec.rb +13 -13
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +13 -13
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -13
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +3 -3
- data/spec/api/remotes_api_spec.rb +4 -4
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -3
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +4 -4
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +6 -5
- data/spec/api/task_groups_api_spec.rb +4 -5
- data/spec/api/task_schedules_api_spec.rb +14 -14
- data/spec/api/tasks_api_spec.rb +45 -38
- data/spec/api/uploads_api_spec.rb +25 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +77 -0
- data/spec/models/content_settings_response_spec.rb +47 -0
- data/spec/models/filesystem_export_spec.rb +0 -6
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
- data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/status_response_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +162 -150
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -32,123 +32,117 @@ describe 'TasksApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for add_role
|
36
36
|
# Add a role for this object to users/groups.
|
37
37
|
# @param task_href
|
38
38
|
# @param nested_role
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [NestedRoleResponse]
|
41
|
-
describe '
|
41
|
+
describe 'add_role test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
48
|
-
# Cancel a task
|
49
|
-
# This operation cancels a task.
|
50
|
-
# @param task_href
|
51
|
-
# @param patched_task_cancel
|
52
|
-
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [TaskResponse]
|
54
|
-
describe 'tasks_cancel 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 tasks_delete
|
47
|
+
# unit tests for delete
|
61
48
|
# Delete a task
|
62
49
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
63
50
|
# @param task_href
|
64
51
|
# @param [Hash] opts the optional parameters
|
65
52
|
# @return [nil]
|
66
|
-
describe '
|
53
|
+
describe 'delete test' do
|
67
54
|
it 'should work' do
|
68
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
56
|
end
|
70
57
|
end
|
71
58
|
|
72
|
-
# unit tests for
|
59
|
+
# unit tests for list
|
73
60
|
# List tasks
|
74
61
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
75
62
|
# @param [Hash] opts the optional parameters
|
76
|
-
# @option opts [String] :child_tasks
|
63
|
+
# @option opts [String] :child_tasks Filter results where child_tasks matches value
|
77
64
|
# @option opts [String] :created_resources
|
78
|
-
# @option opts [
|
65
|
+
# @option opts [String] :exclusive_resources
|
66
|
+
# @option opts [Array<String>] :exclusive_resources__in Multiple values may be separated by commas.
|
67
|
+
# @option opts [DateTime] :finished_at Filter results where finished_at matches value
|
79
68
|
# @option opts [DateTime] :finished_at__gt Filter results where finished_at is greater than value
|
80
69
|
# @option opts [DateTime] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
81
70
|
# @option opts [DateTime] :finished_at__lt Filter results where finished_at is less than value
|
82
71
|
# @option opts [DateTime] :finished_at__lte Filter results where finished_at is less than or equal to value
|
83
72
|
# @option opts [Array<DateTime>] :finished_at__range Filter results where finished_at is between two comma separated values
|
84
73
|
# @option opts [Integer] :limit Number of results to return per page.
|
85
|
-
# @option opts [String] :logging_cid
|
74
|
+
# @option opts [String] :logging_cid Filter results where logging_cid matches value
|
86
75
|
# @option opts [String] :logging_cid__contains Filter results where logging_cid contains value
|
87
|
-
# @option opts [String] :name
|
76
|
+
# @option opts [String] :name Filter results where name matches value
|
88
77
|
# @option opts [String] :name__contains Filter results where name contains value
|
78
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
89
79
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
90
80
|
# @option opts [Array<String>] :ordering Ordering
|
91
|
-
# @option opts [String] :parent_task
|
81
|
+
# @option opts [String] :parent_task Filter results where parent_task matches value
|
82
|
+
# @option opts [String] :reserved_resources
|
83
|
+
# @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
|
92
84
|
# @option opts [Array<String>] :reserved_resources_record
|
93
|
-
# @option opts [
|
85
|
+
# @option opts [String] :shared_resources
|
86
|
+
# @option opts [Array<String>] :shared_resources__in Multiple values may be separated by commas.
|
87
|
+
# @option opts [DateTime] :started_at Filter results where started_at matches value
|
94
88
|
# @option opts [DateTime] :started_at__gt Filter results where started_at is greater than value
|
95
89
|
# @option opts [DateTime] :started_at__gte Filter results where started_at is greater than or equal to value
|
96
90
|
# @option opts [DateTime] :started_at__lt Filter results where started_at is less than value
|
97
91
|
# @option opts [DateTime] :started_at__lte Filter results where started_at is less than or equal to value
|
98
92
|
# @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
|
99
|
-
# @option opts [String] :state
|
93
|
+
# @option opts [String] :state Filter results where state matches value
|
100
94
|
# @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
|
101
|
-
# @option opts [String] :task_group
|
102
|
-
# @option opts [String] :worker
|
95
|
+
# @option opts [String] :task_group Filter results where task_group matches value
|
96
|
+
# @option opts [String] :worker Filter results where worker matches value
|
103
97
|
# @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
|
104
98
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
105
99
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
106
100
|
# @return [PaginatedTaskResponseList]
|
107
|
-
describe '
|
101
|
+
describe 'list test' do
|
108
102
|
it 'should work' do
|
109
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
104
|
end
|
111
105
|
end
|
112
106
|
|
113
|
-
# unit tests for
|
107
|
+
# unit tests for list_roles
|
114
108
|
# List roles assigned to this object.
|
115
109
|
# @param task_href
|
116
110
|
# @param [Hash] opts the optional parameters
|
117
111
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
118
112
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
119
113
|
# @return [ObjectRolesResponse]
|
120
|
-
describe '
|
114
|
+
describe 'list_roles test' do
|
121
115
|
it 'should work' do
|
122
116
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
117
|
end
|
124
118
|
end
|
125
119
|
|
126
|
-
# unit tests for
|
120
|
+
# unit tests for my_permissions
|
127
121
|
# List permissions available to the current user on this object.
|
128
122
|
# @param task_href
|
129
123
|
# @param [Hash] opts the optional parameters
|
130
124
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
131
125
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
132
126
|
# @return [MyPermissionsResponse]
|
133
|
-
describe '
|
127
|
+
describe 'my_permissions test' do
|
134
128
|
it 'should work' do
|
135
129
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
130
|
end
|
137
131
|
end
|
138
132
|
|
139
|
-
# unit tests for
|
133
|
+
# unit tests for purge
|
140
134
|
# Purge Completed Tasks
|
141
135
|
# Trigger an asynchronous task that deletes completed tasks that finished prior to a specified timestamp (tech-preview, may change in the future).
|
142
136
|
# @param purge
|
143
137
|
# @param [Hash] opts the optional parameters
|
144
138
|
# @return [AsyncOperationResponse]
|
145
|
-
describe '
|
139
|
+
describe 'purge test' do
|
146
140
|
it 'should work' do
|
147
141
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
142
|
end
|
149
143
|
end
|
150
144
|
|
151
|
-
# unit tests for
|
145
|
+
# unit tests for read
|
152
146
|
# Inspect a task
|
153
147
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
154
148
|
# @param task_href
|
@@ -156,19 +150,32 @@ describe 'TasksApi' do
|
|
156
150
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
157
151
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
158
152
|
# @return [TaskResponse]
|
159
|
-
describe '
|
153
|
+
describe 'read test' do
|
160
154
|
it 'should work' do
|
161
155
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
156
|
end
|
163
157
|
end
|
164
158
|
|
165
|
-
# unit tests for
|
159
|
+
# unit tests for remove_role
|
166
160
|
# Remove a role for this object from users/groups.
|
167
161
|
# @param task_href
|
168
162
|
# @param nested_role
|
169
163
|
# @param [Hash] opts the optional parameters
|
170
164
|
# @return [NestedRoleResponse]
|
171
|
-
describe '
|
165
|
+
describe 'remove_role test' do
|
166
|
+
it 'should work' do
|
167
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# unit tests for tasks_cancel
|
172
|
+
# Cancel a task
|
173
|
+
# This operation cancels a task.
|
174
|
+
# @param task_href
|
175
|
+
# @param patched_task_cancel
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @return [TaskResponse]
|
178
|
+
describe 'tasks_cancel test' do
|
172
179
|
it 'should work' do
|
173
180
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
174
181
|
end
|
@@ -32,97 +32,102 @@ describe 'UploadsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for add_role
|
36
36
|
# Add a role for this object to users/groups.
|
37
37
|
# @param upload_href
|
38
38
|
# @param upload
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [NestedRoleResponse]
|
41
|
-
describe '
|
41
|
+
describe 'add_role test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
47
|
+
# unit tests for commit
|
48
48
|
# Finish an Upload
|
49
49
|
# Queues a Task that creates an Artifact, and the Upload gets deleted and cannot be re-used.
|
50
50
|
# @param upload_href
|
51
51
|
# @param upload_commit
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
53
|
# @return [AsyncOperationResponse]
|
54
|
-
describe '
|
54
|
+
describe 'commit test' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
# unit tests for
|
60
|
+
# unit tests for create
|
61
61
|
# Create an upload
|
62
62
|
# View for chunked uploads.
|
63
63
|
# @param upload
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [UploadResponse]
|
66
|
-
describe '
|
66
|
+
describe 'create test' do
|
67
67
|
it 'should work' do
|
68
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
# unit tests for
|
72
|
+
# unit tests for delete
|
73
73
|
# Delete an upload
|
74
74
|
# View for chunked uploads.
|
75
75
|
# @param upload_href
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
77
|
# @return [nil]
|
78
|
-
describe '
|
78
|
+
describe 'delete test' do
|
79
79
|
it 'should work' do
|
80
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
# unit tests for
|
84
|
+
# unit tests for list
|
85
85
|
# List uploads
|
86
86
|
# View for chunked uploads.
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [Integer] :limit Number of results to return per page.
|
89
89
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
90
|
+
# @option opts [Array<String>] :ordering Ordering
|
91
|
+
# @option opts [Integer] :size Filter results where size matches value
|
92
|
+
# @option opts [Integer] :size__gt Filter results where size is greater than value
|
93
|
+
# @option opts [Integer] :size__lt Filter results where size is less than value
|
94
|
+
# @option opts [Array<Integer>] :size__range Filter results where size is between two comma separated values
|
90
95
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
91
96
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
92
97
|
# @return [PaginatedUploadResponseList]
|
93
|
-
describe '
|
98
|
+
describe 'list test' do
|
94
99
|
it 'should work' do
|
95
100
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
101
|
end
|
97
102
|
end
|
98
103
|
|
99
|
-
# unit tests for
|
104
|
+
# unit tests for list_roles
|
100
105
|
# List roles assigned to this object.
|
101
106
|
# @param upload_href
|
102
107
|
# @param [Hash] opts the optional parameters
|
103
108
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
104
109
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
110
|
# @return [ObjectRolesResponse]
|
106
|
-
describe '
|
111
|
+
describe 'list_roles test' do
|
107
112
|
it 'should work' do
|
108
113
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
114
|
end
|
110
115
|
end
|
111
116
|
|
112
|
-
# unit tests for
|
117
|
+
# unit tests for my_permissions
|
113
118
|
# List permissions available to the current user on this object.
|
114
119
|
# @param upload_href
|
115
120
|
# @param [Hash] opts the optional parameters
|
116
121
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
117
122
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
118
123
|
# @return [MyPermissionsResponse]
|
119
|
-
describe '
|
124
|
+
describe 'my_permissions test' do
|
120
125
|
it 'should work' do
|
121
126
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
127
|
end
|
123
128
|
end
|
124
129
|
|
125
|
-
# unit tests for
|
130
|
+
# unit tests for read
|
126
131
|
# Inspect an upload
|
127
132
|
# View for chunked uploads.
|
128
133
|
# @param upload_href
|
@@ -130,25 +135,25 @@ describe 'UploadsApi' do
|
|
130
135
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
131
136
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
132
137
|
# @return [UploadDetailResponse]
|
133
|
-
describe '
|
138
|
+
describe 'read test' do
|
134
139
|
it 'should work' do
|
135
140
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
141
|
end
|
137
142
|
end
|
138
143
|
|
139
|
-
# unit tests for
|
144
|
+
# unit tests for remove_role
|
140
145
|
# Remove a role for this object from users/groups.
|
141
146
|
# @param upload_href
|
142
147
|
# @param upload
|
143
148
|
# @param [Hash] opts the optional parameters
|
144
149
|
# @return [NestedRoleResponse]
|
145
|
-
describe '
|
150
|
+
describe 'remove_role test' do
|
146
151
|
it 'should work' do
|
147
152
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
153
|
end
|
149
154
|
end
|
150
155
|
|
151
|
-
# unit tests for
|
156
|
+
# unit tests for update
|
152
157
|
# Upload a file chunk
|
153
158
|
# Upload a chunk for an upload.
|
154
159
|
# @param content_range The Content-Range header specifies the location of the file chunk within the file.
|
@@ -157,7 +162,7 @@ describe 'UploadsApi' do
|
|
157
162
|
# @param [Hash] opts the optional parameters
|
158
163
|
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
159
164
|
# @return [UploadResponse]
|
160
|
-
describe '
|
165
|
+
describe 'update test' do
|
161
166
|
it 'should work' do
|
162
167
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
168
|
end
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -32,31 +32,31 @@ describe 'UsersApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create an user
|
37
37
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
38
38
|
# @param user
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [UserResponse]
|
41
|
-
describe '
|
41
|
+
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
47
|
+
# unit tests for delete
|
48
48
|
# Delete an user
|
49
49
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
50
50
|
# @param auth_user_href
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [nil]
|
53
|
-
describe '
|
53
|
+
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
# unit tests for
|
59
|
+
# unit tests for list
|
60
60
|
# List users
|
61
61
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
62
62
|
# @param [Hash] opts the optional parameters
|
@@ -88,26 +88,26 @@ describe 'UsersApi' do
|
|
88
88
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
89
89
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
90
90
|
# @return [PaginatedUserResponseList]
|
91
|
-
describe '
|
91
|
+
describe 'list test' do
|
92
92
|
it 'should work' do
|
93
93
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
# unit tests for
|
97
|
+
# unit tests for partial_update
|
98
98
|
# Update an user
|
99
99
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
100
100
|
# @param auth_user_href
|
101
101
|
# @param patched_user
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
103
|
# @return [UserResponse]
|
104
|
-
describe '
|
104
|
+
describe 'partial_update test' do
|
105
105
|
it 'should work' do
|
106
106
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
# unit tests for
|
110
|
+
# unit tests for read
|
111
111
|
# Inspect an user
|
112
112
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
113
113
|
# @param auth_user_href
|
@@ -115,20 +115,20 @@ describe 'UsersApi' do
|
|
115
115
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
116
116
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
117
117
|
# @return [UserResponse]
|
118
|
-
describe '
|
118
|
+
describe 'read test' do
|
119
119
|
it 'should work' do
|
120
120
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
-
# unit tests for
|
124
|
+
# unit tests for update
|
125
125
|
# Update an user
|
126
126
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
127
127
|
# @param auth_user_href
|
128
128
|
# @param user
|
129
129
|
# @param [Hash] opts the optional parameters
|
130
130
|
# @return [UserResponse]
|
131
|
-
describe '
|
131
|
+
describe 'update test' do
|
132
132
|
it 'should work' do
|
133
133
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
134
|
end
|
@@ -32,32 +32,32 @@ describe 'UsersRolesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create an user role
|
37
37
|
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
38
38
|
# @param auth_user_href
|
39
39
|
# @param user_role
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [UserRoleResponse]
|
42
|
-
describe '
|
42
|
+
describe 'create test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
# unit tests for
|
48
|
+
# unit tests for delete
|
49
49
|
# Delete an user role
|
50
50
|
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
51
51
|
# @param auth_users_user_role_href
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
53
|
# @return [nil]
|
54
|
-
describe '
|
54
|
+
describe 'delete test' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
# unit tests for
|
60
|
+
# unit tests for list
|
61
61
|
# List user roles
|
62
62
|
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
63
63
|
# @param auth_user_href
|
@@ -74,13 +74,13 @@ describe 'UsersRolesApi' do
|
|
74
74
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
75
75
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
76
76
|
# @return [PaginatedUserRoleResponseList]
|
77
|
-
describe '
|
77
|
+
describe 'list test' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
# unit tests for
|
83
|
+
# unit tests for read
|
84
84
|
# Inspect an user role
|
85
85
|
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
86
86
|
# @param auth_users_user_role_href
|
@@ -88,7 +88,7 @@ describe 'UsersRolesApi' do
|
|
88
88
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
89
89
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
90
90
|
# @return [UserRoleResponse]
|
91
|
-
describe '
|
91
|
+
describe 'read test' do
|
92
92
|
it 'should work' do
|
93
93
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
94
|
end
|
@@ -32,11 +32,11 @@ describe 'WorkersApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for list
|
36
36
|
# List workers
|
37
37
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [DateTime] :last_heartbeat
|
39
|
+
# @option opts [DateTime] :last_heartbeat Filter results where last_heartbeat matches value
|
40
40
|
# @option opts [DateTime] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
|
41
41
|
# @option opts [DateTime] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
|
42
42
|
# @option opts [DateTime] :last_heartbeat__lt Filter results where last_heartbeat is less than value
|
@@ -44,7 +44,7 @@ describe 'WorkersApi' do
|
|
44
44
|
# @option opts [Array<DateTime>] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
|
45
45
|
# @option opts [Integer] :limit Number of results to return per page.
|
46
46
|
# @option opts [Boolean] :missing
|
47
|
-
# @option opts [String] :name
|
47
|
+
# @option opts [String] :name Filter results where name matches value
|
48
48
|
# @option opts [String] :name__contains Filter results where name contains value
|
49
49
|
# @option opts [String] :name__icontains Filter results where name contains value
|
50
50
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -55,13 +55,13 @@ describe 'WorkersApi' do
|
|
55
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
56
56
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
57
57
|
# @return [PaginatedWorkerResponseList]
|
58
|
-
describe '
|
58
|
+
describe 'list test' do
|
59
59
|
it 'should work' do
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
# unit tests for
|
64
|
+
# unit tests for read
|
65
65
|
# Inspect a worker
|
66
66
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
67
67
|
# @param worker_href
|
@@ -69,7 +69,7 @@ describe 'WorkersApi' do
|
|
69
69
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
70
70
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
71
71
|
# @return [WorkerResponse]
|
72
|
-
describe '
|
72
|
+
describe 'read test' do
|
73
73
|
it 'should work' do
|
74
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
75
|
end
|
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,77 @@
|
|
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::ArtifactDistributionResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ArtifactDistributionResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::ArtifactDistributionResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ArtifactDistributionResponse' do
|
31
|
+
it 'should create an instance of ArtifactDistributionResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "content_guard"' 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_labels"' 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 "pulp_created"' 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 "base_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 "base_url"' 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
|
+
describe 'test attribute "pulp_href"' 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
|
+
describe 'test attribute "name"' 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
|
+
end
|