swaggy_jenkins 0.0.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +3 -1
- data/Gemfile.lock +51 -50
- data/README.md +25 -33
- data/Rakefile +2 -0
- data/bin/bundle +114 -0
- data/bin/byebug +29 -0
- data/bin/coderay +29 -0
- data/bin/htmldiff +29 -0
- data/bin/ldiff +29 -0
- data/bin/pry +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/bin/ruby-parse +29 -0
- data/bin/ruby-rewrite +29 -0
- data/docs/AllView.md +17 -5
- data/docs/BaseApi.md +75 -0
- data/docs/BlueOceanApi.md +1347 -631
- data/docs/BranchImpl.md +37 -15
- data/docs/BranchImpllinks.md +21 -7
- data/docs/BranchImplpermissions.md +21 -7
- data/docs/CauseAction.md +15 -4
- data/docs/CauseUserIdCause.md +19 -6
- data/docs/ClassesByClass.md +15 -4
- data/docs/ClockDifference.md +15 -4
- data/docs/ComputerSet.md +21 -7
- data/docs/DefaultCrumbIssuer.md +17 -5
- data/docs/DiskSpaceMonitorDescriptorDiskSpace.md +19 -6
- data/docs/EmptyChangeLogSet.md +15 -4
- data/docs/ExtensionClassContainerImpl1.md +17 -5
- data/docs/ExtensionClassContainerImpl1links.md +15 -4
- data/docs/ExtensionClassContainerImpl1map.md +17 -5
- data/docs/ExtensionClassImpl.md +17 -5
- data/docs/ExtensionClassImpllinks.md +15 -4
- data/docs/FavoriteImpl.md +17 -5
- data/docs/FavoriteImpllinks.md +15 -4
- data/docs/FreeStyleBuild.md +47 -20
- data/docs/FreeStyleProject.md +65 -29
- data/docs/FreeStyleProjectactions.md +13 -3
- data/docs/FreeStyleProjecthealthReport.md +21 -7
- data/docs/GenericResource.md +23 -8
- data/docs/GithubContent.md +27 -10
- data/docs/GithubFile.md +15 -4
- data/docs/GithubOrganization.md +19 -6
- data/docs/GithubOrganizationlinks.md +17 -5
- data/docs/GithubRepositories.md +23 -8
- data/docs/GithubRepositorieslinks.md +15 -4
- data/docs/GithubRepository.md +27 -10
- data/docs/GithubRepositorylinks.md +15 -4
- data/docs/GithubRepositorypermissions.md +19 -6
- data/docs/GithubRespositoryContainer.md +17 -5
- data/docs/GithubRespositoryContainerlinks.md +15 -4
- data/docs/GithubScm.md +21 -7
- data/docs/GithubScmlinks.md +15 -4
- data/docs/Hudson.md +41 -17
- data/docs/HudsonMasterComputer.md +43 -18
- data/docs/HudsonMasterComputerexecutors.md +23 -8
- data/docs/HudsonMasterComputermonitorData.md +25 -9
- data/docs/HudsonassignedLabels.md +13 -3
- data/docs/InputStepImpl.md +25 -9
- data/docs/InputStepImpllinks.md +15 -4
- data/docs/Label1.md +13 -3
- data/docs/Link.md +15 -4
- data/docs/ListView.md +21 -7
- data/docs/MultibranchPipeline.md +39 -16
- data/docs/NullSCM.md +13 -3
- data/docs/Organisation.md +15 -4
- data/docs/Pipeline.md +27 -10
- data/docs/PipelineActivity.md +41 -17
- data/docs/PipelineActivityartifacts.md +19 -6
- data/docs/PipelineBranchesitem.md +29 -11
- data/docs/PipelineBranchesitemlatestRun.md +39 -16
- data/docs/PipelineBranchesitempullRequest.md +23 -8
- data/docs/PipelineBranchesitempullRequestlinks.md +15 -4
- data/docs/PipelineFolderImpl.md +25 -9
- data/docs/PipelineImpl.md +29 -11
- data/docs/PipelineImpllinks.md +21 -7
- data/docs/PipelineRun.md +41 -17
- data/docs/PipelineRunImpl.md +41 -17
- data/docs/PipelineRunImpllinks.md +23 -8
- data/docs/PipelineRunNode.md +27 -10
- data/docs/PipelineRunNodeedges.md +15 -4
- data/docs/PipelineRunartifacts.md +19 -6
- data/docs/PipelineStepImpl.md +29 -11
- data/docs/PipelineStepImpllinks.md +17 -5
- data/docs/PipelinelatestRun.md +41 -17
- data/docs/PipelinelatestRunartifacts.md +19 -6
- data/docs/Queue.md +15 -4
- data/docs/QueueBlockedItem.md +35 -14
- data/docs/QueueItemImpl.md +21 -7
- data/docs/QueueLeftItem.md +37 -15
- data/docs/RemoteAccessApi.md +666 -350
- data/docs/ResponseTimeMonitorData.md +17 -5
- data/docs/StringParameterDefinition.md +21 -7
- data/docs/StringParameterValue.md +17 -5
- data/docs/SwapSpaceMonitorMemoryUsage2.md +21 -7
- data/docs/UnlabeledLoadStatistics.md +13 -3
- data/docs/User.md +21 -7
- data/git_push.sh +12 -10
- data/lib/swaggy_jenkins/api/base_api.rb +77 -0
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +1048 -643
- data/lib/swaggy_jenkins/api/remote_access_api.rb +506 -361
- data/lib/swaggy_jenkins/api_client.rb +95 -94
- data/lib/swaggy_jenkins/api_error.rb +22 -3
- data/lib/swaggy_jenkins/configuration.rb +91 -15
- data/lib/swaggy_jenkins/models/all_view.rb +59 -29
- data/lib/swaggy_jenkins/models/branch_impl.rb +76 -46
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +65 -35
- data/lib/swaggy_jenkins/models/cause_action.rb +58 -28
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +63 -33
- data/lib/swaggy_jenkins/models/classes_by_class.rb +58 -28
- data/lib/swaggy_jenkins/models/clock_difference.rb +58 -28
- data/lib/swaggy_jenkins/models/computer_set.rb +64 -34
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +60 -30
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +60 -30
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +58 -28
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +61 -31
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/free_style_build.rb +83 -53
- data/lib/swaggy_jenkins/models/free_style_project.rb +105 -75
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +57 -27
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +63 -33
- data/lib/swaggy_jenkins/models/generic_resource.rb +65 -35
- data/lib/swaggy_jenkins/models/github_content.rb +65 -35
- data/lib/swaggy_jenkins/models/github_file.rb +58 -28
- data/lib/swaggy_jenkins/models/github_organization.rb +62 -32
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +60 -30
- data/lib/swaggy_jenkins/models/github_repositories.rb +65 -35
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repository.rb +67 -37
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +63 -33
- data/lib/swaggy_jenkins/models/github_respository_container.rb +59 -29
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_scm.rb +62 -32
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/hudson.rb +84 -54
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +89 -59
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +66 -36
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +69 -39
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +57 -27
- data/lib/swaggy_jenkins/models/input_step_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/label1.rb +57 -27
- data/lib/swaggy_jenkins/models/link.rb +58 -28
- data/lib/swaggy_jenkins/models/list_view.rb +61 -31
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +81 -51
- data/lib/swaggy_jenkins/models/null_scm.rb +57 -27
- data/lib/swaggy_jenkins/models/organisation.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline.rb +69 -39
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +71 -41
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +77 -47
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +70 -40
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +63 -33
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +68 -38
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +60 -30
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/queue.rb +58 -28
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +73 -43
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/queue_left_item.rb +74 -44
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +59 -29
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +62 -32
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +59 -29
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +65 -35
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +57 -27
- data/lib/swaggy_jenkins/models/user.rb +62 -32
- data/lib/swaggy_jenkins/version.rb +4 -4
- data/lib/swaggy_jenkins.rb +4 -16
- data/spec/api/base_api_spec.rb +45 -0
- data/spec/api/blue_ocean_api_spec.rb +76 -88
- data/spec/api/remote_access_api_spec.rb +28 -59
- data/spec/api_client_spec.rb +40 -40
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/all_view_spec.rb +10 -18
- data/spec/models/branch_impl_spec.rb +20 -28
- data/spec/models/branch_impllinks_spec.rb +12 -20
- data/spec/models/branch_implpermissions_spec.rb +12 -20
- data/spec/models/cause_action_spec.rb +9 -17
- data/spec/models/cause_user_id_cause_spec.rb +11 -19
- data/spec/models/classes_by_class_spec.rb +9 -17
- data/spec/models/clock_difference_spec.rb +9 -17
- data/spec/models/computer_set_spec.rb +12 -20
- data/spec/models/default_crumb_issuer_spec.rb +10 -18
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +11 -19
- data/spec/models/empty_change_log_set_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1_spec.rb +10 -18
- data/spec/models/extension_class_container_impl1links_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1map_spec.rb +10 -18
- data/spec/models/extension_class_impl_spec.rb +10 -18
- data/spec/models/extension_class_impllinks_spec.rb +9 -17
- data/spec/models/favorite_impl_spec.rb +10 -18
- data/spec/models/favorite_impllinks_spec.rb +9 -17
- data/spec/models/free_style_build_spec.rb +25 -33
- data/spec/models/free_style_project_spec.rb +34 -42
- data/spec/models/free_style_projectactions_spec.rb +8 -16
- data/spec/models/free_style_projecthealth_report_spec.rb +12 -20
- data/spec/models/generic_resource_spec.rb +13 -21
- data/spec/models/github_content_spec.rb +15 -23
- data/spec/models/github_file_spec.rb +9 -17
- data/spec/models/github_organization_spec.rb +11 -19
- data/spec/models/github_organizationlinks_spec.rb +10 -18
- data/spec/models/github_repositories_spec.rb +13 -21
- data/spec/models/github_repositorieslinks_spec.rb +9 -17
- data/spec/models/github_repository_spec.rb +15 -23
- data/spec/models/github_repositorylinks_spec.rb +9 -17
- data/spec/models/github_repositorypermissions_spec.rb +11 -19
- data/spec/models/github_respository_container_spec.rb +10 -18
- data/spec/models/github_respository_containerlinks_spec.rb +9 -17
- data/spec/models/github_scm_spec.rb +12 -20
- data/spec/models/github_scmlinks_spec.rb +9 -17
- data/spec/models/hudson_master_computer_spec.rb +23 -31
- data/spec/models/hudson_master_computerexecutors_spec.rb +13 -21
- data/spec/models/hudson_master_computermonitor_data_spec.rb +14 -22
- data/spec/models/hudson_spec.rb +22 -30
- data/spec/models/hudsonassigned_labels_spec.rb +8 -16
- data/spec/models/input_step_impl_spec.rb +14 -22
- data/spec/models/input_step_impllinks_spec.rb +9 -17
- data/spec/models/label1_spec.rb +8 -16
- data/spec/models/link_spec.rb +9 -17
- data/spec/models/list_view_spec.rb +12 -20
- data/spec/models/multibranch_pipeline_spec.rb +21 -29
- data/spec/models/null_scm_spec.rb +8 -16
- data/spec/models/organisation_spec.rb +9 -17
- data/spec/models/pipeline_activity_spec.rb +22 -30
- data/spec/models/pipeline_activityartifacts_spec.rb +11 -19
- data/spec/models/pipeline_branchesitem_spec.rb +16 -24
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +21 -29
- data/spec/models/pipeline_branchesitempull_request_spec.rb +13 -21
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +9 -17
- data/spec/models/pipeline_folder_impl_spec.rb +14 -22
- data/spec/models/pipeline_impl_spec.rb +16 -24
- data/spec/models/pipeline_impllinks_spec.rb +12 -20
- data/spec/models/pipeline_run_impl_spec.rb +22 -30
- data/spec/models/pipeline_run_impllinks_spec.rb +13 -21
- data/spec/models/pipeline_run_node_spec.rb +15 -23
- data/spec/models/pipeline_run_nodeedges_spec.rb +9 -17
- data/spec/models/pipeline_run_spec.rb +22 -30
- data/spec/models/pipeline_runartifacts_spec.rb +11 -19
- data/spec/models/pipeline_spec.rb +15 -23
- data/spec/models/pipeline_step_impl_spec.rb +16 -24
- data/spec/models/pipeline_step_impllinks_spec.rb +10 -18
- data/spec/models/pipelinelatest_run_spec.rb +22 -30
- data/spec/models/pipelinelatest_runartifacts_spec.rb +11 -19
- data/spec/models/queue_blocked_item_spec.rb +19 -27
- data/spec/models/queue_item_impl_spec.rb +12 -20
- data/spec/models/queue_left_item_spec.rb +20 -28
- data/spec/models/queue_spec.rb +9 -17
- data/spec/models/response_time_monitor_data_spec.rb +10 -18
- data/spec/models/string_parameter_definition_spec.rb +12 -20
- data/spec/models/string_parameter_value_spec.rb +10 -18
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +12 -20
- data/spec/models/unlabeled_load_statistics_spec.rb +8 -16
- data/spec/models/user_spec.rb +12 -20
- data/spec/spec_helper.rb +3 -3
- data/swaggy_jenkins.gemspec +6 -13
- metadata +97 -275
- data/docs/Body.md +0 -8
- data/docs/Organisations.md +0 -7
- data/docs/PipelineActivities.md +0 -7
- data/docs/PipelineBranches.md +0 -7
- data/docs/PipelineQueue.md +0 -7
- data/docs/PipelineRunNodeSteps.md +0 -7
- data/docs/PipelineRunNodes.md +0 -7
- data/docs/PipelineRunSteps.md +0 -7
- data/docs/PipelineRuns.md +0 -7
- data/docs/Pipelines.md +0 -7
- data/docs/ScmOrganisations.md +0 -7
- data/docs/UserFavorites.md +0 -7
- data/docs/Users.md +0 -7
- data/lib/swaggy_jenkins/models/body.rb +0 -193
- data/lib/swaggy_jenkins/models/organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_activities.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_branches.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_queue.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_node_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_nodes.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_runs.rb +0 -179
- data/lib/swaggy_jenkins/models/pipelines.rb +0 -179
- data/lib/swaggy_jenkins/models/scm_organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/user_favorites.rb +0 -179
- data/lib/swaggy_jenkins/models/users.rb +0 -179
- data/spec/models/body_spec.rb +0 -42
- data/spec/models/organisations_spec.rb +0 -36
- data/spec/models/pipeline_activities_spec.rb +0 -36
- data/spec/models/pipeline_branches_spec.rb +0 -36
- data/spec/models/pipeline_queue_spec.rb +0 -36
- data/spec/models/pipeline_run_node_steps_spec.rb +0 -36
- data/spec/models/pipeline_run_nodes_spec.rb +0 -36
- data/spec/models/pipeline_run_steps_spec.rb +0 -36
- data/spec/models/pipeline_runs_spec.rb +0 -36
- data/spec/models/pipelines_spec.rb +0 -36
- data/spec/models/scm_organisations_spec.rb +0 -36
- data/spec/models/user_favorites_spec.rb +0 -36
- data/spec/models/users_spec.rb +0 -36
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.1.2-pre.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for SwaggyJenkinsClient::RemoteAccessApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'RemoteAccessApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@api_instance = SwaggyJenkinsClient::RemoteAccessApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,82 +28,65 @@ describe 'RemoteAccessApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of RemoteAccessApi' do
|
30
30
|
it 'should create an instance of RemoteAccessApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@api_instance).to be_instance_of(SwaggyJenkinsClient::RemoteAccessApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_computer
|
36
|
-
#
|
37
36
|
# Retrieve computer details
|
38
37
|
# @param depth Recursion depth in response model
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [ComputerSet]
|
41
40
|
describe 'get_computer test' do
|
42
|
-
it
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for get_crumb
|
48
|
-
#
|
49
|
-
# Retrieve CSRF protection token
|
50
|
-
# @param [Hash] opts the optional parameters
|
51
|
-
# @return [DefaultCrumbIssuer]
|
52
|
-
describe 'get_crumb test' do
|
53
|
-
it "should work" do
|
41
|
+
it 'should work' do
|
54
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
43
|
end
|
56
44
|
end
|
57
45
|
|
58
46
|
# unit tests for get_jenkins
|
59
|
-
#
|
60
47
|
# Retrieve Jenkins details
|
61
48
|
# @param [Hash] opts the optional parameters
|
62
49
|
# @return [Hudson]
|
63
50
|
describe 'get_jenkins test' do
|
64
|
-
it
|
51
|
+
it 'should work' do
|
65
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
53
|
end
|
67
54
|
end
|
68
55
|
|
69
56
|
# unit tests for get_job
|
70
|
-
#
|
71
57
|
# Retrieve job details
|
72
58
|
# @param name Name of the job
|
73
59
|
# @param [Hash] opts the optional parameters
|
74
60
|
# @return [FreeStyleProject]
|
75
61
|
describe 'get_job test' do
|
76
|
-
it
|
62
|
+
it 'should work' do
|
77
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
64
|
end
|
79
65
|
end
|
80
66
|
|
81
67
|
# unit tests for get_job_config
|
82
|
-
#
|
83
68
|
# Retrieve job configuration
|
84
69
|
# @param name Name of the job
|
85
70
|
# @param [Hash] opts the optional parameters
|
86
71
|
# @return [String]
|
87
72
|
describe 'get_job_config test' do
|
88
|
-
it
|
73
|
+
it 'should work' do
|
89
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
75
|
end
|
91
76
|
end
|
92
77
|
|
93
78
|
# unit tests for get_job_last_build
|
94
|
-
#
|
95
79
|
# Retrieve job's last build details
|
96
80
|
# @param name Name of the job
|
97
81
|
# @param [Hash] opts the optional parameters
|
98
82
|
# @return [FreeStyleBuild]
|
99
83
|
describe 'get_job_last_build test' do
|
100
|
-
it
|
84
|
+
it 'should work' do
|
101
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
86
|
end
|
103
87
|
end
|
104
88
|
|
105
89
|
# unit tests for get_job_progressive_text
|
106
|
-
#
|
107
90
|
# Retrieve job's build progressive text output
|
108
91
|
# @param name Name of the job
|
109
92
|
# @param number Build number
|
@@ -111,103 +94,95 @@ describe 'RemoteAccessApi' do
|
|
111
94
|
# @param [Hash] opts the optional parameters
|
112
95
|
# @return [nil]
|
113
96
|
describe 'get_job_progressive_text test' do
|
114
|
-
it
|
97
|
+
it 'should work' do
|
115
98
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
99
|
end
|
117
100
|
end
|
118
101
|
|
119
102
|
# unit tests for get_queue
|
120
|
-
#
|
121
103
|
# Retrieve queue details
|
122
104
|
# @param [Hash] opts the optional parameters
|
123
105
|
# @return [Queue]
|
124
106
|
describe 'get_queue test' do
|
125
|
-
it
|
107
|
+
it 'should work' do
|
126
108
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
109
|
end
|
128
110
|
end
|
129
111
|
|
130
112
|
# unit tests for get_queue_item
|
131
|
-
#
|
132
113
|
# Retrieve queued item details
|
133
114
|
# @param number Queue number
|
134
115
|
# @param [Hash] opts the optional parameters
|
135
116
|
# @return [Queue]
|
136
117
|
describe 'get_queue_item test' do
|
137
|
-
it
|
118
|
+
it 'should work' do
|
138
119
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
120
|
end
|
140
121
|
end
|
141
122
|
|
142
123
|
# unit tests for get_view
|
143
|
-
#
|
144
124
|
# Retrieve view details
|
145
125
|
# @param name Name of the view
|
146
126
|
# @param [Hash] opts the optional parameters
|
147
127
|
# @return [ListView]
|
148
128
|
describe 'get_view test' do
|
149
|
-
it
|
129
|
+
it 'should work' do
|
150
130
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
131
|
end
|
152
132
|
end
|
153
133
|
|
154
134
|
# unit tests for get_view_config
|
155
|
-
#
|
156
135
|
# Retrieve view configuration
|
157
136
|
# @param name Name of the view
|
158
137
|
# @param [Hash] opts the optional parameters
|
159
138
|
# @return [String]
|
160
139
|
describe 'get_view_config test' do
|
161
|
-
it
|
140
|
+
it 'should work' do
|
162
141
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
142
|
end
|
164
143
|
end
|
165
144
|
|
166
145
|
# unit tests for head_jenkins
|
167
|
-
#
|
168
146
|
# Retrieve Jenkins headers
|
169
147
|
# @param [Hash] opts the optional parameters
|
170
148
|
# @return [nil]
|
171
149
|
describe 'head_jenkins test' do
|
172
|
-
it
|
150
|
+
it 'should work' do
|
173
151
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
174
152
|
end
|
175
153
|
end
|
176
154
|
|
177
155
|
# unit tests for post_create_item
|
178
|
-
#
|
179
156
|
# Create a new job using job configuration, or copied from an existing job
|
180
157
|
# @param name Name of the new job
|
181
158
|
# @param [Hash] opts the optional parameters
|
182
159
|
# @option opts [String] :from Existing job to copy from
|
183
160
|
# @option opts [String] :mode Set to 'copy' for copying an existing job
|
184
|
-
# @option opts [String] :body Job configuration in config.xml format
|
185
161
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
186
162
|
# @option opts [String] :content_type Content type header application/xml
|
163
|
+
# @option opts [String] :body Job configuration in config.xml format
|
187
164
|
# @return [nil]
|
188
165
|
describe 'post_create_item test' do
|
189
|
-
it
|
166
|
+
it 'should work' do
|
190
167
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
191
168
|
end
|
192
169
|
end
|
193
170
|
|
194
171
|
# unit tests for post_create_view
|
195
|
-
#
|
196
172
|
# Create a new view using view configuration
|
197
173
|
# @param name Name of the new view
|
198
174
|
# @param [Hash] opts the optional parameters
|
199
|
-
# @option opts [String] :body View configuration in config.xml format
|
200
175
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
201
176
|
# @option opts [String] :content_type Content type header application/xml
|
177
|
+
# @option opts [String] :body View configuration in config.xml format
|
202
178
|
# @return [nil]
|
203
179
|
describe 'post_create_view test' do
|
204
|
-
it
|
180
|
+
it 'should work' do
|
205
181
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
206
182
|
end
|
207
183
|
end
|
208
184
|
|
209
185
|
# unit tests for post_job_build
|
210
|
-
#
|
211
186
|
# Build a job
|
212
187
|
# @param name Name of the job
|
213
188
|
# @param json
|
@@ -216,13 +191,12 @@ describe 'RemoteAccessApi' do
|
|
216
191
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
217
192
|
# @return [nil]
|
218
193
|
describe 'post_job_build test' do
|
219
|
-
it
|
194
|
+
it 'should work' do
|
220
195
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
221
196
|
end
|
222
197
|
end
|
223
198
|
|
224
199
|
# unit tests for post_job_config
|
225
|
-
#
|
226
200
|
# Update job configuration
|
227
201
|
# @param name Name of the job
|
228
202
|
# @param body Job configuration in config.xml format
|
@@ -230,65 +204,60 @@ describe 'RemoteAccessApi' do
|
|
230
204
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
231
205
|
# @return [nil]
|
232
206
|
describe 'post_job_config test' do
|
233
|
-
it
|
207
|
+
it 'should work' do
|
234
208
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
235
209
|
end
|
236
210
|
end
|
237
211
|
|
238
212
|
# unit tests for post_job_delete
|
239
|
-
#
|
240
213
|
# Delete a job
|
241
214
|
# @param name Name of the job
|
242
215
|
# @param [Hash] opts the optional parameters
|
243
216
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
244
217
|
# @return [nil]
|
245
218
|
describe 'post_job_delete test' do
|
246
|
-
it
|
219
|
+
it 'should work' do
|
247
220
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
248
221
|
end
|
249
222
|
end
|
250
223
|
|
251
224
|
# unit tests for post_job_disable
|
252
|
-
#
|
253
225
|
# Disable a job
|
254
226
|
# @param name Name of the job
|
255
227
|
# @param [Hash] opts the optional parameters
|
256
228
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
257
229
|
# @return [nil]
|
258
230
|
describe 'post_job_disable test' do
|
259
|
-
it
|
231
|
+
it 'should work' do
|
260
232
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
261
233
|
end
|
262
234
|
end
|
263
235
|
|
264
236
|
# unit tests for post_job_enable
|
265
|
-
#
|
266
237
|
# Enable a job
|
267
238
|
# @param name Name of the job
|
268
239
|
# @param [Hash] opts the optional parameters
|
269
240
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
270
241
|
# @return [nil]
|
271
242
|
describe 'post_job_enable test' do
|
272
|
-
it
|
243
|
+
it 'should work' do
|
273
244
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
274
245
|
end
|
275
246
|
end
|
276
247
|
|
277
248
|
# unit tests for post_job_last_build_stop
|
278
|
-
#
|
279
249
|
# Stop a job
|
280
250
|
# @param name Name of the job
|
281
251
|
# @param [Hash] opts the optional parameters
|
282
252
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
283
253
|
# @return [nil]
|
284
254
|
describe 'post_job_last_build_stop test' do
|
285
|
-
it
|
255
|
+
it 'should work' do
|
286
256
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
287
257
|
end
|
288
258
|
end
|
289
259
|
|
290
260
|
# unit tests for post_view_config
|
291
|
-
#
|
292
261
|
# Update view configuration
|
293
262
|
# @param name Name of the view
|
294
263
|
# @param body View configuration in config.xml format
|
@@ -296,7 +265,7 @@ describe 'RemoteAccessApi' do
|
|
296
265
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
297
266
|
# @return [nil]
|
298
267
|
describe 'post_view_config test' do
|
299
|
-
it
|
268
|
+
it 'should work' do
|
300
269
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
301
270
|
end
|
302
271
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,11 +51,11 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
55
|
let(:config) { SwaggyJenkinsClient::Configuration.new }
|
56
56
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new(config) }
|
57
57
|
|
58
|
-
it
|
58
|
+
it 'defaults to nil' do
|
59
59
|
expect(SwaggyJenkinsClient::Configuration.default.params_encoding).to eq(nil)
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
61
61
|
|
@@ -63,18 +63,18 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
63
63
|
expect(request.options[:params_encoding]).to eq(nil)
|
64
64
|
end
|
65
65
|
|
66
|
-
it
|
66
|
+
it 'can be customized' do
|
67
67
|
config.params_encoding = :multi
|
68
68
|
request = api_client.build_request(:get, '/test')
|
69
69
|
expect(request.options[:params_encoding]).to eq(:multi)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
describe
|
73
|
+
describe 'timeout in #build_request' do
|
74
74
|
let(:config) { SwaggyJenkinsClient::Configuration.new }
|
75
75
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new(config) }
|
76
76
|
|
77
|
-
it
|
77
|
+
it 'defaults to 0' do
|
78
78
|
expect(SwaggyJenkinsClient::Configuration.default.timeout).to eq(0)
|
79
79
|
expect(config.timeout).to eq(0)
|
80
80
|
|
@@ -82,88 +82,88 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
82
82
|
expect(request.options[:timeout]).to eq(0)
|
83
83
|
end
|
84
84
|
|
85
|
-
it
|
85
|
+
it 'can be customized' do
|
86
86
|
config.timeout = 100
|
87
87
|
request = api_client.build_request(:get, '/test')
|
88
88
|
expect(request.options[:timeout]).to eq(100)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
describe
|
92
|
+
describe '#deserialize' do
|
93
93
|
it "handles Array<Integer>" do
|
94
94
|
api_client = SwaggyJenkinsClient::ApiClient.new
|
95
|
-
headers = {'Content-Type' => 'application/json'}
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
96
96
|
response = double('response', headers: headers, body: '[12, 34]')
|
97
97
|
data = api_client.deserialize(response, 'Array<Integer>')
|
98
98
|
expect(data).to be_instance_of(Array)
|
99
99
|
expect(data).to eq([12, 34])
|
100
100
|
end
|
101
101
|
|
102
|
-
it
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
103
103
|
api_client = SwaggyJenkinsClient::ApiClient.new
|
104
|
-
headers = {'Content-Type' => 'application/json'}
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
105
105
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
106
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
107
107
|
expect(data).to be_instance_of(Array)
|
108
108
|
expect(data).to eq([[12, 34], [56]])
|
109
109
|
end
|
110
110
|
|
111
|
-
it
|
111
|
+
it 'handles Hash<String, String>' do
|
112
112
|
api_client = SwaggyJenkinsClient::ApiClient.new
|
113
|
-
headers = {'Content-Type' => 'application/json'}
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
114
114
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
115
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
116
116
|
expect(data).to be_instance_of(Hash)
|
117
|
-
expect(data).to eq(
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
121
|
describe "#object_to_hash" do
|
122
|
-
it
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
123
123
|
# uncomment below to test object_to_hash for model
|
124
|
-
#api_client = SwaggyJenkinsClient::ApiClient.new
|
125
|
-
#_model = SwaggyJenkinsClient::ModelName.new
|
124
|
+
# api_client = SwaggyJenkinsClient::ApiClient.new
|
125
|
+
# _model = SwaggyJenkinsClient::ModelName.new
|
126
126
|
# update the model attribute below
|
127
|
-
#_model.id = 1
|
127
|
+
# _model.id = 1
|
128
128
|
# update the expected value (hash) below
|
129
|
-
#expected = {id: 1, name: '', tags: []}
|
130
|
-
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
-
describe
|
134
|
+
describe '#build_collection_param' do
|
135
135
|
let(:param) { ['aa', 'bb', 'cc'] }
|
136
136
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
|
137
137
|
|
138
|
-
it
|
138
|
+
it 'works for csv' do
|
139
139
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
140
140
|
end
|
141
141
|
|
142
|
-
it
|
142
|
+
it 'works for ssv' do
|
143
143
|
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
144
144
|
end
|
145
145
|
|
146
|
-
it
|
146
|
+
it 'works for tsv' do
|
147
147
|
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
148
148
|
end
|
149
149
|
|
150
|
-
it
|
150
|
+
it 'works for pipes' do
|
151
151
|
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
152
152
|
end
|
153
153
|
|
154
|
-
it
|
154
|
+
it 'works for multi' do
|
155
155
|
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
156
156
|
end
|
157
157
|
|
158
|
-
it
|
159
|
-
expect
|
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
160
|
end
|
161
161
|
end
|
162
162
|
|
163
|
-
describe
|
163
|
+
describe '#json_mime?' do
|
164
164
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
|
165
165
|
|
166
|
-
it
|
166
|
+
it 'works' do
|
167
167
|
expect(api_client.json_mime?(nil)).to eq false
|
168
168
|
expect(api_client.json_mime?('')).to eq false
|
169
169
|
|
@@ -177,10 +177,10 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
-
describe
|
180
|
+
describe '#select_header_accept' do
|
181
181
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
|
182
182
|
|
183
|
-
it
|
183
|
+
it 'works' do
|
184
184
|
expect(api_client.select_header_accept(nil)).to be_nil
|
185
185
|
expect(api_client.select_header_accept([])).to be_nil
|
186
186
|
|
@@ -193,12 +193,12 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
-
describe
|
196
|
+
describe '#select_header_content_type' do
|
197
197
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
|
198
198
|
|
199
|
-
it
|
200
|
-
expect(api_client.select_header_content_type(nil)).to
|
201
|
-
expect(api_client.select_header_content_type([])).to
|
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
202
|
|
203
203
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
204
|
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
@@ -208,10 +208,10 @@ describe SwaggyJenkinsClient::ApiClient do
|
|
208
208
|
end
|
209
209
|
end
|
210
210
|
|
211
|
-
describe
|
211
|
+
describe '#sanitize_filename' do
|
212
212
|
let(:api_client) { SwaggyJenkinsClient::ApiClient.new }
|
213
213
|
|
214
|
-
it
|
214
|
+
it 'works' do
|
215
215
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
216
216
|
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
217
217
|
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
data/spec/configuration_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,25 +17,25 @@ describe SwaggyJenkinsClient::Configuration do
|
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
|
-
#require 'URI'
|
21
|
-
#uri = URI.parse("http://localhost")
|
22
|
-
#SwaggyJenkinsClient.configure do |c|
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#end
|
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
26
|
end
|
27
27
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
#expect(config.base_url).to eq("http://localhost")
|
31
|
+
# expect(config.base_url).to eq("http://localhost")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
#expect(config.base_url).to eq("http://localhost")
|
38
|
+
# expect(config.base_url).to eq("http://localhost")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.1.2-pre.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,40 +15,32 @@ require 'json'
|
|
15
15
|
require 'date'
|
16
16
|
|
17
17
|
# Unit tests for SwaggyJenkinsClient::AllView
|
18
|
-
# Automatically generated by
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggyJenkinsClient::AllView.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe SwaggyJenkinsClient::AllView do
|
21
|
+
let(:instance) { SwaggyJenkinsClient::AllView.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AllView' do
|
31
24
|
it 'should create an instance of AllView' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(SwaggyJenkinsClient::AllView)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "_class"' do
|
36
29
|
it 'should work' do
|
37
|
-
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
31
|
end
|
39
32
|
end
|
40
33
|
|
41
34
|
describe 'test attribute "name"' do
|
42
35
|
it 'should work' do
|
43
|
-
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
37
|
end
|
45
38
|
end
|
46
39
|
|
47
40
|
describe 'test attribute "url"' do
|
48
41
|
it 'should work' do
|
49
|
-
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
43
|
end
|
51
44
|
end
|
52
45
|
|
53
46
|
end
|
54
|
-
|