=begin #Subskribe API #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.41 =end require 'spec_helper' require 'json' # Unit tests for SubskribeDevClient::ApprovalsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'ApprovalsApi' do before do # run before each test @instance = SubskribeDevClient::ApprovalsApi.new end after do # run after each test end describe 'test an instance of ApprovalsApi' do it 'should create an instance of ApprovalsApi' do expect(@instance).to be_instance_of(SubskribeDevClient::ApprovalsApi) end end # unit tests for add_approval_role # Add an approval role # Adds an approval role to the order execution hierarchy and returns its ID # @param [Hash] opts the optional parameters # @option opts [ApprovalRoleJson] :body Json representation of the role # @return [String] describe 'add_approval_role 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 add_approval_segment # Add an approval segment # Define and add an approval segment which can be later specified in an approval matrix. The ID of the segment is returned. # @param [Hash] opts the optional parameters # @option opts [ApprovalSegmentJson] :body json representing the segment # @return [String] describe 'add_approval_segment 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 delete_approval_role # Delete an approval role # Deletes an approval role # @param approval_role_id # @param [Hash] opts the optional parameters # @return [ApprovalRoleJson] describe 'delete_approval_role 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 delete_approval_segment # Delete a segment # Deletes the segment specified by the id # @param approval_segment_id id of the segment # @param [Hash] opts the optional parameters # @return [ApprovalSegmentJson] describe 'delete_approval_segment 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 fetch_notification # make ngrok happy # # @param [Hash] opts the optional parameters # @return [nil] describe 'fetch_notification 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 get_all_import_details # Get approval matrix details # Returns details regarding the approval matrices that have been uploaded # @param [Hash] opts the optional parameters # @return [Array] describe 'get_all_import_details 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 get_approval_matrix_as_csv # Download approval matrix # Downloads your order approval matrix as a csv # @param [Hash] opts the optional parameters # @return [nil] describe 'get_approval_matrix_as_csv 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 get_approval_role_by_id # Get Details of an approval role # Returns the details of the specified approval role # @param approval_role_id id of the approval role # @param [Hash] opts the optional parameters # @return [ApprovalRoleJson] describe 'get_approval_role_by_id 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 get_approval_roles # Get approval roles # Gets all approval roles # @param [Hash] opts the optional parameters # @return [Array] describe 'get_approval_roles 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 get_approval_segment_by_id # Get approval segment details # Gets the details of the specified approval segment # @param approval_segment_id id of the segment # @param [Hash] opts the optional parameters # @return [ApprovalSegmentJson] describe 'get_approval_segment_by_id 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 get_approval_segments # Get approval segments # Get all approval segments # @param [Hash] opts the optional parameters # @return [Array] describe 'get_approval_segments 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 get_import_details_by_id # Get import details # Gets the details of an import specified by the passed ID # @param import_id # @param [Hash] opts the optional parameters # @return [ApprovalMatrixImportDataJson] describe 'get_import_details_by_id 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 get_import_preview # Preview import changes # Preview the changes that a specified approval matrix import will have once applied # @param import_id # @param [Hash] opts the optional parameters # @return [ApprovalMatrixImportPreview] describe 'get_import_preview 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 get_import_result # Download the csv for an import # Downloads the CSV for an import activity specified by the passed ID # @param import_id # @param [Hash] opts the optional parameters # @return [nil] describe 'get_import_result 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 receive_approval_flow_notification # Receive approval flow notification # # @param [Hash] opts the optional parameters # @option opts [String] :body # @return [nil] describe 'receive_approval_flow_notification 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 submit_approval_matrix_csv # Finalize an import # Submit and finalize the import for the specified import operation. # @param import_id # @param [Hash] opts the optional parameters # @return [nil] describe 'submit_approval_matrix_csv 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 update_approval_role # Update an approval role # Updates the details of the specified approval role # @param approval_role_id id of the role # @param [Hash] opts the optional parameters # @option opts [ApprovalRoleJson] :body json representing the role details # @return [nil] describe 'update_approval_role 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 update_approval_segment # Update an approval segment # Update the details of the specified approval segment # @param approval_segment_id id of the segment # @param [Hash] opts the optional parameters # @option opts [ApprovalSegmentJson] :body json representing the segment details # @return [nil] describe 'update_approval_segment 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 upload_approval_matrix_csv # Upload an Approval Matrix # Upload a csv containing the order approval matrix to be used on order execution. The csv should have the following format: Segment, ApprovalRoleName1, ApprovalRoleName2 ... SegmentName1, UserEmailOrGroupName1, UserEmailOrGroupName2 ... Roles, userEmails, userGroups are expected to be added before putting them in this csv. Any new segment names defined here will add a new segment. If a segment isn't added, it shall be deleted. # @param [Hash] opts the optional parameters # @option opts [File] :file # @return [ApprovalMatrixImportDataJson] describe 'upload_approval_matrix_csv test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end