=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::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_usage_list # View for listing entitlement token usage as a metric. # View for listing entitlement token usage as a metric. # @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 [Integer] :finish Filter token usage ending before this datetime (UTC by default unless otherwise specified). Defaults to now if not supplied. # @option opts [Integer] :start Filter token usage starting from this datetime (UTC by default unless otherwise specified)). # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results. # @return [Array] describe 'metrics_entitlements_usage_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_usage_list # View for listing package usage metrics by user. # View for listing package usage metrics by user. # @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 [Integer] :finish Filter token usage ending before this datetime (UTC). Defaults to now if not supplied. # @option opts [String] :packages A comma seperated list of packages (slug perm) to include in the results. # @option opts [Integer] :start Filter token usage starting from this datetime (UTC)). # @return [Array] describe 'metrics_packages_usage_list test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end