dependency-tracker-client 1.0.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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +276 -0
- data/Rakefile +10 -0
- data/dependency-tracker-client.gemspec +39 -0
- data/docs/About.md +25 -0
- data/docs/Analysis.md +21 -0
- data/docs/AnalysisApi.md +177 -0
- data/docs/AnalysisComment.md +21 -0
- data/docs/AnalysisRequest.md +27 -0
- data/docs/ApiKey.md +17 -0
- data/docs/BadgeApi.md +102 -0
- data/docs/BodyPart.md +31 -0
- data/docs/BomApi.md +335 -0
- data/docs/BomSubmitRequest.md +25 -0
- data/docs/CalculatorApi.md +61 -0
- data/docs/CloneProjectRequest.md +19 -0
- data/docs/Component.md +69 -0
- data/docs/ComponentApi.md +373 -0
- data/docs/ComponentMetrics.md +43 -0
- data/docs/ConfigProperty.md +25 -0
- data/docs/ConfigPropertyApi.md +167 -0
- data/docs/ContentDisposition.md +29 -0
- data/docs/Cwe.md +19 -0
- data/docs/CweApi.md +110 -0
- data/docs/DefaultApi.md +434 -0
- data/docs/Dependency.md +27 -0
- data/docs/DependencyApi.md +222 -0
- data/docs/DependencyMetrics.md +45 -0
- data/docs/DependencyRequest.md +21 -0
- data/docs/Finding.md +23 -0
- data/docs/FindingApi.md +113 -0
- data/docs/FormDataBodyPart.md +39 -0
- data/docs/FormDataContentDisposition.md +31 -0
- data/docs/FormDataMultiPart.md +35 -0
- data/docs/Framework.md +23 -0
- data/docs/IdentifiableObject.md +17 -0
- data/docs/LdapApi.md +220 -0
- data/docs/LdapUser.md +25 -0
- data/docs/License.md +37 -0
- data/docs/LicenseApi.md +159 -0
- data/docs/ManagedUser.md +37 -0
- data/docs/MappedLdapGroup.md +19 -0
- data/docs/MappedLdapGroupRequest.md +19 -0
- data/docs/MediaType.md +25 -0
- data/docs/MetricsApi.md +922 -0
- data/docs/MultiPart.md +33 -0
- data/docs/NotificationPublisher.md +29 -0
- data/docs/NotificationRule.md +35 -0
- data/docs/PackageURL.md +29 -0
- data/docs/ParameterizedHeader.md +19 -0
- data/docs/Permission.md +19 -0
- data/docs/PermissionApi.md +279 -0
- data/docs/PortfolioMetrics.md +53 -0
- data/docs/Project.md +43 -0
- data/docs/ProjectApi.md +445 -0
- data/docs/ProjectMetrics.md +47 -0
- data/docs/ProjectProperty.md +27 -0
- data/docs/ProjectPropertyApi.md +232 -0
- data/docs/Repository.md +29 -0
- data/docs/RepositoryApi.md +325 -0
- data/docs/RepositoryMetaComponent.md +27 -0
- data/docs/Score.md +23 -0
- data/docs/SearchApi.md +120 -0
- data/docs/SearchResult.md +17 -0
- data/docs/Tag.md +19 -0
- data/docs/Team.md +29 -0
- data/docs/TeamApi.md +432 -0
- data/docs/UserApi.md +715 -0
- data/docs/UserPrincipal.md +27 -0
- data/docs/VersionApi.md +52 -0
- data/docs/Vulnerability.md +69 -0
- data/docs/VulnerabilityApi.md +666 -0
- data/docs/VulnerabilityMetrics.md +23 -0
- data/docs/VulnerableSoftware.md +69 -0
- data/lib/dependency-tracker-client/api/analysis_api.rb +209 -0
- data/lib/dependency-tracker-client/api/badge_api.rb +148 -0
- data/lib/dependency-tracker-client/api/bom_api.rb +382 -0
- data/lib/dependency-tracker-client/api/calculator_api.rb +83 -0
- data/lib/dependency-tracker-client/api/component_api.rb +422 -0
- data/lib/dependency-tracker-client/api/config_property_api.rb +192 -0
- data/lib/dependency-tracker-client/api/cwe_api.rb +136 -0
- data/lib/dependency-tracker-client/api/default_api.rb +491 -0
- data/lib/dependency-tracker-client/api/dependency_api.rb +254 -0
- data/lib/dependency-tracker-client/api/finding_api.rb +140 -0
- data/lib/dependency-tracker-client/api/ldap_api.rb +254 -0
- data/lib/dependency-tracker-client/api/license_api.rb +190 -0
- data/lib/dependency-tracker-client/api/metrics_api.rb +1086 -0
- data/lib/dependency-tracker-client/api/permission_api.rb +342 -0
- data/lib/dependency-tracker-client/api/project_api.rb +504 -0
- data/lib/dependency-tracker-client/api/project_property_api.rb +274 -0
- data/lib/dependency-tracker-client/api/repository_api.rb +376 -0
- data/lib/dependency-tracker-client/api/search_api.rb +143 -0
- data/lib/dependency-tracker-client/api/team_api.rb +486 -0
- data/lib/dependency-tracker-client/api/user_api.rb +796 -0
- data/lib/dependency-tracker-client/api/version_api.rb +78 -0
- data/lib/dependency-tracker-client/api/vulnerability_api.rb +780 -0
- data/lib/dependency-tracker-client/api_client.rb +388 -0
- data/lib/dependency-tracker-client/api_error.rb +57 -0
- data/lib/dependency-tracker-client/configuration.rb +261 -0
- data/lib/dependency-tracker-client/models/about.rb +242 -0
- data/lib/dependency-tracker-client/models/analysis.rb +265 -0
- data/lib/dependency-tracker-client/models/analysis_comment.rb +234 -0
- data/lib/dependency-tracker-client/models/analysis_request.rb +371 -0
- data/lib/dependency-tracker-client/models/api_key.rb +250 -0
- data/lib/dependency-tracker-client/models/body_part.rb +273 -0
- data/lib/dependency-tracker-client/models/bom_submit_request.rb +328 -0
- data/lib/dependency-tracker-client/models/clone_project_request.rb +267 -0
- data/lib/dependency-tracker-client/models/component.rb +900 -0
- data/lib/dependency-tracker-client/models/component_metrics.rb +338 -0
- data/lib/dependency-tracker-client/models/config_property.rb +421 -0
- data/lib/dependency-tracker-client/models/content_disposition.rb +262 -0
- data/lib/dependency-tracker-client/models/cwe.rb +259 -0
- data/lib/dependency-tracker-client/models/dependency.rb +266 -0
- data/lib/dependency-tracker-client/models/dependency_metrics.rb +352 -0
- data/lib/dependency-tracker-client/models/dependency_request.rb +257 -0
- data/lib/dependency-tracker-client/models/finding.rb +239 -0
- data/lib/dependency-tracker-client/models/form_data_body_part.rb +309 -0
- data/lib/dependency-tracker-client/models/form_data_content_disposition.rb +271 -0
- data/lib/dependency-tracker-client/models/form_data_multi_part.rb +295 -0
- data/lib/dependency-tracker-client/models/framework.rb +233 -0
- data/lib/dependency-tracker-client/models/identifiable_object.rb +206 -0
- data/lib/dependency-tracker-client/models/ldap_user.rb +351 -0
- data/lib/dependency-tracker-client/models/license.rb +373 -0
- data/lib/dependency-tracker-client/models/managed_user.rb +480 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group.rb +255 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group_request.rb +267 -0
- data/lib/dependency-tracker-client/models/media_type.rb +244 -0
- data/lib/dependency-tracker-client/models/multi_part.rb +284 -0
- data/lib/dependency-tracker-client/models/notification_publisher.rb +388 -0
- data/lib/dependency-tracker-client/models/notification_rule.rb +426 -0
- data/lib/dependency-tracker-client/models/package_url.rb +262 -0
- data/lib/dependency-tracker-client/models/parameterized_header.rb +217 -0
- data/lib/dependency-tracker-client/models/permission.rb +250 -0
- data/lib/dependency-tracker-client/models/portfolio_metrics.rb +378 -0
- data/lib/dependency-tracker-client/models/project.rb +420 -0
- data/lib/dependency-tracker-client/models/project_metrics.rb +356 -0
- data/lib/dependency-tracker-client/models/project_property.rb +430 -0
- data/lib/dependency-tracker-client/models/repository.rb +319 -0
- data/lib/dependency-tracker-client/models/repository_meta_component.rb +305 -0
- data/lib/dependency-tracker-client/models/score.rb +233 -0
- data/lib/dependency-tracker-client/models/search_result.rb +208 -0
- data/lib/dependency-tracker-client/models/tag.rb +252 -0
- data/lib/dependency-tracker-client/models/team.rb +310 -0
- data/lib/dependency-tracker-client/models/user_principal.rb +255 -0
- data/lib/dependency-tracker-client/models/vulnerability.rb +729 -0
- data/lib/dependency-tracker-client/models/vulnerability_metrics.rb +238 -0
- data/lib/dependency-tracker-client/models/vulnerable_software.rb +442 -0
- data/lib/dependency-tracker-client/version.rb +15 -0
- data/lib/dependency-tracker-client.rb +109 -0
- data/pkg/dependency-tracker-client-1.0.0.gem +0 -0
- data/spec/api/analysis_api_spec.rb +70 -0
- data/spec/api/badge_api_spec.rb +58 -0
- data/spec/api/bom_api_spec.rb +106 -0
- data/spec/api/calculator_api_spec.rb +46 -0
- data/spec/api/component_api_spec.rb +110 -0
- data/spec/api/config_property_api_spec.rb +67 -0
- data/spec/api/cwe_api_spec.rb +56 -0
- data/spec/api/default_api_spec.rb +123 -0
- data/spec/api/dependency_api_spec.rb +79 -0
- data/spec/api/finding_api_spec.rb +57 -0
- data/spec/api/ldap_api_spec.rb +79 -0
- data/spec/api/license_api_spec.rb +66 -0
- data/spec/api/metrics_api_spec.rb +233 -0
- data/spec/api/permission_api_spec.rb +94 -0
- data/spec/api/project_api_spec.rb +126 -0
- data/spec/api/project_property_api_spec.rb +82 -0
- data/spec/api/repository_api_spec.rb +100 -0
- data/spec/api/search_api_spec.rb +59 -0
- data/spec/api/team_api_spec.rb +122 -0
- data/spec/api/user_api_spec.rb +183 -0
- data/spec/api/version_api_spec.rb +46 -0
- data/spec/api/vulnerability_api_spec.rb +177 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/about_spec.rb +65 -0
- data/spec/models/analysis_comment_spec.rb +53 -0
- data/spec/models/analysis_request_spec.rb +75 -0
- data/spec/models/analysis_spec.rb +57 -0
- data/spec/models/api_key_spec.rb +41 -0
- data/spec/models/body_part_spec.rb +83 -0
- data/spec/models/bom_submit_request_spec.rb +65 -0
- data/spec/models/clone_project_request_spec.rb +47 -0
- data/spec/models/component_metrics_spec.rb +119 -0
- data/spec/models/component_spec.rb +201 -0
- data/spec/models/config_property_spec.rb +69 -0
- data/spec/models/content_disposition_spec.rb +77 -0
- data/spec/models/cwe_spec.rb +47 -0
- data/spec/models/dependency_metrics_spec.rb +125 -0
- data/spec/models/dependency_request_spec.rb +53 -0
- data/spec/models/dependency_spec.rb +71 -0
- data/spec/models/finding_spec.rb +59 -0
- data/spec/models/form_data_body_part_spec.rb +107 -0
- data/spec/models/form_data_content_disposition_spec.rb +83 -0
- data/spec/models/form_data_multi_part_spec.rb +95 -0
- data/spec/models/framework_spec.rb +59 -0
- data/spec/models/identifiable_object_spec.rb +41 -0
- data/spec/models/ldap_user_spec.rb +65 -0
- data/spec/models/license_spec.rb +101 -0
- data/spec/models/managed_user_spec.rb +101 -0
- data/spec/models/mapped_ldap_group_request_spec.rb +47 -0
- data/spec/models/mapped_ldap_group_spec.rb +47 -0
- data/spec/models/media_type_spec.rb +65 -0
- data/spec/models/multi_part_spec.rb +89 -0
- data/spec/models/notification_publisher_spec.rb +77 -0
- data/spec/models/notification_rule_spec.rb +107 -0
- data/spec/models/package_url_spec.rb +77 -0
- data/spec/models/parameterized_header_spec.rb +47 -0
- data/spec/models/permission_spec.rb +47 -0
- data/spec/models/portfolio_metrics_spec.rb +149 -0
- data/spec/models/project_metrics_spec.rb +131 -0
- data/spec/models/project_property_spec.rb +75 -0
- data/spec/models/project_spec.rb +119 -0
- data/spec/models/repository_meta_component_spec.rb +75 -0
- data/spec/models/repository_spec.rb +81 -0
- data/spec/models/score_spec.rb +59 -0
- data/spec/models/search_result_spec.rb +41 -0
- data/spec/models/tag_spec.rb +47 -0
- data/spec/models/team_spec.rb +77 -0
- data/spec/models/user_principal_spec.rb +71 -0
- data/spec/models/vulnerability_metrics_spec.rb +59 -0
- data/spec/models/vulnerability_spec.rb +201 -0
- data/spec/models/vulnerable_software_spec.rb +197 -0
- data/spec/spec_helper.rb +111 -0
- data/tmp/tmp.rb +11 -0
- metadata +402 -0
@@ -0,0 +1,123 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::DefaultApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DefaultApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::DefaultApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DefaultApi' do
|
30
|
+
it 'should create an instance of DefaultApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::DefaultApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_project_to_rule
|
36
|
+
# Adds a project to a notification rule
|
37
|
+
# @param rule_uuid The UUID of the rule to add a project to
|
38
|
+
# @param project_uuid The UUID of the project to add to the rule
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [NotificationRule]
|
41
|
+
describe 'add_project_to_rule test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for create_notification_rule
|
48
|
+
# Creates a new notification rule
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [NotificationRule] :body
|
51
|
+
# @return [NotificationRule]
|
52
|
+
describe 'create_notification_rule test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for delete_notification_rule
|
59
|
+
# Deletes a notification rule
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @option opts [NotificationRule] :body
|
62
|
+
# @return [nil]
|
63
|
+
describe 'delete_notification_rule test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for get_all_notification_publishers
|
70
|
+
# Returns a list of all notification publishers
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Array<NotificationPublisher>]
|
73
|
+
describe 'get_all_notification_publishers test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for get_all_notification_rules
|
80
|
+
# Returns a list of all notification rules
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [Array<NotificationRule>]
|
83
|
+
describe 'get_all_notification_rules test' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for remove_project_from_rule
|
90
|
+
# Removes a project from a notification rule
|
91
|
+
# @param rule_uuid The UUID of the rule to remove the project from
|
92
|
+
# @param project_uuid The UUID of the project to remove from the rule
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [NotificationRule]
|
95
|
+
describe 'remove_project_from_rule test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for test_smtp_publisher_config
|
102
|
+
# Dispatches a SMTP notification test
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [String] :destination
|
105
|
+
# @return [nil]
|
106
|
+
describe 'test_smtp_publisher_config test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for update_notification_rule
|
113
|
+
# Updates a notification rule
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [NotificationRule] :body
|
116
|
+
# @return [NotificationRule]
|
117
|
+
describe 'update_notification_rule test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::DependencyApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DependencyApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::DependencyApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DependencyApi' do
|
30
|
+
it 'should create an instance of DependencyApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::DependencyApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_dependency
|
36
|
+
# Adds one or more components as a dependency to a project
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [DependencyRequest] :body
|
39
|
+
# @return [nil]
|
40
|
+
describe 'add_dependency test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_dependencies_by_component
|
47
|
+
# Returns a list of all dependencies for a specific component
|
48
|
+
# @param uuid
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [Array<Dependency>]
|
51
|
+
describe 'get_dependencies_by_component test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for get_dependencies_by_project
|
58
|
+
# Returns a list of all dependencies for a specific project
|
59
|
+
# @param uuid
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [Array<Dependency>]
|
62
|
+
describe 'get_dependencies_by_project test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for remove_dependency
|
69
|
+
# Removes a component as a dependency from a project
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [DependencyRequest] :body
|
72
|
+
# @return [nil]
|
73
|
+
describe 'remove_dependency test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::FindingApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FindingApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::FindingApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FindingApi' do
|
30
|
+
it 'should create an instance of FindingApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::FindingApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for export_findings_by_project
|
36
|
+
# Returns a the findings for the specified project as FPF
|
37
|
+
# @param uuid
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [nil]
|
40
|
+
describe 'export_findings_by_project test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_findings_by_project
|
47
|
+
# Returns a list of all findings for a specific project
|
48
|
+
# @param uuid
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [Array<Finding>]
|
51
|
+
describe 'get_findings_by_project test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::LdapApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LdapApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::LdapApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LdapApi' do
|
30
|
+
it 'should create an instance of LdapApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::LdapApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_mapping
|
36
|
+
# Adds a mapping
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [MappedLdapGroupRequest] :body
|
39
|
+
# @return [MappedLdapGroup]
|
40
|
+
describe 'add_mapping test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for delete_mapping
|
47
|
+
# Removes a mapping
|
48
|
+
# @param uuid The UUID of the mapping to delete
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [MappedLdapGroup]
|
51
|
+
describe 'delete_mapping test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for retrieve_ldap_groups
|
58
|
+
# Returns the DNs of all accessible groups within the directory
|
59
|
+
# This API performs a pass-thru query to the configured LDAP server. Search criteria results are cached using default Alpine CacheManager policy
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [Array<String>]
|
62
|
+
describe 'retrieve_ldap_groups test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for retrieve_ldap_groups1
|
69
|
+
# Returns the DNs of all groups mapped to the specified team
|
70
|
+
# @param uuid The UUID of the team to retrieve mappings for
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Array<String>]
|
73
|
+
describe 'retrieve_ldap_groups1 test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::LicenseApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LicenseApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::LicenseApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LicenseApi' do
|
30
|
+
it 'should create an instance of LicenseApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::LicenseApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_license
|
36
|
+
# Returns a specific license
|
37
|
+
# @param license_id The SPDX License ID of the license to retrieve
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [License]
|
40
|
+
describe 'get_license test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_license_listing
|
47
|
+
# Returns a concise listing of all licenses
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @return [Array<License>]
|
50
|
+
describe 'get_license_listing test' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# unit tests for get_licenses
|
57
|
+
# Returns a list of all licenses with complete metadata for each license
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [Array<License>]
|
60
|
+
describe 'get_licenses test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,233 @@
|
|
1
|
+
=begin
|
2
|
+
#Dependency-Track API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.8.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for DependencyTacker::MetricsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'MetricsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = DependencyTacker::MetricsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of MetricsApi' do
|
30
|
+
it 'should create an instance of MetricsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(DependencyTacker::MetricsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_component_current_metrics
|
36
|
+
# Returns current metrics for a specific component
|
37
|
+
# @param uuid The UUID of the component to retrieve metrics for
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [ComponentMetrics]
|
40
|
+
describe 'get_component_current_metrics test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_component_metrics_since
|
47
|
+
# Returns historical metrics for a specific component from a specific date
|
48
|
+
# Date format must be YYYYMMDD
|
49
|
+
# @param uuid The UUID of the component to retrieve metrics for
|
50
|
+
# @param date The start date to retrieve metrics for
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Array<ComponentMetrics>]
|
53
|
+
describe 'get_component_metrics_since test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_component_metrics_x_days
|
60
|
+
# Returns X days of historical metrics for a specific component
|
61
|
+
# @param uuid The UUID of the component to retrieve metrics for
|
62
|
+
# @param days The number of days back to retrieve metrics for
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [Array<ComponentMetrics>]
|
65
|
+
describe 'get_component_metrics_x_days test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for get_dependency_current_metrics
|
72
|
+
# Returns current metrics for a specific dependency
|
73
|
+
# @param project_uuid The UUID of the project to retrieve metrics for
|
74
|
+
# @param component_uuid The UUID of the component to retrieve metrics for
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [DependencyMetrics]
|
77
|
+
describe 'get_dependency_current_metrics test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for get_dependency_metrics_since
|
84
|
+
# Returns historical metrics for a specific dependency from a specific date
|
85
|
+
# Date format must be YYYYMMDD
|
86
|
+
# @param project_uuid The UUID of the project to retrieve metrics for
|
87
|
+
# @param component_uuid The UUID of the component to retrieve metrics for
|
88
|
+
# @param date The start date to retrieve metrics for
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<DependencyMetrics>]
|
91
|
+
describe 'get_dependency_metrics_since test' do
|
92
|
+
it 'should work' do
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# unit tests for get_dependency_metrics_x_days
|
98
|
+
# Returns X days of historical metrics for a specific dependency
|
99
|
+
# @param project_uuid The UUID of the project to retrieve metrics for
|
100
|
+
# @param component_uuid The UUID of the component to retrieve metrics for
|
101
|
+
# @param days The number of days back to retrieve metrics for
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<DependencyMetrics>]
|
104
|
+
describe 'get_dependency_metrics_x_days test' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for get_portfolio_current_metrics
|
111
|
+
# Returns current metrics for the entire portfolio
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [PortfolioMetrics]
|
114
|
+
describe 'get_portfolio_current_metrics test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# unit tests for get_portfolio_metrics_since
|
121
|
+
# Returns historical metrics for the entire portfolio from a specific date
|
122
|
+
# Date format must be YYYYMMDD
|
123
|
+
# @param date The start date to retrieve metrics for
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @return [Array<PortfolioMetrics>]
|
126
|
+
describe 'get_portfolio_metrics_since test' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for get_portfolio_metrics_x_days
|
133
|
+
# Returns X days of historical metrics for the entire portfolio
|
134
|
+
# @param days The number of days back to retrieve metrics for
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [Array<PortfolioMetrics>]
|
137
|
+
describe 'get_portfolio_metrics_x_days test' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# unit tests for get_project_current_metrics
|
144
|
+
# Returns current metrics for a specific project
|
145
|
+
# @param uuid The UUID of the project to retrieve metrics for
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @return [ProjectMetrics]
|
148
|
+
describe 'get_project_current_metrics test' do
|
149
|
+
it 'should work' do
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# unit tests for get_project_metrics_since
|
155
|
+
# Returns historical metrics for a specific project from a specific date
|
156
|
+
# Date format must be YYYYMMDD
|
157
|
+
# @param uuid The UUID of the project to retrieve metrics for
|
158
|
+
# @param date The start date to retrieve metrics for
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<ProjectMetrics>]
|
161
|
+
describe 'get_project_metrics_since test' do
|
162
|
+
it 'should work' do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# unit tests for get_project_metrics_x_days
|
168
|
+
# Returns X days of historical metrics for a specific project
|
169
|
+
# @param uuid The UUID of the project to retrieve metrics for
|
170
|
+
# @param days The number of days back to retrieve metrics for
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [Array<ProjectMetrics>]
|
173
|
+
describe 'get_project_metrics_x_days test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# unit tests for get_vulnerability_metrics
|
180
|
+
# Returns the sum of all vulnerabilities in the database by year and month
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @return [Array<VulnerabilityMetrics>]
|
183
|
+
describe 'get_vulnerability_metrics test' do
|
184
|
+
it 'should work' do
|
185
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# unit tests for refresh_component_metrics
|
190
|
+
# Requests a refresh of a specific components metrics
|
191
|
+
# @param uuid The UUID of the component to refresh metrics on
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @return [nil]
|
194
|
+
describe 'refresh_component_metrics test' do
|
195
|
+
it 'should work' do
|
196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# unit tests for refresh_dependency_metrics
|
201
|
+
# Requests a refresh of a specific dependency metrics
|
202
|
+
# @param project_uuid The UUID of the project to retrieve metrics for
|
203
|
+
# @param component_uuid The UUID of the component to retrieve metrics for
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @return [nil]
|
206
|
+
describe 'refresh_dependency_metrics test' do
|
207
|
+
it 'should work' do
|
208
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# unit tests for refresh_portfolio_metrics
|
213
|
+
# Requests a refresh of the portfolio metrics
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [PortfolioMetrics]
|
216
|
+
describe 'refresh_portfolio_metrics test' do
|
217
|
+
it 'should work' do
|
218
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# unit tests for refresh_project_metrics
|
223
|
+
# Requests a refresh of a specific projects metrics
|
224
|
+
# @param uuid The UUID of the project to refresh metrics on
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [nil]
|
227
|
+
describe 'refresh_project_metrics test' do
|
228
|
+
it 'should work' do
|
229
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
end
|