=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 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 Foreign Key referenced by HREF # @option opts [String] :created_resources # @option opts [DateTime] :finished_at ISO 8601 formatted dates are supported # @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 # @option opts [String] :logging_cid__contains Filter results where logging_cid contains value # @option opts [String] :name # @option opts [String] :name__contains Filter results where name contains value # @option opts [Integer] :offset The initial index from which to return the results. # @option opts [String] :ordering Which field to use when ordering the results. # @option opts [String] :parent_task Foreign Key referenced by HREF # @option opts [Array] :reserved_resources_record # @option opts [DateTime] :started_at ISO 8601 formatted dates are supported # @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 # @option opts [Array] :state__in Filter results where state is in a comma-separated list of values # @option opts [String] :task_group Foreign Key referenced by HREF # @option opts [String] :worker Foreign Key referenced by HREF # @option opts [Array] :worker__in Filter results where worker is in a comma-separated list of values # @option opts [String] :fields A list of fields to include in the response. # @option opts [String] :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 assigned to this object. # @param task_href # @param [Hash] opts the optional parameters # @option opts [String] :fields A list of fields to include in the response. # @option opts [String] :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 permissions available to the current user on this object. # @param task_href # @param [Hash] opts the optional parameters # @option opts [String] :fields A list of fields to include in the response. # @option opts [String] :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 (tech-preview, may change in the future). # @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 [String] :fields A list of fields to include in the response. # @option opts [String] :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 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