=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.2.3 =end require 'spec_helper' require 'json' # Unit tests for PulpRpmClient::ContentPackagesApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'ContentPackagesApi' do before do # run before each test @api_instance = PulpRpmClient::ContentPackagesApi.new end after do # run after each test end describe 'test an instance of ContentPackagesApi' do it 'should create an instance of ContentPackagesApi' do expect(@api_instance).to be_instance_of(PulpRpmClient::ContentPackagesApi) end end # unit tests for create # Create a package # Trigger an asynchronous task to create content,optionally create new repository version. # @param relative_path Path where the artifact is located relative to distributions base_path # @param [Hash] opts the optional parameters # @option opts [String] :artifact Artifact file representing the physical content # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit. # @option opts [String] :repository A URI of a repository the new content unit should be associated with. # @return [AsyncOperationResponse] 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 list # List packages # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package. # @param [Hash] opts the optional parameters # @option opts [String] :arch arch # @option opts [String] :arch__in arch__in # @option opts [String] :arch__ne arch__ne # @option opts [String] :checksum_type checksum_type # @option opts [String] :checksum_type__in checksum_type__in # @option opts [String] :checksum_type__ne checksum_type__ne # @option opts [String] :epoch epoch # @option opts [String] :epoch__in epoch__in # @option opts [String] :epoch__ne epoch__ne # @option opts [Integer] :limit Number of results to return per page. # @option opts [String] :name name # @option opts [String] :name__in name__in # @option opts [String] :name__ne name__ne # @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] :pkg_id pkgId # @option opts [String] :pkg_id__in pkgId__in # @option opts [String] :release release # @option opts [String] :release__in release__in # @option opts [String] :release__ne release__ne # @option opts [String] :repository_version repository_version # @option opts [String] :repository_version_added repository_version_added # @option opts [String] :repository_version_removed repository_version_removed # @option opts [String] :sha256 sha256 # @option opts [String] :version version # @option opts [String] :version__in version__in # @option opts [String] :version__ne version__ne # @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 [PaginatedrpmPackageResponseList] 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 a package # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package. # @param rpm_package_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 [RpmPackageResponse] describe 'read test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end