=begin #Cloudsmith API (v1) #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.4.26 =end require 'spec_helper' require 'json' # Unit tests for CloudsmithApi::MetricsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'MetricsApi' do before do # run before each test @instance = CloudsmithApi::MetricsApi.new end after do # run after each test end describe 'test an instance of MetricsApi' do it 'should create an instance of MetricsApi' do expect(@instance).to be_instance_of(CloudsmithApi::MetricsApi) end end # unit tests for metrics_entitlements_account_list # View for listing entitlement token metrics, across an account. # View for listing entitlement token metrics, across an account. # @param owner # @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] :finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @option opts [String] :start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results. # @return [EntitlementUsageMetrics] describe 'metrics_entitlements_account_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 metrics_entitlements_repo_list # View for listing entitlement token metrics, for a repository. # View for listing entitlement token metrics, for a 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] :finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @option opts [String] :start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results. # @return [EntitlementUsageMetrics] describe 'metrics_entitlements_repo_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 metrics_packages_list # View for listing package usage metrics, for a repository. # View for listing package usage metrics, for a 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] :finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @option opts [String] :packages A comma seperated list of packages (slug perm) to include in the results. # @option opts [String] :start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @return [PackageUsageMetrics] describe 'metrics_packages_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end