=begin #Cloudsmith API #The API to the Cloudsmith Service OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3 =end require 'spec_helper' require 'json' # Unit tests for CloudsmithApi::PackagesApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'PackagesApi' do before do # run before each test @instance = CloudsmithApi::PackagesApi.new end after do # run after each test end describe 'test an instance of PackagesApi' do it 'should create an instance of PackagesApi' do expect(@instance).to be_instance_of(CloudsmithApi::PackagesApi) end end # unit tests for packages_copy # Copy a package to another repository. # Copy a package to another repository. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @option opts [PackagesCopy] :data # @return [PackageCopy] describe 'packages_copy 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 packages_delete # Delete a specific package in a repository. # Delete a specific package in a repository. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @return [nil] describe 'packages_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 packages_list # Get a list of all packages associated with repository. # Get a list of all packages associated with repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. # @return [Array] describe 'packages_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 packages_move # Move a package to another repository. # Move a package to another repository. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @option opts [PackagesMove] :data # @return [PackageMove] describe 'packages_move 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 packages_read # Get a specific package in a repository. # Get a specific package in a repository. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_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 packages_resync # Schedule a package for resynchronisation. # Schedule a package for resynchronisation. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_resync 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 packages_scan # Schedule a package for scanning. # Schedule a package for scanning. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_scan 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 packages_status # Get the synchronisation status for a package. # Get the synchronisation status for a package. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @return [PackageStatus] describe 'packages_status 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 packages_tag # Add/Replace/Remove tags for a package. # Add/Replace/Remove tags for a package. # @param owner # @param repo # @param identifier # @param [Hash] opts the optional parameters # @option opts [PackagesTag] :data # @return [Package] describe 'packages_tag 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 packages_upload_alpine # Create a new Alpine package # Create a new Alpine package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadAlpine] :data # @return [AlpinePackageUpload] describe 'packages_upload_alpine 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 packages_upload_cargo # Create a new Cargo package # Create a new Cargo package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadCargo] :data # @return [AlpinePackageUpload] describe 'packages_upload_cargo 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 packages_upload_cocoapods # Create a new CocoaPods package # Create a new CocoaPods package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadCocoapods] :data # @return [AlpinePackageUpload] describe 'packages_upload_cocoapods 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 packages_upload_composer # Create a new Composer package # Create a new Composer package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadComposer] :data # @return [AlpinePackageUpload] describe 'packages_upload_composer 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 packages_upload_conan # Create a new Conan package # Create a new Conan package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadConan] :data # @return [ConanPackageUpload] describe 'packages_upload_conan 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 packages_upload_cran # Create a new CRAN package # Create a new CRAN package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadCran] :data # @return [AlpinePackageUpload] describe 'packages_upload_cran 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 packages_upload_dart # Create a new Dart package # Create a new Dart package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadDart] :data # @return [AlpinePackageUpload] describe 'packages_upload_dart 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 packages_upload_deb # Create a new Debian package # Create a new Debian package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadDeb] :data # @return [AlpinePackageUpload] describe 'packages_upload_deb 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 packages_upload_docker # Create a new Docker package # Create a new Docker package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadDocker] :data # @return [AlpinePackageUpload] describe 'packages_upload_docker 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 packages_upload_go # Create a new Go package # Create a new Go package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadGo] :data # @return [AlpinePackageUpload] describe 'packages_upload_go 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 packages_upload_helm # Create a new Helm package # Create a new Helm package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadHelm] :data # @return [AlpinePackageUpload] describe 'packages_upload_helm 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 packages_upload_luarocks # Create a new LuaRocks package # Create a new LuaRocks package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadLuarocks] :data # @return [AlpinePackageUpload] describe 'packages_upload_luarocks 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 packages_upload_maven # Create a new Maven package # Create a new Maven package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadMaven] :data # @return [MavenPackageUpload] describe 'packages_upload_maven 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 packages_upload_npm # Create a new npm package # Create a new npm package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadNpm] :data # @return [AlpinePackageUpload] describe 'packages_upload_npm 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 packages_upload_nuget # Create a new NuGet package # Create a new NuGet package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadNuget] :data # @return [AlpinePackageUpload] describe 'packages_upload_nuget 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 packages_upload_python # Create a new Python package # Create a new Python package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadPython] :data # @return [AlpinePackageUpload] describe 'packages_upload_python 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 packages_upload_raw # Create a new Raw package # Create a new Raw package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadRaw] :data # @return [RawPackageUpload] describe 'packages_upload_raw 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 packages_upload_rpm # Create a new RedHat package # Create a new RedHat package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadRpm] :data # @return [AlpinePackageUpload] describe 'packages_upload_rpm 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 packages_upload_ruby # Create a new Ruby package # Create a new Ruby package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadRuby] :data # @return [AlpinePackageUpload] describe 'packages_upload_ruby 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 packages_upload_terraform # Create a new Terraform package # Create a new Terraform package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadTerraform] :data # @return [AlpinePackageUpload] describe 'packages_upload_terraform 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 packages_upload_vagrant # Create a new Vagrant package # Create a new Vagrant package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesUploadVagrant] :data # @return [VagrantPackageUpload] describe 'packages_upload_vagrant 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 packages_validate_upload_alpine # Validate parameters for create Alpine package # Validate parameters for create Alpine package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadAlpine] :data # @return [nil] describe 'packages_validate_upload_alpine 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 packages_validate_upload_cargo # Validate parameters for create Cargo package # Validate parameters for create Cargo package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadCargo] :data # @return [nil] describe 'packages_validate_upload_cargo 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 packages_validate_upload_cocoapods # Validate parameters for create CocoaPods package # Validate parameters for create CocoaPods package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadCocoapods] :data # @return [nil] describe 'packages_validate_upload_cocoapods 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 packages_validate_upload_composer # Validate parameters for create Composer package # Validate parameters for create Composer package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadComposer] :data # @return [nil] describe 'packages_validate_upload_composer 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 packages_validate_upload_conan # Validate parameters for create Conan package # Validate parameters for create Conan package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadConan] :data # @return [nil] describe 'packages_validate_upload_conan 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 packages_validate_upload_cran # Validate parameters for create CRAN package # Validate parameters for create CRAN package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadCran] :data # @return [nil] describe 'packages_validate_upload_cran 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 packages_validate_upload_dart # Validate parameters for create Dart package # Validate parameters for create Dart package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadDart] :data # @return [nil] describe 'packages_validate_upload_dart 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 packages_validate_upload_deb # Validate parameters for create Debian package # Validate parameters for create Debian package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadDeb] :data # @return [nil] describe 'packages_validate_upload_deb 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 packages_validate_upload_docker # Validate parameters for create Docker package # Validate parameters for create Docker package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadDocker] :data # @return [nil] describe 'packages_validate_upload_docker 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 packages_validate_upload_go # Validate parameters for create Go package # Validate parameters for create Go package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadGo] :data # @return [nil] describe 'packages_validate_upload_go 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 packages_validate_upload_helm # Validate parameters for create Helm package # Validate parameters for create Helm package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadHelm] :data # @return [nil] describe 'packages_validate_upload_helm 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 packages_validate_upload_luarocks # Validate parameters for create LuaRocks package # Validate parameters for create LuaRocks package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadLuarocks] :data # @return [nil] describe 'packages_validate_upload_luarocks 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 packages_validate_upload_maven # Validate parameters for create Maven package # Validate parameters for create Maven package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadMaven] :data # @return [nil] describe 'packages_validate_upload_maven 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 packages_validate_upload_npm # Validate parameters for create npm package # Validate parameters for create npm package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadNpm] :data # @return [nil] describe 'packages_validate_upload_npm 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 packages_validate_upload_nuget # Validate parameters for create NuGet package # Validate parameters for create NuGet package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadNuget] :data # @return [nil] describe 'packages_validate_upload_nuget 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 packages_validate_upload_python # Validate parameters for create Python package # Validate parameters for create Python package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadPython] :data # @return [nil] describe 'packages_validate_upload_python 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 packages_validate_upload_raw # Validate parameters for create Raw package # Validate parameters for create Raw package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadRaw] :data # @return [nil] describe 'packages_validate_upload_raw 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 packages_validate_upload_rpm # Validate parameters for create RedHat package # Validate parameters for create RedHat package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadRpm] :data # @return [nil] describe 'packages_validate_upload_rpm 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 packages_validate_upload_ruby # Validate parameters for create Ruby package # Validate parameters for create Ruby package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadRuby] :data # @return [nil] describe 'packages_validate_upload_ruby 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 packages_validate_upload_terraform # Validate parameters for create Terraform package # Validate parameters for create Terraform package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadTerraform] :data # @return [nil] describe 'packages_validate_upload_terraform 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 packages_validate_upload_vagrant # Validate parameters for create Vagrant package # Validate parameters for create Vagrant package # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [PackagesValidateuploadVagrant] :data # @return [nil] describe 'packages_validate_upload_vagrant test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end