spinnaker-gate-ruby-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +85 -0
- data/LICENSE +201 -0
- data/README.md +240 -0
- data/Rakefile +8 -0
- data/docs/Account.md +14 -0
- data/docs/AccountDetails.md +19 -0
- data/docs/AmazonInfrastructureControllerApi.md +128 -0
- data/docs/ApplicationControllerApi.md +754 -0
- data/docs/ArtifactControllerApi.md +111 -0
- data/docs/AuthControllerApi.md +212 -0
- data/docs/BakeControllerApi.md +143 -0
- data/docs/BuildControllerApi.md +493 -0
- data/docs/ClusterControllerApi.md +475 -0
- data/docs/ConcourseControllerApi.md +161 -0
- data/docs/CredentialsControllerApi.md +129 -0
- data/docs/EcsServerGroupEventsControllerApi.md +66 -0
- data/docs/ExecutionsControllerApi.md +133 -0
- data/docs/FirewallControllerApi.md +171 -0
- data/docs/GrantedAuthority.md +8 -0
- data/docs/HashMapstringobject.md +7 -0
- data/docs/HttpEntity.md +8 -0
- data/docs/ImageControllerApi.md +178 -0
- data/docs/InstanceControllerApi.md +122 -0
- data/docs/JobControllerApi.md +69 -0
- data/docs/LoadBalancerControllerApi.md +217 -0
- data/docs/Mapstringstring.md +7 -0
- data/docs/NetworkControllerApi.md +105 -0
- data/docs/PipelineConfigControllerApi.md +144 -0
- data/docs/PipelineControllerApi.md +1074 -0
- data/docs/PipelineTemplateDependent.md +10 -0
- data/docs/PipelineTemplatesControllerApi.md +350 -0
- data/docs/ProjectControllerApi.md +196 -0
- data/docs/PubsubSubscriptionControllerApi.md +48 -0
- data/docs/ReorderPipelinesCommand.md +9 -0
- data/docs/ReorderPipelinesControllerApi.md +54 -0
- data/docs/ResponseEntity.md +10 -0
- data/docs/SearchControllerApi.md +68 -0
- data/docs/SecurityGroupControllerApi.md +171 -0
- data/docs/ServerGroupControllerApi.md +125 -0
- data/docs/ServerGroupManagerControllerApi.md +54 -0
- data/docs/SnapshotControllerApi.md +110 -0
- data/docs/SubnetControllerApi.md +58 -0
- data/docs/TaskControllerApi.md +291 -0
- data/docs/User.md +18 -0
- data/docs/V2CanaryConfigControllerApi.md +259 -0
- data/docs/V2CanaryControllerApi.md +356 -0
- data/docs/V2PipelineTemplatesControllerApi.md +356 -0
- data/docs/Version.md +8 -0
- data/docs/VersionControllerApi.md +48 -0
- data/docs/WebhookControllerApi.md +105 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client.rb +85 -0
- data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
- data/lib/swagger_client/api/application_controller_api.rb +868 -0
- data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
- data/lib/swagger_client/api/auth_controller_api.rb +258 -0
- data/lib/swagger_client/api/bake_controller_api.rb +179 -0
- data/lib/swagger_client/api/build_controller_api.rb +588 -0
- data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
- data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
- data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
- data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
- data/lib/swagger_client/api/executions_controller_api.rb +169 -0
- data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
- data/lib/swagger_client/api/image_controller_api.rb +222 -0
- data/lib/swagger_client/api/instance_controller_api.rb +160 -0
- data/lib/swagger_client/api/job_controller_api.rb +99 -0
- data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
- data/lib/swagger_client/api/network_controller_api.rb +127 -0
- data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
- data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
- data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
- data/lib/swagger_client/api/project_controller_api.rb +234 -0
- data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
- data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
- data/lib/swagger_client/api/search_controller_api.rb +94 -0
- data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
- data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
- data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
- data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
- data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
- data/lib/swagger_client/api/task_controller_api.rb +345 -0
- data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
- data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
- data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
- data/lib/swagger_client/api/version_controller_api.rb +69 -0
- data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
- data/lib/swagger_client/api_client.rb +388 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +202 -0
- data/lib/swagger_client/models/account.rb +241 -0
- data/lib/swagger_client/models/account_details.rb +286 -0
- data/lib/swagger_client/models/granted_authority.rb +183 -0
- data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
- data/lib/swagger_client/models/http_entity.rb +183 -0
- data/lib/swagger_client/models/mapstringstring.rb +174 -0
- data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
- data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
- data/lib/swagger_client/models/response_entity.rb +235 -0
- data/lib/swagger_client/models/user.rb +279 -0
- data/lib/swagger_client/models/version.rb +183 -0
- data/lib/swagger_client/version.rb +15 -0
- data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
- data/spec/api/application_controller_api_spec.rb +218 -0
- data/spec/api/artifact_controller_api_spec.rb +60 -0
- data/spec/api/auth_controller_api_spec.rb +86 -0
- data/spec/api/bake_controller_api_spec.rb +68 -0
- data/spec/api/build_controller_api_spec.rb +155 -0
- data/spec/api/cluster_controller_api_spec.rb +155 -0
- data/spec/api/concourse_controller_api_spec.rb +73 -0
- data/spec/api/credentials_controller_api_spec.rb +70 -0
- data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
- data/spec/api/executions_controller_api_spec.rb +72 -0
- data/spec/api/firewall_controller_api_spec.rb +77 -0
- data/spec/api/image_controller_api_spec.rb +80 -0
- data/spec/api/instance_controller_api_spec.rb +64 -0
- data/spec/api/job_controller_api_spec.rb +51 -0
- data/spec/api/load_balancer_controller_api_spec.rb +87 -0
- data/spec/api/network_controller_api_spec.rb +58 -0
- data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
- data/spec/api/pipeline_controller_api_spec.rb +296 -0
- data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
- data/spec/api/project_controller_api_spec.rb +81 -0
- data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
- data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
- data/spec/api/search_controller_api_spec.rb +52 -0
- data/spec/api/security_group_controller_api_spec.rb +77 -0
- data/spec/api/server_group_controller_api_spec.rb +66 -0
- data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
- data/spec/api/snapshot_controller_api_spec.rb +60 -0
- data/spec/api/subnet_controller_api_spec.rb +47 -0
- data/spec/api/task_controller_api_spec.rb +103 -0
- data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
- data/spec/api/v2_canary_controller_api_spec.rb +123 -0
- data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
- data/spec/api/version_controller_api_spec.rb +45 -0
- data/spec/api/webhook_controller_api_spec.rb +60 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_spec.rb +107 -0
- data/spec/models/account_spec.rb +77 -0
- data/spec/models/granted_authority_spec.rb +41 -0
- data/spec/models/hash_mapstringobject_spec.rb +35 -0
- data/spec/models/http_entity_spec.rb +41 -0
- data/spec/models/mapstringstring_spec.rb +35 -0
- data/spec/models/pipeline_template_dependent_spec.rb +53 -0
- data/spec/models/reorder_pipelines_command_spec.rb +47 -0
- data/spec/models/response_entity_spec.rb +57 -0
- data/spec/models/user_spec.rb +101 -0
- data/spec/models/version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- data/spinnaker_gate_ruby_client-1.0.0.gem +0 -0
- data/spinnaker_gate_ruby_client.gemspec +45 -0
- metadata +427 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::CredentialsControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CredentialsControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::CredentialsControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CredentialsControllerApi' do
|
30
|
+
it 'should create an instance of CredentialsControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::CredentialsControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_account_using_get
|
36
|
+
# Retrieve an account's details
|
37
|
+
# @param account account
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :roles
|
40
|
+
# @option opts [Array<String>] :allowed_accounts
|
41
|
+
# @option opts [String] :email
|
42
|
+
# @option opts [String] :username
|
43
|
+
# @option opts [String] :first_name
|
44
|
+
# @option opts [String] :last_name
|
45
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
46
|
+
# @return [AccountDetails]
|
47
|
+
describe 'get_account_using_get test' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# unit tests for get_accounts_using_get
|
54
|
+
# Retrieve a list of accounts
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [Array<String>] :roles
|
57
|
+
# @option opts [Array<String>] :allowed_accounts
|
58
|
+
# @option opts [String] :email
|
59
|
+
# @option opts [String] :username
|
60
|
+
# @option opts [String] :first_name
|
61
|
+
# @option opts [String] :last_name
|
62
|
+
# @option opts [BOOLEAN] :expand expand
|
63
|
+
# @return [Array<Account>]
|
64
|
+
describe 'get_accounts_using_get test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::EcsServerGroupEventsControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'EcsServerGroupEventsControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::EcsServerGroupEventsControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of EcsServerGroupEventsControllerApi' do
|
30
|
+
it 'should create an instance of EcsServerGroupEventsControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::EcsServerGroupEventsControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_events_using_get
|
36
|
+
# Retrieves a list of events for a server group
|
37
|
+
# @param application application
|
38
|
+
# @param account account
|
39
|
+
# @param server_group_name serverGroupName
|
40
|
+
# @param region region
|
41
|
+
# @param provider provider
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @return [Array<Object>]
|
44
|
+
describe 'get_events_using_get test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::ExecutionsControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ExecutionsControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::ExecutionsControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ExecutionsControllerApi' do
|
30
|
+
it 'should create an instance of ExecutionsControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::ExecutionsControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_latest_executions_by_config_ids_using_get
|
36
|
+
# Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :pipeline_config_ids A comma-separated list of pipeline configuration IDs to retrieve recent executions for. Either this OR pipelineConfigIds must be supplied, but not both.
|
39
|
+
# @option opts [String] :execution_ids A comma-separated list of executions to retrieve. Either this OR pipelineConfigIds must be supplied, but not both.
|
40
|
+
# @option opts [Integer] :limit The number of executions to return per pipeline configuration. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to 1.
|
41
|
+
# @option opts [String] :statuses A comma-separated list of execution statuses to filter by. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to all statuses.
|
42
|
+
# @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to true.
|
43
|
+
# @return [Array<Object>]
|
44
|
+
describe 'get_latest_executions_by_config_ids_using_get test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for search_for_pipeline_executions_by_trigger_using_get
|
51
|
+
# Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.
|
52
|
+
# @param application Only includes executions that are part of this application. If this value is \"*\", results will include executions of all applications.
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @option opts [String] :trigger_types Only includes executions that were triggered by a trigger with a type that is equal to a type provided in this field. The list of trigger types should be a comma-delimited string. If this value is missing, results will includes executions of all trigger types.
|
55
|
+
# @option opts [String] :pipeline_name Only includes executions that with this pipeline name.
|
56
|
+
# @option opts [String] :event_id Only includes executions that were triggered by a trigger with this eventId.
|
57
|
+
# @option opts [String] :trigger Only includes executions that were triggered by a trigger that matches the subset of fields provided by this value. This value should be a base64-encoded string of a JSON representation of a trigger object. The comparison succeeds if the execution trigger contains all the fields of the input trigger, the fields are of the same type, and each value of the field \"matches\". The term \"matches\" is specific for each field's type: - For Strings: A String value in the execution's trigger matches the input trigger's String value if the former equals the latter (case-insensitive) OR if the former matches the latter as a regular expression. - For Maps: A Map value in the execution's trigger matches the input trigger's Map value if the former contains all keys of the latter and their values match. - For Collections: A Collection value in the execution's trigger matches the input trigger's Collection value if the former has a unique element that matches each element of the latter. - Every other value is compared using the Java \"equals\" method (Groovy \"==\" operator)
|
58
|
+
# @option opts [Integer] :trigger_time_start_boundary Only includes executions that were built at or after the given time, represented as a Unix timestamp in ms (UTC). This value must be >= 0 and <= the value of [triggerTimeEndBoundary], if provided. If this value is missing, it is defaulted to 0.
|
59
|
+
# @option opts [Integer] :trigger_time_end_boundary Only includes executions that were built at or before the given time, represented as a Unix timestamp in ms (UTC). This value must be <= 9223372036854775807 (Long.MAX_VALUE) and >= the value of [triggerTimeStartBoundary], if provided. If this value is missing, it is defaulted to 9223372036854775807.
|
60
|
+
# @option opts [String] :statuses Only includes executions with a status that is equal to a status provided in this field. The list of statuses should be given as a comma-delimited string. If this value is missing, includes executions of all statuses. Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED, FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED.
|
61
|
+
# @option opts [Integer] :start_index Sets the first item of the resulting list for pagination. The list is 0-indexed. This value must be >= 0. If this value is missing, it is defaulted to 0.
|
62
|
+
# @option opts [Integer] :size Sets the size of the resulting list for pagination. This value must be > 0. If this value is missing, it is defaulted to 10.
|
63
|
+
# @option opts [BOOLEAN] :reverse Reverses the resulting list before it is paginated. If this value is missing, it is defaulted to false.
|
64
|
+
# @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to false.
|
65
|
+
# @return [Array<Object>]
|
66
|
+
describe 'search_for_pipeline_executions_by_trigger_using_get test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::FirewallControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FirewallControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::FirewallControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FirewallControllerApi' do
|
30
|
+
it 'should create an instance of FirewallControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::FirewallControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for all_by_account_using_get
|
36
|
+
# Retrieve a list of firewalls for a given account, grouped by region
|
37
|
+
# @param account account
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :provider provider
|
40
|
+
# @option opts [String] :region region
|
41
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
42
|
+
# @return [Object]
|
43
|
+
describe 'all_by_account_using_get test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for all_using_get1
|
50
|
+
# Retrieve a list of firewalls, grouped by account, cloud provider, and region
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :id id
|
53
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
54
|
+
# @return [Object]
|
55
|
+
describe 'all_using_get1 test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for get_security_group_using_get
|
62
|
+
# Retrieve a firewall's details
|
63
|
+
# @param account account
|
64
|
+
# @param region region
|
65
|
+
# @param name name
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [String] :provider provider
|
68
|
+
# @option opts [String] :vpc_id vpcId
|
69
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
70
|
+
# @return [Object]
|
71
|
+
describe 'get_security_group_using_get test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::ImageControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ImageControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::ImageControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ImageControllerApi' do
|
30
|
+
it 'should create an instance of ImageControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::ImageControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for find_images_using_get
|
36
|
+
# Retrieve a list of images, filtered by cloud provider, region, and account
|
37
|
+
# The query parameter `q` filters the list of images by image name
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :provider provider
|
40
|
+
# @option opts [String] :q q
|
41
|
+
# @option opts [String] :region region
|
42
|
+
# @option opts [String] :account account
|
43
|
+
# @option opts [Integer] :count count
|
44
|
+
# @return [Array<Object>]
|
45
|
+
describe 'find_images_using_get test' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# unit tests for find_tags_using_get
|
52
|
+
# Find tags
|
53
|
+
# @param account account
|
54
|
+
# @param repository repository
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [String] :provider provider
|
57
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
58
|
+
# @return [Array<Object>]
|
59
|
+
describe 'find_tags_using_get test' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for get_image_details_using_get
|
66
|
+
# Get image details
|
67
|
+
# @param account account
|
68
|
+
# @param region region
|
69
|
+
# @param image_id imageId
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [String] :provider provider
|
72
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
73
|
+
# @return [Array<Object>]
|
74
|
+
describe 'get_image_details_using_get test' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::InstanceControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'InstanceControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::InstanceControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of InstanceControllerApi' do
|
30
|
+
it 'should create an instance of InstanceControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::InstanceControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_console_output_using_get
|
36
|
+
# Retrieve an instance's console output
|
37
|
+
# @param account account
|
38
|
+
# @param region region
|
39
|
+
# @param instance_id instanceId
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :provider provider
|
42
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
43
|
+
# @return [Object]
|
44
|
+
describe 'get_console_output_using_get test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for get_instance_details_using_get
|
51
|
+
# Retrieve an instance's details
|
52
|
+
# @param account account
|
53
|
+
# @param region region
|
54
|
+
# @param instance_id instanceId
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
57
|
+
# @return [Object]
|
58
|
+
describe 'get_instance_details_using_get test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=begin
|
2
|
+
#Spinnaker API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SwaggerClient::JobControllerApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'JobControllerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = SwaggerClient::JobControllerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of JobControllerApi' do
|
30
|
+
it 'should create an instance of JobControllerApi' do
|
31
|
+
expect(@instance).to be_instance_of(SwaggerClient::JobControllerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_job_using_get
|
36
|
+
# Get job
|
37
|
+
# @param application_name applicationName
|
38
|
+
# @param account account
|
39
|
+
# @param region region
|
40
|
+
# @param name name
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :expand expand
|
43
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
44
|
+
# @return [Hash<String, Object>]
|
45
|
+
describe 'get_job_using_get test' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|