=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 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. # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit. # @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 Filter results where arch matches value # @option opts [Array] :arch__in Filter results where arch is in a comma-separated list of values # @option opts [String] :arch__ne Filter results where arch not equal to value # @option opts [String] :checksum_type Filter results where checksum_type matches value # @option opts [Array] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values # @option opts [String] :checksum_type__ne Filter results where checksum_type not equal to value # @option opts [String] :epoch Filter results where epoch matches value # @option opts [Array] :epoch__in Filter results where epoch is in a comma-separated list of values # @option opts [String] :epoch__ne Filter results where epoch not equal to value # @option opts [Integer] :limit Number of results to return per page. # @option opts [String] :name Filter results where name matches 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 # @option opts [String] :pkg_id Filter results where pkgId matches value # @option opts [Array] :pkg_id__in Filter results where pkgId is in a comma-separated list of values # @option opts [String] :release Filter results where release matches value # @option opts [Array] :release__in Filter results where release is in a comma-separated list of values # @option opts [String] :release__ne Filter results where release not equal to value # @option opts [String] :repository_version Repository Version referenced by HREF # @option opts [String] :repository_version_added Repository Version referenced by HREF # @option opts [String] :repository_version_removed Repository Version referenced by HREF # @option opts [String] :sha256 # @option opts [String] :version Filter results where version matches value # @option opts [Array] :version__in Filter results where version is in a comma-separated list of values # @option opts [String] :version__ne Filter results where version not equal to 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 [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 [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 [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