Sha256: 645652b17dfd5f0fa9cff812e5fe3ee827e8940f2459b97f77ce441d82576dc8

Contents?: true

Size: 1.51 KB

Versions: 16

Compression:

Stored size: 1.51 KB

Contents

require 'spec_helper'
require 'json'

describe 'CellsApi' do
  before do
    @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
    $VERBOSE = nil
  end

  after do
    # run after each test
  end

  describe 'get_cells_cloud_services_health_check test' do
    it "should work" do
      remote_folder = 'TestData/In'

      local_name = 'Book1.xlsx'
      remote_name = 'Book1.xlsx'

      
      mapFiles = { }               
      mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")  
   
      uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
      @instance.upload_file(uploadrequest)
      request =   AsposeCellsCloud::GetCellsCloudServicesHealthCheckRequest.new();
      @instance.get_cells_cloud_services_health_check(request);
    end
  end 

  describe 'get_cells_cloud_service_status test' do
    it "should work" do
      remote_folder = 'TestData/In'

      local_name = 'Book1.xlsx'
      remote_name = 'Book1.xlsx'

      
      mapFiles = { }               
      mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")  
   
      uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
      @instance.upload_file(uploadrequest)
      request =   AsposeCellsCloud::GetCellsCloudServiceStatusRequest.new();
      @instance.get_cells_cloud_service_status(request);
    end
  end 
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aspose_cells_cloud-24.11 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.10 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.9 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.8 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.7 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.4 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.3 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.2.1 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-24.1.1 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.12.0 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.11 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.10 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.9 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.8 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.7 spec/api/cells_status_controller_spec.rb
aspose_cells_cloud-23.6 spec/api/cells_status_controller_spec.rb