=begin #Pulp 3 API #Fetch, Upload, Organize, and Distribute Software Packages The version of the OpenAPI document: v3 Contact: pulp-list@redhat.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'spec_helper' require 'json' # Unit tests for PulpcoreClient::TasksApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'TasksApi' do before do # run before each test @api_instance = PulpcoreClient::TasksApi.new end after do # run after each test end describe 'test an instance of TasksApi' do it 'should create an instance of TasksApi' do expect(@api_instance).to be_instance_of(PulpcoreClient::TasksApi) end end # unit tests for add_role # Add a role # Add a role for this object to users/groups. # @param task_href # @param nested_role # @param [Hash] opts the optional parameters # @return [NestedRoleResponse] describe 'add_role test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for delete # Delete a task # 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. # @param task_href # @param [Hash] opts the optional parameters # @return [nil] describe 'delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list # List tasks # 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. # @param [Hash] opts the optional parameters # @option opts [String] :child_tasks Filter results where child_tasks matches value # @option opts [String] :created_resources # @option opts [String] :exclusive_resources # @option opts [Array] :exclusive_resources__in Multiple values may be separated by commas. # @option opts [DateTime] :finished_at Filter results where finished_at matches value # @option opts [DateTime] :finished_at__gt Filter results where finished_at is greater than value # @option opts [DateTime] :finished_at__gte Filter results where finished_at is greater than or equal to value # @option opts [DateTime] :finished_at__lt Filter results where finished_at is less than value # @option opts [DateTime] :finished_at__lte Filter results where finished_at is less than or equal to value # @option opts [Array] :finished_at__range Filter results where finished_at is between two comma separated values # @option opts [Integer] :limit Number of results to return per page. # @option opts [String] :logging_cid Filter results where logging_cid matches value # @option opts [String] :logging_cid__contains Filter results where logging_cid contains value # @option opts [String] :name Filter results where name matches value # @option opts [String] :name__contains Filter results where name contains value # @option opts [Array] :name__in Filter results where name is in a comma-separated list of values # @option opts [String] :name__ne Filter results where name not equal to value # @option opts [Integer] :offset The initial index from which to return the results. # @option opts [Array] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending) # @option opts [String] :parent_task Filter results where parent_task matches value # @option opts [Array] :pulp_href__in Multiple values may be separated by commas. # @option opts [Array] :pulp_id__in Multiple values may be separated by commas. # @option opts [String] :q # @option opts [String] :reserved_resources # @option opts [Array] :reserved_resources__in Multiple values may be separated by commas. # @option opts [String] :shared_resources # @option opts [Array] :shared_resources__in Multiple values may be separated by commas. # @option opts [DateTime] :started_at Filter results where started_at matches value # @option opts [DateTime] :started_at__gt Filter results where started_at is greater than value # @option opts [DateTime] :started_at__gte Filter results where started_at is greater than or equal to value # @option opts [DateTime] :started_at__lt Filter results where started_at is less than value # @option opts [DateTime] :started_at__lte Filter results where started_at is less than or equal to value # @option opts [Array] :started_at__range Filter results where started_at is between two comma separated values # @option opts [String] :state Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling # @option opts [Array] :state__in Filter results where state is in a comma-separated list of values # @option opts [String] :state__ne Filter results where state not equal to value # @option opts [String] :task_group Filter results where task_group matches value # @option opts [String] :worker Filter results where worker matches value # @option opts [Array] :worker__in Filter results where worker is in a comma-separated list of values # @option opts [Boolean] :worker__isnull Filter results where worker has a null value # @option opts [Array] :fields A list of fields to include in the response. # @option opts [Array] :exclude_fields A list of fields to exclude from the response. # @return [PaginatedTaskResponseList] describe 'list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_roles # List roles # List roles assigned to this object. # @param task_href # @param [Hash] opts the optional parameters # @option opts [Array] :fields A list of fields to include in the response. # @option opts [Array] :exclude_fields A list of fields to exclude from the response. # @return [ObjectRolesResponse] describe 'list_roles test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for my_permissions # List user permissions # List permissions available to the current user on this object. # @param task_href # @param [Hash] opts the optional parameters # @option opts [Array] :fields A list of fields to include in the response. # @option opts [Array] :exclude_fields A list of fields to exclude from the response. # @return [MyPermissionsResponse] describe 'my_permissions test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for purge # Purge Completed Tasks # Trigger an asynchronous task that deletes completed tasks that finished prior to a specified timestamp. # @param purge # @param [Hash] opts the optional parameters # @return [AsyncOperationResponse] describe 'purge test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for read # Inspect a task # 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. # @param task_href # @param [Hash] opts the optional parameters # @option opts [Array] :fields A list of fields to include in the response. # @option opts [Array] :exclude_fields A list of fields to exclude from the response. # @return [TaskResponse] describe 'read test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for remove_role # Remove a role # Remove a role for this object from users/groups. # @param task_href # @param nested_role # @param [Hash] opts the optional parameters # @return [NestedRoleResponse] describe 'remove_role test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for tasks_cancel # Cancel a task # This operation cancels a task. # @param task_href # @param patched_task_cancel # @param [Hash] opts the optional parameters # @return [TaskResponse] describe 'tasks_cancel test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end