swaggy_jenkins 2.0.1.pre.pre.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +28 -26
  3. data/README.md +8 -6
  4. data/bin/bundle +5 -10
  5. data/bin/byebug +1 -1
  6. data/bin/coderay +1 -1
  7. data/bin/htmldiff +1 -1
  8. data/bin/ldiff +1 -1
  9. data/bin/pry +1 -1
  10. data/bin/racc +27 -0
  11. data/bin/rake +1 -1
  12. data/bin/rspec +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/ruby-parse +1 -1
  15. data/bin/ruby-rewrite +1 -1
  16. data/lib/swaggy_jenkins/api/base_api.rb +3 -3
  17. data/lib/swaggy_jenkins/api/blue_ocean_api.rb +3 -3
  18. data/lib/swaggy_jenkins/api/remote_access_api.rb +3 -3
  19. data/lib/swaggy_jenkins/api_client.rb +25 -23
  20. data/lib/swaggy_jenkins/api_error.rb +4 -3
  21. data/lib/swaggy_jenkins/configuration.rb +29 -10
  22. data/lib/swaggy_jenkins/models/all_view.rb +16 -21
  23. data/lib/swaggy_jenkins/models/branch_impl.rb +16 -21
  24. data/lib/swaggy_jenkins/models/branch_impllinks.rb +16 -21
  25. data/lib/swaggy_jenkins/models/branch_implpermissions.rb +16 -21
  26. data/lib/swaggy_jenkins/models/cause_action.rb +16 -21
  27. data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +16 -21
  28. data/lib/swaggy_jenkins/models/classes_by_class.rb +16 -21
  29. data/lib/swaggy_jenkins/models/clock_difference.rb +16 -21
  30. data/lib/swaggy_jenkins/models/computer_set.rb +16 -21
  31. data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +16 -21
  32. data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +16 -21
  33. data/lib/swaggy_jenkins/models/empty_change_log_set.rb +16 -21
  34. data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +16 -21
  35. data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +16 -21
  36. data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +16 -21
  37. data/lib/swaggy_jenkins/models/extension_class_impl.rb +16 -21
  38. data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +16 -21
  39. data/lib/swaggy_jenkins/models/favorite_impl.rb +16 -21
  40. data/lib/swaggy_jenkins/models/favorite_impllinks.rb +16 -21
  41. data/lib/swaggy_jenkins/models/free_style_build.rb +16 -21
  42. data/lib/swaggy_jenkins/models/free_style_project.rb +16 -21
  43. data/lib/swaggy_jenkins/models/free_style_projectactions.rb +16 -21
  44. data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +16 -21
  45. data/lib/swaggy_jenkins/models/generic_resource.rb +16 -21
  46. data/lib/swaggy_jenkins/models/github_content.rb +16 -21
  47. data/lib/swaggy_jenkins/models/github_file.rb +16 -21
  48. data/lib/swaggy_jenkins/models/github_organization.rb +16 -21
  49. data/lib/swaggy_jenkins/models/github_organizationlinks.rb +16 -21
  50. data/lib/swaggy_jenkins/models/github_repositories.rb +16 -21
  51. data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +16 -21
  52. data/lib/swaggy_jenkins/models/github_repository.rb +16 -21
  53. data/lib/swaggy_jenkins/models/github_repositorylinks.rb +16 -21
  54. data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +16 -21
  55. data/lib/swaggy_jenkins/models/github_respository_container.rb +16 -21
  56. data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +16 -21
  57. data/lib/swaggy_jenkins/models/github_scm.rb +16 -21
  58. data/lib/swaggy_jenkins/models/github_scmlinks.rb +16 -21
  59. data/lib/swaggy_jenkins/models/hudson.rb +16 -21
  60. data/lib/swaggy_jenkins/models/hudson_master_computer.rb +16 -21
  61. data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +16 -21
  62. data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +16 -21
  63. data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +16 -21
  64. data/lib/swaggy_jenkins/models/input_step_impl.rb +16 -21
  65. data/lib/swaggy_jenkins/models/input_step_impllinks.rb +16 -21
  66. data/lib/swaggy_jenkins/models/label1.rb +16 -21
  67. data/lib/swaggy_jenkins/models/link.rb +16 -21
  68. data/lib/swaggy_jenkins/models/list_view.rb +16 -21
  69. data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +16 -21
  70. data/lib/swaggy_jenkins/models/null_scm.rb +16 -21
  71. data/lib/swaggy_jenkins/models/organisation.rb +16 -21
  72. data/lib/swaggy_jenkins/models/pipeline.rb +16 -21
  73. data/lib/swaggy_jenkins/models/pipeline_activity.rb +16 -21
  74. data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +16 -21
  75. data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +16 -21
  76. data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +16 -21
  77. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +16 -21
  78. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +16 -21
  79. data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +16 -21
  80. data/lib/swaggy_jenkins/models/pipeline_impl.rb +16 -21
  81. data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +16 -21
  82. data/lib/swaggy_jenkins/models/pipeline_run.rb +16 -21
  83. data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +16 -21
  84. data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +16 -21
  85. data/lib/swaggy_jenkins/models/pipeline_run_node.rb +16 -21
  86. data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +16 -21
  87. data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +16 -21
  88. data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +16 -21
  89. data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +16 -21
  90. data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +16 -21
  91. data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +16 -21
  92. data/lib/swaggy_jenkins/models/queue.rb +16 -21
  93. data/lib/swaggy_jenkins/models/queue_blocked_item.rb +16 -21
  94. data/lib/swaggy_jenkins/models/queue_item_impl.rb +16 -21
  95. data/lib/swaggy_jenkins/models/queue_left_item.rb +16 -21
  96. data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +16 -21
  97. data/lib/swaggy_jenkins/models/string_parameter_definition.rb +16 -21
  98. data/lib/swaggy_jenkins/models/string_parameter_value.rb +16 -21
  99. data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +16 -21
  100. data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +16 -21
  101. data/lib/swaggy_jenkins/models/user.rb +16 -21
  102. data/lib/swaggy_jenkins/version.rb +4 -4
  103. data/lib/swaggy_jenkins.rb +3 -3
  104. data/spec/api/base_api_spec.rb +4 -4
  105. data/spec/api/blue_ocean_api_spec.rb +40 -40
  106. data/spec/api/remote_access_api_spec.rb +23 -23
  107. data/spec/models/all_view_spec.rb +9 -7
  108. data/spec/models/branch_impl_spec.rb +19 -17
  109. data/spec/models/branch_impllinks_spec.rb +11 -9
  110. data/spec/models/branch_implpermissions_spec.rb +11 -9
  111. data/spec/models/cause_action_spec.rb +8 -6
  112. data/spec/models/cause_user_id_cause_spec.rb +10 -8
  113. data/spec/models/classes_by_class_spec.rb +8 -6
  114. data/spec/models/clock_difference_spec.rb +8 -6
  115. data/spec/models/computer_set_spec.rb +11 -9
  116. data/spec/models/default_crumb_issuer_spec.rb +9 -7
  117. data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +10 -8
  118. data/spec/models/empty_change_log_set_spec.rb +8 -6
  119. data/spec/models/extension_class_container_impl1_spec.rb +9 -7
  120. data/spec/models/extension_class_container_impl1links_spec.rb +8 -6
  121. data/spec/models/extension_class_container_impl1map_spec.rb +9 -7
  122. data/spec/models/extension_class_impl_spec.rb +9 -7
  123. data/spec/models/extension_class_impllinks_spec.rb +8 -6
  124. data/spec/models/favorite_impl_spec.rb +9 -7
  125. data/spec/models/favorite_impllinks_spec.rb +8 -6
  126. data/spec/models/free_style_build_spec.rb +24 -22
  127. data/spec/models/free_style_project_spec.rb +33 -31
  128. data/spec/models/free_style_projectactions_spec.rb +7 -5
  129. data/spec/models/free_style_projecthealth_report_spec.rb +11 -9
  130. data/spec/models/generic_resource_spec.rb +12 -10
  131. data/spec/models/github_content_spec.rb +14 -12
  132. data/spec/models/github_file_spec.rb +8 -6
  133. data/spec/models/github_organization_spec.rb +10 -8
  134. data/spec/models/github_organizationlinks_spec.rb +9 -7
  135. data/spec/models/github_repositories_spec.rb +12 -10
  136. data/spec/models/github_repositorieslinks_spec.rb +8 -6
  137. data/spec/models/github_repository_spec.rb +14 -12
  138. data/spec/models/github_repositorylinks_spec.rb +8 -6
  139. data/spec/models/github_repositorypermissions_spec.rb +10 -8
  140. data/spec/models/github_respository_container_spec.rb +9 -7
  141. data/spec/models/github_respository_containerlinks_spec.rb +8 -6
  142. data/spec/models/github_scm_spec.rb +11 -9
  143. data/spec/models/github_scmlinks_spec.rb +8 -6
  144. data/spec/models/hudson_master_computer_spec.rb +22 -20
  145. data/spec/models/hudson_master_computerexecutors_spec.rb +12 -10
  146. data/spec/models/hudson_master_computermonitor_data_spec.rb +13 -11
  147. data/spec/models/hudson_spec.rb +21 -19
  148. data/spec/models/hudsonassigned_labels_spec.rb +7 -5
  149. data/spec/models/input_step_impl_spec.rb +13 -11
  150. data/spec/models/input_step_impllinks_spec.rb +8 -6
  151. data/spec/models/label1_spec.rb +7 -5
  152. data/spec/models/link_spec.rb +8 -6
  153. data/spec/models/list_view_spec.rb +11 -9
  154. data/spec/models/multibranch_pipeline_spec.rb +20 -18
  155. data/spec/models/null_scm_spec.rb +7 -5
  156. data/spec/models/organisation_spec.rb +8 -6
  157. data/spec/models/pipeline_activity_spec.rb +21 -19
  158. data/spec/models/pipeline_activityartifacts_spec.rb +10 -8
  159. data/spec/models/pipeline_branchesitem_spec.rb +15 -13
  160. data/spec/models/pipeline_branchesitemlatest_run_spec.rb +20 -18
  161. data/spec/models/pipeline_branchesitempull_request_spec.rb +12 -10
  162. data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +8 -6
  163. data/spec/models/pipeline_folder_impl_spec.rb +13 -11
  164. data/spec/models/pipeline_impl_spec.rb +15 -13
  165. data/spec/models/pipeline_impllinks_spec.rb +11 -9
  166. data/spec/models/pipeline_run_impl_spec.rb +21 -19
  167. data/spec/models/pipeline_run_impllinks_spec.rb +12 -10
  168. data/spec/models/pipeline_run_node_spec.rb +14 -12
  169. data/spec/models/pipeline_run_nodeedges_spec.rb +8 -6
  170. data/spec/models/pipeline_run_spec.rb +21 -19
  171. data/spec/models/pipeline_runartifacts_spec.rb +10 -8
  172. data/spec/models/pipeline_spec.rb +14 -12
  173. data/spec/models/pipeline_step_impl_spec.rb +15 -13
  174. data/spec/models/pipeline_step_impllinks_spec.rb +9 -7
  175. data/spec/models/pipelinelatest_run_spec.rb +21 -19
  176. data/spec/models/pipelinelatest_runartifacts_spec.rb +10 -8
  177. data/spec/models/queue_blocked_item_spec.rb +18 -16
  178. data/spec/models/queue_item_impl_spec.rb +11 -9
  179. data/spec/models/queue_left_item_spec.rb +19 -17
  180. data/spec/models/queue_spec.rb +8 -6
  181. data/spec/models/response_time_monitor_data_spec.rb +9 -7
  182. data/spec/models/string_parameter_definition_spec.rb +11 -9
  183. data/spec/models/string_parameter_value_spec.rb +9 -7
  184. data/spec/models/swap_space_monitor_memory_usage2_spec.rb +11 -9
  185. data/spec/models/unlabeled_load_statistics_spec.rb +7 -5
  186. data/spec/models/user_spec.rb +11 -9
  187. data/spec/spec_helper.rb +3 -3
  188. data/swaggy_jenkins.gemspec +7 -6
  189. metadata +75 -78
  190. data/spec/api_client_spec.rb +0 -226
  191. data/spec/configuration_spec.rb +0 -42
@@ -5,10 +5,10 @@
5
5
 
6
6
  #Jenkins API clients generated from Swagger / Open API specification
7
7
 
8
- The version of the OpenAPI document: 2.0.1-pre.0
9
- Contact: blah@cliffano.com
8
+ The version of the OpenAPI document: 3.0.1
9
+ Contact: blah+oapicf@cliffano.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.0.0
11
+ Generator version: 7.4.0
12
12
 
13
13
  =end
14
14
 
@@ -19,13 +19,14 @@ Gem::Specification.new do |s|
19
19
  s.name = "swaggy_jenkins"
20
20
  s.version = SwaggyJenkinsClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["Cliffano Subagio"]
23
- s.email = ["blah@cliffano.com"]
24
- s.homepage = "https://github.com/cliffano/swaggy-jenkins"
22
+ s.authors = ["OpenAPI Clients Factory"]
23
+ s.email = ["blah+oapicf@cliffano.com"]
24
+ s.homepage = "https://github.com/oapicf/swaggy-jenkins"
25
25
  s.summary = "Swaggy Jenkins Ruby Gem"
26
26
  s.description = "Jenkins API clients generated from Swagger / Open API specification"
27
27
  s.license = "MIT"
28
28
  s.required_ruby_version = ">= 2.0"
29
+ s.metadata = {}
29
30
 
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swaggy_jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.pre.pre.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Cliffano Subagio
8
- autorequire:
7
+ - OpenAPI Clients Factory
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2024-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: 3.6.0
53
53
  description: Jenkins API clients generated from Swagger / Open API specification
54
54
  email:
55
- - blah@cliffano.com
55
+ - blah+oapicf@cliffano.com
56
56
  executables: []
57
57
  extensions: []
58
58
  extra_rdoc_files: []
@@ -67,6 +67,7 @@ files:
67
67
  - bin/htmldiff
68
68
  - bin/ldiff
69
69
  - bin/pry
70
+ - bin/racc
70
71
  - bin/rake
71
72
  - bin/rspec
72
73
  - bin/rubocop
@@ -247,8 +248,6 @@ files:
247
248
  - spec/api/base_api_spec.rb
248
249
  - spec/api/blue_ocean_api_spec.rb
249
250
  - spec/api/remote_access_api_spec.rb
250
- - spec/api_client_spec.rb
251
- - spec/configuration_spec.rb
252
251
  - spec/models/all_view_spec.rb
253
252
  - spec/models/branch_impl_spec.rb
254
253
  - spec/models/branch_impllinks_spec.rb
@@ -331,11 +330,11 @@ files:
331
330
  - spec/models/user_spec.rb
332
331
  - spec/spec_helper.rb
333
332
  - swaggy_jenkins.gemspec
334
- homepage: https://github.com/cliffano/swaggy-jenkins
333
+ homepage: https://github.com/oapicf/swaggy-jenkins
335
334
  licenses:
336
335
  - MIT
337
336
  metadata: {}
338
- post_install_message:
337
+ post_install_message:
339
338
  rdoc_options: []
340
339
  require_paths:
341
340
  - lib
@@ -346,98 +345,96 @@ required_ruby_version: !ruby/object:Gem::Requirement
346
345
  version: '2.0'
347
346
  required_rubygems_version: !ruby/object:Gem::Requirement
348
347
  requirements:
349
- - - ">"
348
+ - - ">="
350
349
  - !ruby/object:Gem::Version
351
- version: 1.3.1
350
+ version: '0'
352
351
  requirements: []
353
352
  rubygems_version: 3.1.2
354
- signing_key:
353
+ signing_key:
355
354
  specification_version: 4
356
355
  summary: Swaggy Jenkins Ruby Gem
357
356
  test_files:
358
- - spec/api/blue_ocean_api_spec.rb
359
357
  - spec/api/remote_access_api_spec.rb
358
+ - spec/api/blue_ocean_api_spec.rb
360
359
  - spec/api/base_api_spec.rb
361
- - spec/api_client_spec.rb
362
- - spec/configuration_spec.rb
363
- - spec/models/extension_class_container_impl1links_spec.rb
364
- - spec/models/free_style_build_spec.rb
365
- - spec/models/empty_change_log_set_spec.rb
366
- - spec/models/pipeline_impllinks_spec.rb
367
- - spec/models/computer_set_spec.rb
368
- - spec/models/cause_user_id_cause_spec.rb
369
- - spec/models/favorite_impl_spec.rb
370
- - spec/models/cause_action_spec.rb
371
- - spec/models/github_scmlinks_spec.rb
372
- - spec/models/pipeline_branchesitem_spec.rb
373
- - spec/models/github_repository_spec.rb
374
- - spec/models/swap_space_monitor_memory_usage2_spec.rb
375
- - spec/models/queue_left_item_spec.rb
376
360
  - spec/models/pipeline_folder_impl_spec.rb
377
- - spec/models/pipeline_run_impllinks_spec.rb
378
- - spec/models/generic_resource_spec.rb
379
- - spec/models/hudson_master_computerexecutors_spec.rb
361
+ - spec/models/label1_spec.rb
362
+ - spec/models/pipeline_run_node_spec.rb
363
+ - spec/models/queue_left_item_spec.rb
364
+ - spec/models/pipeline_spec.rb
380
365
  - spec/models/pipeline_run_spec.rb
381
- - spec/models/string_parameter_value_spec.rb
382
- - spec/models/github_file_spec.rb
383
- - spec/models/string_parameter_definition_spec.rb
384
- - spec/models/github_respository_containerlinks_spec.rb
385
- - spec/models/favorite_impllinks_spec.rb
386
- - spec/models/hudson_master_computer_spec.rb
387
- - spec/models/disk_space_monitor_descriptor_disk_space_spec.rb
388
- - spec/models/response_time_monitor_data_spec.rb
389
- - spec/models/pipeline_branchesitemlatest_run_spec.rb
390
- - spec/models/extension_class_impl_spec.rb
391
- - spec/models/classes_by_class_spec.rb
366
+ - spec/models/pipeline_activity_spec.rb
392
367
  - spec/models/link_spec.rb
393
- - spec/models/all_view_spec.rb
394
- - spec/models/extension_class_container_impl1_spec.rb
395
- - spec/models/branch_impl_spec.rb
396
368
  - spec/models/queue_blocked_item_spec.rb
397
- - spec/models/free_style_projecthealth_report_spec.rb
398
- - spec/models/github_organizationlinks_spec.rb
399
- - spec/models/pipelinelatest_run_spec.rb
400
- - spec/models/clock_difference_spec.rb
401
- - spec/models/pipeline_run_node_spec.rb
402
- - spec/models/default_crumb_issuer_spec.rb
369
+ - spec/models/pipeline_step_impl_spec.rb
370
+ - spec/models/null_scm_spec.rb
371
+ - spec/models/pipeline_branchesitemlatest_run_spec.rb
372
+ - spec/models/pipeline_branchesitempull_requestlinks_spec.rb
373
+ - spec/models/pipeline_runartifacts_spec.rb
403
374
  - spec/models/user_spec.rb
404
- - spec/models/unlabeled_load_statistics_spec.rb
405
- - spec/models/pipeline_spec.rb
406
- - spec/models/pipeline_activityartifacts_spec.rb
375
+ - spec/models/favorite_impl_spec.rb
376
+ - spec/models/favorite_impllinks_spec.rb
377
+ - spec/models/pipeline_run_impl_spec.rb
378
+ - spec/models/github_organization_spec.rb
379
+ - spec/models/github_repositorylinks_spec.rb
380
+ - spec/models/all_view_spec.rb
381
+ - spec/models/github_organizationlinks_spec.rb
382
+ - spec/models/free_style_build_spec.rb
407
383
  - spec/models/hudsonassigned_labels_spec.rb
408
- - spec/models/pipeline_impl_spec.rb
409
- - spec/models/github_repositorieslinks_spec.rb
410
- - spec/models/queue_item_impl_spec.rb
384
+ - spec/models/string_parameter_definition_spec.rb
385
+ - spec/models/pipeline_activityartifacts_spec.rb
386
+ - spec/models/input_step_impl_spec.rb
387
+ - spec/models/cause_action_spec.rb
388
+ - spec/models/extension_class_container_impl1map_spec.rb
411
389
  - spec/models/pipelinelatest_runartifacts_spec.rb
412
- - spec/models/pipeline_run_impl_spec.rb
413
- - spec/models/list_view_spec.rb
414
- - spec/models/free_style_projectactions_spec.rb
415
390
  - spec/models/branch_impllinks_spec.rb
416
- - spec/models/pipeline_runartifacts_spec.rb
417
391
  - spec/models/github_content_spec.rb
418
- - spec/models/pipeline_branchesitempull_requestlinks_spec.rb
392
+ - spec/models/queue_item_impl_spec.rb
393
+ - spec/models/github_scmlinks_spec.rb
394
+ - spec/models/github_file_spec.rb
395
+ - spec/models/github_repository_spec.rb
396
+ - spec/models/pipeline_branchesitem_spec.rb
397
+ - spec/models/extension_class_container_impl1_spec.rb
398
+ - spec/models/github_repositories_spec.rb
399
+ - spec/models/github_scm_spec.rb
419
400
  - spec/models/hudson_spec.rb
401
+ - spec/models/hudson_master_computer_spec.rb
402
+ - spec/models/organisation_spec.rb
420
403
  - spec/models/extension_class_impllinks_spec.rb
421
- - spec/models/branch_implpermissions_spec.rb
422
- - spec/models/pipeline_step_impllinks_spec.rb
404
+ - spec/models/pipeline_impllinks_spec.rb
405
+ - spec/models/pipeline_run_impllinks_spec.rb
406
+ - spec/models/string_parameter_value_spec.rb
407
+ - spec/models/free_style_projecthealth_report_spec.rb
408
+ - spec/models/cause_user_id_cause_spec.rb
409
+ - spec/models/default_crumb_issuer_spec.rb
423
410
  - spec/models/input_step_impllinks_spec.rb
424
- - spec/models/null_scm_spec.rb
425
411
  - spec/models/multibranch_pipeline_spec.rb
426
- - spec/models/github_scm_spec.rb
427
- - spec/models/github_respository_container_spec.rb
428
- - spec/models/extension_class_container_impl1map_spec.rb
429
412
  - spec/models/free_style_project_spec.rb
413
+ - spec/models/branch_implpermissions_spec.rb
414
+ - spec/models/clock_difference_spec.rb
415
+ - spec/models/branch_impl_spec.rb
416
+ - spec/models/free_style_projectactions_spec.rb
417
+ - spec/models/extension_class_impl_spec.rb
418
+ - spec/models/hudson_master_computerexecutors_spec.rb
419
+ - spec/models/response_time_monitor_data_spec.rb
420
+ - spec/models/disk_space_monitor_descriptor_disk_space_spec.rb
421
+ - spec/models/github_repositorieslinks_spec.rb
422
+ - spec/models/generic_resource_spec.rb
423
+ - spec/models/pipeline_step_impllinks_spec.rb
424
+ - spec/models/pipeline_branchesitempull_request_spec.rb
425
+ - spec/models/pipelinelatest_run_spec.rb
426
+ - spec/models/extension_class_container_impl1links_spec.rb
427
+ - spec/models/list_view_spec.rb
428
+ - spec/models/unlabeled_load_statistics_spec.rb
429
+ - spec/models/github_respository_containerlinks_spec.rb
430
430
  - spec/models/hudson_master_computermonitor_data_spec.rb
431
- - spec/models/github_repositories_spec.rb
432
- - spec/models/label1_spec.rb
433
- - spec/models/organisation_spec.rb
434
431
  - spec/models/github_repositorypermissions_spec.rb
435
- - spec/models/pipeline_run_nodeedges_spec.rb
432
+ - spec/models/swap_space_monitor_memory_usage2_spec.rb
433
+ - spec/models/empty_change_log_set_spec.rb
436
434
  - spec/models/queue_spec.rb
437
- - spec/models/pipeline_step_impl_spec.rb
438
- - spec/models/input_step_impl_spec.rb
439
- - spec/models/github_repositorylinks_spec.rb
440
- - spec/models/pipeline_branchesitempull_request_spec.rb
441
- - spec/models/pipeline_activity_spec.rb
442
- - spec/models/github_organization_spec.rb
435
+ - spec/models/classes_by_class_spec.rb
436
+ - spec/models/pipeline_impl_spec.rb
437
+ - spec/models/computer_set_spec.rb
438
+ - spec/models/github_respository_container_spec.rb
439
+ - spec/models/pipeline_run_nodeedges_spec.rb
443
440
  - spec/spec_helper.rb
@@ -1,226 +0,0 @@
1
- =begin
2
- #Swaggy Jenkins
3
-
4
- #Jenkins API clients generated from Swagger / Open API specification
5
-
6
- The version of the OpenAPI document: 2.0.1-pre.0
7
- Contact: blah@cliffano.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.0.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
-
15
- describe SwaggyJenkinsClient::ApiClient do
16
- context 'initialization' do
17
- context 'URL stuff' do
18
- context 'host' do
19
- it 'removes http from host' do
20
- SwaggyJenkinsClient.configure { |c| c.host = 'http://example.com' }
21
- expect(SwaggyJenkinsClient::Configuration.default.host).to eq('example.com')
22
- end
23
-
24
- it 'removes https from host' do
25
- SwaggyJenkinsClient.configure { |c| c.host = 'https://wookiee.com' }
26
- expect(SwaggyJenkinsClient::ApiClient.default.config.host).to eq('wookiee.com')
27
- end
28
-
29
- it 'removes trailing path from host' do
30
- SwaggyJenkinsClient.configure { |c| c.host = 'hobo.com/v4' }
31
- expect(SwaggyJenkinsClient::Configuration.default.host).to eq('hobo.com')
32
- end
33
- end
34
-
35
- context 'base_path' do
36
- it "prepends a slash to base_path" do
37
- SwaggyJenkinsClient.configure { |c| c.base_path = 'v4/dog' }
38
- expect(SwaggyJenkinsClient::Configuration.default.base_path).to eq('/v4/dog')
39
- end
40
-
41
- it "doesn't prepend a slash if one is already there" do
42
- SwaggyJenkinsClient.configure { |c| c.base_path = '/v4/dog' }
43
- expect(SwaggyJenkinsClient::Configuration.default.base_path).to eq('/v4/dog')
44
- end
45
-
46
- it "ends up as a blank string if nil" do
47
- SwaggyJenkinsClient.configure { |c| c.base_path = nil }
48
- expect(SwaggyJenkinsClient::Configuration.default.base_path).to eq('')
49
- end
50
- end
51
- end
52
- end
53
-
54
- describe 'params_encoding in #build_request' do
55
- let(:config) { SwaggyJenkinsClient::Configuration.new }
56
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new(config) }
57
-
58
- it 'defaults to nil' do
59
- expect(SwaggyJenkinsClient::Configuration.default.params_encoding).to eq(nil)
60
- expect(config.params_encoding).to eq(nil)
61
-
62
- request = api_client.build_request(:get, '/test')
63
- expect(request.options[:params_encoding]).to eq(nil)
64
- end
65
-
66
- it 'can be customized' do
67
- config.params_encoding = :multi
68
- request = api_client.build_request(:get, '/test')
69
- expect(request.options[:params_encoding]).to eq(:multi)
70
- end
71
- end
72
-
73
- describe 'timeout in #build_request' do
74
- let(:config) { SwaggyJenkinsClient::Configuration.new }
75
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new(config) }
76
-
77
- it 'defaults to 0' do
78
- expect(SwaggyJenkinsClient::Configuration.default.timeout).to eq(0)
79
- expect(config.timeout).to eq(0)
80
-
81
- request = api_client.build_request(:get, '/test')
82
- expect(request.options[:timeout]).to eq(0)
83
- end
84
-
85
- it 'can be customized' do
86
- config.timeout = 100
87
- request = api_client.build_request(:get, '/test')
88
- expect(request.options[:timeout]).to eq(100)
89
- end
90
- end
91
-
92
- describe '#deserialize' do
93
- it "handles Array<Integer>" do
94
- api_client = SwaggyJenkinsClient::ApiClient.new
95
- headers = { 'Content-Type' => 'application/json' }
96
- response = double('response', headers: headers, body: '[12, 34]')
97
- data = api_client.deserialize(response, 'Array<Integer>')
98
- expect(data).to be_instance_of(Array)
99
- expect(data).to eq([12, 34])
100
- end
101
-
102
- it 'handles Array<Array<Integer>>' do
103
- api_client = SwaggyJenkinsClient::ApiClient.new
104
- headers = { 'Content-Type' => 'application/json' }
105
- response = double('response', headers: headers, body: '[[12, 34], [56]]')
106
- data = api_client.deserialize(response, 'Array<Array<Integer>>')
107
- expect(data).to be_instance_of(Array)
108
- expect(data).to eq([[12, 34], [56]])
109
- end
110
-
111
- it 'handles Hash<String, String>' do
112
- api_client = SwaggyJenkinsClient::ApiClient.new
113
- headers = { 'Content-Type' => 'application/json' }
114
- response = double('response', headers: headers, body: '{"message": "Hello"}')
115
- data = api_client.deserialize(response, 'Hash<String, String>')
116
- expect(data).to be_instance_of(Hash)
117
- expect(data).to eq(:message => 'Hello')
118
- end
119
- end
120
-
121
- describe "#object_to_hash" do
122
- it 'ignores nils and includes empty arrays' do
123
- # uncomment below to test object_to_hash for model
124
- # api_client = SwaggyJenkinsClient::ApiClient.new
125
- # _model = SwaggyJenkinsClient::ModelName.new
126
- # update the model attribute below
127
- # _model.id = 1
128
- # update the expected value (hash) below
129
- # expected = {id: 1, name: '', tags: []}
130
- # expect(api_client.object_to_hash(_model)).to eq(expected)
131
- end
132
- end
133
-
134
- describe '#build_collection_param' do
135
- let(:param) { ['aa', 'bb', 'cc'] }
136
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
137
-
138
- it 'works for csv' do
139
- expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
140
- end
141
-
142
- it 'works for ssv' do
143
- expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
144
- end
145
-
146
- it 'works for tsv' do
147
- expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
148
- end
149
-
150
- it 'works for pipes' do
151
- expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
152
- end
153
-
154
- it 'works for multi' do
155
- expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
156
- end
157
-
158
- it 'fails for invalid collection format' do
159
- expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
160
- end
161
- end
162
-
163
- describe '#json_mime?' do
164
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
165
-
166
- it 'works' do
167
- expect(api_client.json_mime?(nil)).to eq false
168
- expect(api_client.json_mime?('')).to eq false
169
-
170
- expect(api_client.json_mime?('application/json')).to eq true
171
- expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
172
- expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
173
-
174
- expect(api_client.json_mime?('application/xml')).to eq false
175
- expect(api_client.json_mime?('text/plain')).to eq false
176
- expect(api_client.json_mime?('application/jsonp')).to eq false
177
- end
178
- end
179
-
180
- describe '#select_header_accept' do
181
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
182
-
183
- it 'works' do
184
- expect(api_client.select_header_accept(nil)).to be_nil
185
- expect(api_client.select_header_accept([])).to be_nil
186
-
187
- expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
188
- expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
189
- expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
190
-
191
- expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
192
- expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
193
- end
194
- end
195
-
196
- describe '#select_header_content_type' do
197
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
198
-
199
- it 'works' do
200
- expect(api_client.select_header_content_type(nil)).to be_nil
201
- expect(api_client.select_header_content_type([])).to be_nil
202
-
203
- expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
204
- expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
205
- expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
206
- expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
207
- expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
208
- end
209
- end
210
-
211
- describe '#sanitize_filename' do
212
- let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
213
-
214
- it 'works' do
215
- expect(api_client.sanitize_filename('sun')).to eq('sun')
216
- expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
217
- expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
218
- expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
219
- expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
220
- expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
221
- expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
222
- expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
223
- expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
224
- end
225
- end
226
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #Swaggy Jenkins
3
-
4
- #Jenkins API clients generated from Swagger / Open API specification
5
-
6
- The version of the OpenAPI document: 2.0.1-pre.0
7
- Contact: blah@cliffano.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.0.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
-
15
- describe SwaggyJenkinsClient::Configuration do
16
- let(:config) { SwaggyJenkinsClient::Configuration.default }
17
-
18
- before(:each) do
19
- # uncomment below to setup host and base_path
20
- # require 'URI'
21
- # uri = URI.parse("http://localhost")
22
- # SwaggyJenkinsClient.configure do |c|
23
- # c.host = uri.host
24
- # c.base_path = uri.path
25
- # end
26
- end
27
-
28
- describe '#base_url' do
29
- it 'should have the default value' do
30
- # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://localhost")
32
- end
33
-
34
- it 'should remove trailing slashes' do
35
- [nil, '', '/', '//'].each do |base_path|
36
- config.base_path = base_path
37
- # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://localhost")
39
- end
40
- end
41
- end
42
- end