=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::UploadsApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'UploadsApi' do before do # run before each test @api_instance = PulpcoreClient::UploadsApi.new end after do # run after each test end describe 'test an instance of UploadsApi' do it 'should create an instance of UploadsApi' do expect(@api_instance).to be_instance_of(PulpcoreClient::UploadsApi) end end # unit tests for commit # Finish an Upload # Queues a Task that creates an Artifact, and the Upload gets deleted and cannot be re-used. # @param upload_href # @param upload_commit # @param [Hash] opts the optional parameters # @return [AsyncOperationResponse] describe 'commit 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 create # Create an upload # View for chunked uploads. # @param upload # @param [Hash] opts the optional parameters # @return [UploadResponse] describe 'create 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 an upload # View for chunked uploads. # @param upload_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 uploads # View for chunked uploads. # @param [Hash] opts the optional parameters # @option opts [Integer] :limit Number of results to return per page. # @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] :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 [InlineResponse20012] 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 read # Inspect an upload # View for chunked uploads. # @param upload_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 [UploadDetailResponse] 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 update # Upload a file chunk # Upload a chunk for an upload. # @param content_range The Content-Range header specifies the location of the file chunk within the file. # @param upload_href # @param file A chunk of the uploaded file. # @param [Hash] opts the optional parameters # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available. # @return [UploadResponse] describe 'update test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end