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