aspose_slides_cloud 23.10.0 → 23.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -306,6 +306,250 @@ describe 'SlidesAsyncApi' do
306
306
  end
307
307
  end
308
308
 
309
+ # unit tests for start_convert_and_save
310
+ # @param document Document data.
311
+ # @param format
312
+ # @param out_path
313
+ # @param [Hash] opts the optional parameters
314
+ # @option opts [String] :password
315
+ # @option opts [String] :storage
316
+ # @option opts [String] :fonts_folder
317
+ # @option opts [Integer[]] :slides
318
+ # @option opts [ExportOptions] :options
319
+ # @return [String]
320
+ describe 'start_convert_and_save test' do
321
+ it 'should work' do
322
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
323
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
324
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
325
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
326
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
327
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
328
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
329
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
330
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', nil, nil)
331
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
332
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', nil, nil, nil)
333
+ expect(c).to eq(code)
334
+ end
335
+
336
+ it 'invalid document' do
337
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
338
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
339
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
340
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
341
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
342
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
343
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
344
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
345
+ paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'StartConvertAndSave', paramdocument, 'File')
346
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'document', paramdocument)
347
+ begin
348
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
349
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'document')
350
+ fail "An exception expected"
351
+ end
352
+ rescue AsposeSlidesCloud::ApiError => e
353
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'document', paramdocument, 'File')
354
+ expect(e.code).to eq(code)
355
+ expect(e.response_body).to include(message)
356
+ rescue ArgumentError => e
357
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'document', paramdocument, 'File')
358
+ expect(400).to eq(code)
359
+ expect(e.message).to include(message)
360
+ end
361
+ end
362
+
363
+ it 'invalid format' do
364
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
365
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
366
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
367
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
368
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
369
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
370
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
371
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
372
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartConvertAndSave', paramformat, 'String')
373
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'format', paramformat)
374
+ begin
375
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
376
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'format')
377
+ fail "An exception expected"
378
+ end
379
+ rescue AsposeSlidesCloud::ApiError => e
380
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'format', paramformat, 'String')
381
+ expect(e.code).to eq(code)
382
+ expect(e.response_body).to include(message)
383
+ rescue ArgumentError => e
384
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'format', paramformat, 'String')
385
+ expect(400).to eq(code)
386
+ expect(e.message).to include(message)
387
+ end
388
+ end
389
+
390
+ it 'invalid out_path' do
391
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
392
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
393
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
394
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
395
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
396
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
397
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
398
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
399
+ paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'StartConvertAndSave', paramout_path, 'String')
400
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'outPath', paramout_path)
401
+ begin
402
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
403
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'outPath')
404
+ fail "An exception expected"
405
+ end
406
+ rescue AsposeSlidesCloud::ApiError => e
407
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'outPath', paramout_path, 'String')
408
+ expect(e.code).to eq(code)
409
+ expect(e.response_body).to include(message)
410
+ rescue ArgumentError => e
411
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'outPath', paramout_path, 'String')
412
+ expect(400).to eq(code)
413
+ expect(e.message).to include(message)
414
+ end
415
+ end
416
+
417
+ it 'invalid password' do
418
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
419
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
420
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
421
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
422
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
423
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
424
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
425
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
426
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartConvertAndSave', parampassword, 'String')
427
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'password', parampassword)
428
+ begin
429
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
430
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'password')
431
+ fail "An exception expected"
432
+ end
433
+ rescue AsposeSlidesCloud::ApiError => e
434
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'password', parampassword, 'String')
435
+ expect(e.code).to eq(code)
436
+ expect(e.response_body).to include(message)
437
+ rescue ArgumentError => e
438
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'password', parampassword, 'String')
439
+ expect(400).to eq(code)
440
+ expect(e.message).to include(message)
441
+ end
442
+ end
443
+
444
+ it 'invalid storage' do
445
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
446
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
447
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
448
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
449
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
450
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
451
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
452
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
453
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartConvertAndSave', paramstorage, 'String')
454
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'storage', paramstorage)
455
+ begin
456
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
457
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'storage')
458
+ fail "An exception expected"
459
+ end
460
+ rescue AsposeSlidesCloud::ApiError => e
461
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'storage', paramstorage, 'String')
462
+ expect(e.code).to eq(code)
463
+ expect(e.response_body).to include(message)
464
+ rescue ArgumentError => e
465
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'storage', paramstorage, 'String')
466
+ expect(400).to eq(code)
467
+ expect(e.message).to include(message)
468
+ end
469
+ end
470
+
471
+ it 'invalid fonts_folder' do
472
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
473
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
474
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
475
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
476
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
477
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
478
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
479
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
480
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartConvertAndSave', paramfonts_folder, 'String')
481
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'fontsFolder', paramfonts_folder)
482
+ begin
483
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
484
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'fontsFolder')
485
+ fail "An exception expected"
486
+ end
487
+ rescue AsposeSlidesCloud::ApiError => e
488
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'fontsFolder', paramfonts_folder, 'String')
489
+ expect(e.code).to eq(code)
490
+ expect(e.response_body).to include(message)
491
+ rescue ArgumentError => e
492
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'fontsFolder', paramfonts_folder, 'String')
493
+ expect(400).to eq(code)
494
+ expect(e.message).to include(message)
495
+ end
496
+ end
497
+
498
+ it 'invalid slides' do
499
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
500
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
501
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
502
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
503
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
504
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
505
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
506
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
507
+ paramslides = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slides', 'StartConvertAndSave', paramslides, 'Integer[]')
508
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'slides', paramslides)
509
+ begin
510
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
511
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'slides')
512
+ fail "An exception expected"
513
+ end
514
+ rescue AsposeSlidesCloud::ApiError => e
515
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'slides', paramslides, 'Integer[]')
516
+ expect(e.code).to eq(code)
517
+ expect(e.response_body).to include(message)
518
+ rescue ArgumentError => e
519
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'slides', paramslides, 'Integer[]')
520
+ expect(400).to eq(code)
521
+ expect(e.message).to include(message)
522
+ end
523
+ end
524
+
525
+ it 'invalid options' do
526
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartConvertAndSave', 'File')
527
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartConvertAndSave', 'String')
528
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartConvertAndSave', 'String')
529
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartConvertAndSave', 'String')
530
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartConvertAndSave', 'String')
531
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartConvertAndSave', 'String')
532
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartConvertAndSave', 'Integer[]')
533
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartConvertAndSave', 'ExportOptions')
534
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartConvertAndSave', paramoptions, 'ExportOptions')
535
+ AsposeSlidesCloud::SpecUtils.initialize('StartConvertAndSave', 'options', paramoptions)
536
+ begin
537
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_convert_and_save_with_http_info(paramdocument, paramformat, paramout_path, parampassword, paramstorage, paramfonts_folder, paramslides, paramoptions)
538
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartConvertAndSave', 'options')
539
+ fail "An exception expected"
540
+ end
541
+ rescue AsposeSlidesCloud::ApiError => e
542
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'options', paramoptions, 'ExportOptions')
543
+ expect(e.code).to eq(code)
544
+ expect(e.response_body).to include(message)
545
+ rescue ArgumentError => e
546
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartConvertAndSave', 'options', paramoptions, 'ExportOptions')
547
+ expect(400).to eq(code)
548
+ expect(e.message).to include(message)
549
+ end
550
+ end
551
+ end
552
+
309
553
  # unit tests for start_download_presentation
310
554
  # @param name
311
555
  # @param format
@@ -551,4 +795,483 @@ describe 'SlidesAsyncApi' do
551
795
  end
552
796
  end
553
797
 
798
+ # unit tests for start_merge
799
+ # @param [Hash] opts the optional parameters
800
+ # @option opts [File[]] :files Files to merge
801
+ # @option opts [OrderedMergeRequest] :request
802
+ # @option opts [String] :storage
803
+ # @return [String]
804
+ describe 'start_merge test' do
805
+ it 'should work' do
806
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMerge', 'File[]')
807
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMerge', 'OrderedMergeRequest')
808
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMerge', 'String')
809
+ AsposeSlidesCloud::SpecUtils.initialize('StartMerge', nil, nil)
810
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_with_http_info(paramfiles, paramrequest, paramstorage)
811
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', nil, nil, nil)
812
+ expect(c).to eq(code)
813
+ end
814
+
815
+ it 'invalid files' do
816
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMerge', 'File[]')
817
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMerge', 'OrderedMergeRequest')
818
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMerge', 'String')
819
+ paramfiles = AsposeSlidesCloud::SpecUtils.invalidize_param_value('files', 'StartMerge', paramfiles, 'File[]')
820
+ AsposeSlidesCloud::SpecUtils.initialize('StartMerge', 'files', paramfiles)
821
+ begin
822
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_with_http_info(paramfiles, paramrequest, paramstorage)
823
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMerge', 'files')
824
+ fail "An exception expected"
825
+ end
826
+ rescue AsposeSlidesCloud::ApiError => e
827
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'files', paramfiles, 'File[]')
828
+ expect(e.code).to eq(code)
829
+ expect(e.response_body).to include(message)
830
+ rescue ArgumentError => e
831
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'files', paramfiles, 'File[]')
832
+ expect(400).to eq(code)
833
+ expect(e.message).to include(message)
834
+ end
835
+ end
836
+
837
+ it 'invalid request' do
838
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMerge', 'File[]')
839
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMerge', 'OrderedMergeRequest')
840
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMerge', 'String')
841
+ paramrequest = AsposeSlidesCloud::SpecUtils.invalidize_param_value('request', 'StartMerge', paramrequest, 'OrderedMergeRequest')
842
+ AsposeSlidesCloud::SpecUtils.initialize('StartMerge', 'request', paramrequest)
843
+ begin
844
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_with_http_info(paramfiles, paramrequest, paramstorage)
845
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMerge', 'request')
846
+ fail "An exception expected"
847
+ end
848
+ rescue AsposeSlidesCloud::ApiError => e
849
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'request', paramrequest, 'OrderedMergeRequest')
850
+ expect(e.code).to eq(code)
851
+ expect(e.response_body).to include(message)
852
+ rescue ArgumentError => e
853
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'request', paramrequest, 'OrderedMergeRequest')
854
+ expect(400).to eq(code)
855
+ expect(e.message).to include(message)
856
+ end
857
+ end
858
+
859
+ it 'invalid storage' do
860
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMerge', 'File[]')
861
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMerge', 'OrderedMergeRequest')
862
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMerge', 'String')
863
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartMerge', paramstorage, 'String')
864
+ AsposeSlidesCloud::SpecUtils.initialize('StartMerge', 'storage', paramstorage)
865
+ begin
866
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_with_http_info(paramfiles, paramrequest, paramstorage)
867
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMerge', 'storage')
868
+ fail "An exception expected"
869
+ end
870
+ rescue AsposeSlidesCloud::ApiError => e
871
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'storage', paramstorage, 'String')
872
+ expect(e.code).to eq(code)
873
+ expect(e.response_body).to include(message)
874
+ rescue ArgumentError => e
875
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMerge', 'storage', paramstorage, 'String')
876
+ expect(400).to eq(code)
877
+ expect(e.message).to include(message)
878
+ end
879
+ end
880
+ end
881
+
882
+ # unit tests for start_merge_and_save
883
+ # @param out_path
884
+ # @param [Hash] opts the optional parameters
885
+ # @option opts [File[]] :files Files to merge
886
+ # @option opts [OrderedMergeRequest] :request
887
+ # @option opts [String] :storage
888
+ # @return [String]
889
+ describe 'start_merge_and_save test' do
890
+ it 'should work' do
891
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartMergeAndSave', 'String')
892
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMergeAndSave', 'File[]')
893
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMergeAndSave', 'OrderedMergeRequest')
894
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMergeAndSave', 'String')
895
+ AsposeSlidesCloud::SpecUtils.initialize('StartMergeAndSave', nil, nil)
896
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_and_save_with_http_info(paramout_path, paramfiles, paramrequest, paramstorage)
897
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', nil, nil, nil)
898
+ expect(c).to eq(code)
899
+ end
900
+
901
+ it 'invalid out_path' do
902
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartMergeAndSave', 'String')
903
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMergeAndSave', 'File[]')
904
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMergeAndSave', 'OrderedMergeRequest')
905
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMergeAndSave', 'String')
906
+ paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'StartMergeAndSave', paramout_path, 'String')
907
+ AsposeSlidesCloud::SpecUtils.initialize('StartMergeAndSave', 'outPath', paramout_path)
908
+ begin
909
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_and_save_with_http_info(paramout_path, paramfiles, paramrequest, paramstorage)
910
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMergeAndSave', 'outPath')
911
+ fail "An exception expected"
912
+ end
913
+ rescue AsposeSlidesCloud::ApiError => e
914
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'outPath', paramout_path, 'String')
915
+ expect(e.code).to eq(code)
916
+ expect(e.response_body).to include(message)
917
+ rescue ArgumentError => e
918
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'outPath', paramout_path, 'String')
919
+ expect(400).to eq(code)
920
+ expect(e.message).to include(message)
921
+ end
922
+ end
923
+
924
+ it 'invalid files' do
925
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartMergeAndSave', 'String')
926
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMergeAndSave', 'File[]')
927
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMergeAndSave', 'OrderedMergeRequest')
928
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMergeAndSave', 'String')
929
+ paramfiles = AsposeSlidesCloud::SpecUtils.invalidize_param_value('files', 'StartMergeAndSave', paramfiles, 'File[]')
930
+ AsposeSlidesCloud::SpecUtils.initialize('StartMergeAndSave', 'files', paramfiles)
931
+ begin
932
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_and_save_with_http_info(paramout_path, paramfiles, paramrequest, paramstorage)
933
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMergeAndSave', 'files')
934
+ fail "An exception expected"
935
+ end
936
+ rescue AsposeSlidesCloud::ApiError => e
937
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'files', paramfiles, 'File[]')
938
+ expect(e.code).to eq(code)
939
+ expect(e.response_body).to include(message)
940
+ rescue ArgumentError => e
941
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'files', paramfiles, 'File[]')
942
+ expect(400).to eq(code)
943
+ expect(e.message).to include(message)
944
+ end
945
+ end
946
+
947
+ it 'invalid request' do
948
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartMergeAndSave', 'String')
949
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMergeAndSave', 'File[]')
950
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMergeAndSave', 'OrderedMergeRequest')
951
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMergeAndSave', 'String')
952
+ paramrequest = AsposeSlidesCloud::SpecUtils.invalidize_param_value('request', 'StartMergeAndSave', paramrequest, 'OrderedMergeRequest')
953
+ AsposeSlidesCloud::SpecUtils.initialize('StartMergeAndSave', 'request', paramrequest)
954
+ begin
955
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_and_save_with_http_info(paramout_path, paramfiles, paramrequest, paramstorage)
956
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMergeAndSave', 'request')
957
+ fail "An exception expected"
958
+ end
959
+ rescue AsposeSlidesCloud::ApiError => e
960
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'request', paramrequest, 'OrderedMergeRequest')
961
+ expect(e.code).to eq(code)
962
+ expect(e.response_body).to include(message)
963
+ rescue ArgumentError => e
964
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'request', paramrequest, 'OrderedMergeRequest')
965
+ expect(400).to eq(code)
966
+ expect(e.message).to include(message)
967
+ end
968
+ end
969
+
970
+ it 'invalid storage' do
971
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartMergeAndSave', 'String')
972
+ paramfiles = AsposeSlidesCloud::SpecUtils.get_param_value('files', 'StartMergeAndSave', 'File[]')
973
+ paramrequest = AsposeSlidesCloud::SpecUtils.get_param_value('request', 'StartMergeAndSave', 'OrderedMergeRequest')
974
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartMergeAndSave', 'String')
975
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartMergeAndSave', paramstorage, 'String')
976
+ AsposeSlidesCloud::SpecUtils.initialize('StartMergeAndSave', 'storage', paramstorage)
977
+ begin
978
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_merge_and_save_with_http_info(paramout_path, paramfiles, paramrequest, paramstorage)
979
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartMergeAndSave', 'storage')
980
+ fail "An exception expected"
981
+ end
982
+ rescue AsposeSlidesCloud::ApiError => e
983
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'storage', paramstorage, 'String')
984
+ expect(e.code).to eq(code)
985
+ expect(e.response_body).to include(message)
986
+ rescue ArgumentError => e
987
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartMergeAndSave', 'storage', paramstorage, 'String')
988
+ expect(400).to eq(code)
989
+ expect(e.message).to include(message)
990
+ end
991
+ end
992
+ end
993
+
994
+ # unit tests for start_save_presentation
995
+ # @param name
996
+ # @param format
997
+ # @param out_path
998
+ # @param [Hash] opts the optional parameters
999
+ # @option opts [ExportOptions] :options
1000
+ # @option opts [String] :password
1001
+ # @option opts [String] :folder
1002
+ # @option opts [String] :storage
1003
+ # @option opts [String] :fonts_folder
1004
+ # @option opts [Integer[]] :slides
1005
+ # @return [String]
1006
+ describe 'start_save_presentation test' do
1007
+ it 'should work' do
1008
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1009
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1010
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1011
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1012
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1013
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1014
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1015
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1016
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1017
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', nil, nil)
1018
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1019
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', nil, nil, nil)
1020
+ expect(c).to eq(code)
1021
+ expect(o).not_to be_nil
1022
+ end
1023
+
1024
+ it 'invalid name' do
1025
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1026
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1027
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1028
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1029
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1030
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1031
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1032
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1033
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1034
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'StartSavePresentation', paramname, 'String')
1035
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'name', paramname)
1036
+ begin
1037
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1038
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'name')
1039
+ fail "An exception expected"
1040
+ end
1041
+ rescue AsposeSlidesCloud::ApiError => e
1042
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'name', paramname, 'String')
1043
+ expect(e.code).to eq(code)
1044
+ expect(e.response_body).to include(message)
1045
+ rescue ArgumentError => e
1046
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'name', paramname, 'String')
1047
+ expect(400).to eq(code)
1048
+ expect(e.message).to include(message)
1049
+ end
1050
+ end
1051
+
1052
+ it 'invalid format' do
1053
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1054
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1055
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1056
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1057
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1058
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1059
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1060
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1061
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1062
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartSavePresentation', paramformat, 'String')
1063
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'format', paramformat)
1064
+ begin
1065
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1066
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'format')
1067
+ fail "An exception expected"
1068
+ end
1069
+ rescue AsposeSlidesCloud::ApiError => e
1070
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'format', paramformat, 'String')
1071
+ expect(e.code).to eq(code)
1072
+ expect(e.response_body).to include(message)
1073
+ rescue ArgumentError => e
1074
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'format', paramformat, 'String')
1075
+ expect(400).to eq(code)
1076
+ expect(e.message).to include(message)
1077
+ end
1078
+ end
1079
+
1080
+ it 'invalid out_path' do
1081
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1082
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1083
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1084
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1085
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1086
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1087
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1088
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1089
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1090
+ paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'StartSavePresentation', paramout_path, 'String')
1091
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'outPath', paramout_path)
1092
+ begin
1093
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1094
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'outPath')
1095
+ fail "An exception expected"
1096
+ end
1097
+ rescue AsposeSlidesCloud::ApiError => e
1098
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'outPath', paramout_path, 'String')
1099
+ expect(e.code).to eq(code)
1100
+ expect(e.response_body).to include(message)
1101
+ rescue ArgumentError => e
1102
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'outPath', paramout_path, 'String')
1103
+ expect(400).to eq(code)
1104
+ expect(e.message).to include(message)
1105
+ end
1106
+ end
1107
+
1108
+ it 'invalid options' do
1109
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1110
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1111
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1112
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1113
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1114
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1115
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1116
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1117
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1118
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartSavePresentation', paramoptions, 'ExportOptions')
1119
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'options', paramoptions)
1120
+ begin
1121
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1122
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'options')
1123
+ fail "An exception expected"
1124
+ end
1125
+ rescue AsposeSlidesCloud::ApiError => e
1126
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'options', paramoptions, 'ExportOptions')
1127
+ expect(e.code).to eq(code)
1128
+ expect(e.response_body).to include(message)
1129
+ rescue ArgumentError => e
1130
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'options', paramoptions, 'ExportOptions')
1131
+ expect(400).to eq(code)
1132
+ expect(e.message).to include(message)
1133
+ end
1134
+ end
1135
+
1136
+ it 'invalid password' do
1137
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1138
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1139
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1140
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1141
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1142
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1143
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1144
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1145
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1146
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartSavePresentation', parampassword, 'String')
1147
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'password', parampassword)
1148
+ begin
1149
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1150
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'password')
1151
+ fail "An exception expected"
1152
+ end
1153
+ rescue AsposeSlidesCloud::ApiError => e
1154
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'password', parampassword, 'String')
1155
+ expect(e.code).to eq(code)
1156
+ expect(e.response_body).to include(message)
1157
+ rescue ArgumentError => e
1158
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'password', parampassword, 'String')
1159
+ expect(400).to eq(code)
1160
+ expect(e.message).to include(message)
1161
+ end
1162
+ end
1163
+
1164
+ it 'invalid folder' do
1165
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1166
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1167
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1168
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1169
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1170
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1171
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1172
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1173
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1174
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'StartSavePresentation', paramfolder, 'String')
1175
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'folder', paramfolder)
1176
+ begin
1177
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1178
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'folder')
1179
+ fail "An exception expected"
1180
+ end
1181
+ rescue AsposeSlidesCloud::ApiError => e
1182
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'folder', paramfolder, 'String')
1183
+ expect(e.code).to eq(code)
1184
+ expect(e.response_body).to include(message)
1185
+ rescue ArgumentError => e
1186
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'folder', paramfolder, 'String')
1187
+ expect(400).to eq(code)
1188
+ expect(e.message).to include(message)
1189
+ end
1190
+ end
1191
+
1192
+ it 'invalid storage' do
1193
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1194
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1195
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1196
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1197
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1198
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1199
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1200
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1201
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1202
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartSavePresentation', paramstorage, 'String')
1203
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'storage', paramstorage)
1204
+ begin
1205
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1206
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'storage')
1207
+ fail "An exception expected"
1208
+ end
1209
+ rescue AsposeSlidesCloud::ApiError => e
1210
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'storage', paramstorage, 'String')
1211
+ expect(e.code).to eq(code)
1212
+ expect(e.response_body).to include(message)
1213
+ rescue ArgumentError => e
1214
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'storage', paramstorage, 'String')
1215
+ expect(400).to eq(code)
1216
+ expect(e.message).to include(message)
1217
+ end
1218
+ end
1219
+
1220
+ it 'invalid fonts_folder' do
1221
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1222
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1223
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1224
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1225
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1226
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1227
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1228
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1229
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1230
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartSavePresentation', paramfonts_folder, 'String')
1231
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'fontsFolder', paramfonts_folder)
1232
+ begin
1233
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1234
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'fontsFolder')
1235
+ fail "An exception expected"
1236
+ end
1237
+ rescue AsposeSlidesCloud::ApiError => e
1238
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'fontsFolder', paramfonts_folder, 'String')
1239
+ expect(e.code).to eq(code)
1240
+ expect(e.response_body).to include(message)
1241
+ rescue ArgumentError => e
1242
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'fontsFolder', paramfonts_folder, 'String')
1243
+ expect(400).to eq(code)
1244
+ expect(e.message).to include(message)
1245
+ end
1246
+ end
1247
+
1248
+ it 'invalid slides' do
1249
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSavePresentation', 'String')
1250
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSavePresentation', 'String')
1251
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'StartSavePresentation', 'String')
1252
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSavePresentation', 'ExportOptions')
1253
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSavePresentation', 'String')
1254
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSavePresentation', 'String')
1255
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSavePresentation', 'String')
1256
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSavePresentation', 'String')
1257
+ paramslides = AsposeSlidesCloud::SpecUtils.get_param_value('slides', 'StartSavePresentation', 'Integer[]')
1258
+ paramslides = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slides', 'StartSavePresentation', paramslides, 'Integer[]')
1259
+ AsposeSlidesCloud::SpecUtils.initialize('StartSavePresentation', 'slides', paramslides)
1260
+ begin
1261
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_save_presentation_with_http_info(paramname, paramformat, paramout_path, paramoptions, parampassword, paramfolder, paramstorage, paramfonts_folder, paramslides)
1262
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSavePresentation', 'slides')
1263
+ fail "An exception expected"
1264
+ end
1265
+ rescue AsposeSlidesCloud::ApiError => e
1266
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'slides', paramslides, 'Integer[]')
1267
+ expect(e.code).to eq(code)
1268
+ expect(e.response_body).to include(message)
1269
+ rescue ArgumentError => e
1270
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSavePresentation', 'slides', paramslides, 'Integer[]')
1271
+ expect(400).to eq(code)
1272
+ expect(e.message).to include(message)
1273
+ end
1274
+ end
1275
+ end
1276
+
554
1277
  end