brightbox-cli 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +18 -19
- data/bin/_brightbox-bash-completer +42 -0
- data/brightbox-cli.gemspec +5 -5
- data/lib/brightbox-cli/accounts.rb +1 -3
- data/lib/brightbox-cli/api.rb +27 -8
- data/lib/brightbox-cli/cloud_ips.rb +11 -15
- data/lib/brightbox-cli/collaborating_account.rb +23 -26
- data/lib/brightbox-cli/collaboration.rb +1 -1
- data/lib/brightbox-cli/commands/{accounts-accept-invite.rb → accounts/accept-invite.rb} +2 -3
- data/lib/brightbox-cli/commands/{accounts-default.rb → accounts/default.rb} +1 -3
- data/lib/brightbox-cli/commands/{accounts-list.rb → accounts/list.rb} +1 -1
- data/lib/brightbox-cli/commands/{accounts-remove.rb → accounts/remove.rb} +1 -2
- data/lib/brightbox-cli/commands/{accounts-reset-ftp-password.rb → accounts/reset-ftp-password.rb} +10 -5
- data/lib/brightbox-cli/commands/{accounts-show.rb → accounts/show.rb} +14 -6
- data/lib/brightbox-cli/commands/{cloudips-create.rb → cloudips/create.rb} +4 -4
- data/lib/brightbox-cli/commands/{cloudips-destroy.rb → cloudips/destroy.rb} +1 -1
- data/lib/brightbox-cli/commands/{cloudips-list.rb → cloudips/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{cloudips-map.rb → cloudips/map.rb} +2 -8
- data/lib/brightbox-cli/commands/{cloudips-show.rb → cloudips/show.rb} +13 -3
- data/lib/brightbox-cli/commands/{cloudips-unmap.rb → cloudips/unmap.rb} +1 -1
- data/lib/brightbox-cli/commands/{cloudips-update.rb → cloudips/update.rb} +5 -6
- data/lib/brightbox-cli/commands/collaborations.rb +3 -9
- data/lib/brightbox-cli/commands/{config-client-add.rb → config/client-add.rb} +2 -2
- data/lib/brightbox-cli/commands/{config-client-default.rb → config/client-default.rb} +1 -1
- data/lib/brightbox-cli/commands/{config-client-list.rb → config/client-list.rb} +3 -3
- data/lib/brightbox-cli/commands/{config-client-remove.rb → config/client-remove.rb} +4 -1
- data/lib/brightbox-cli/commands/{config-user-add.rb → config/user-add.rb} +1 -1
- data/lib/brightbox-cli/commands/{firewall-policies-apply.rb → firewall/policies-apply.rb} +3 -4
- data/lib/brightbox-cli/commands/{firewall-policies-create.rb → firewall/policies-create.rb} +3 -4
- data/lib/brightbox-cli/commands/{firewall-policies-destroy.rb → firewall/policies-destroy.rb} +2 -3
- data/lib/brightbox-cli/commands/{firewall-policies-list.rb → firewall/policies-list.rb} +2 -9
- data/lib/brightbox-cli/commands/{firewall-policies-remove.rb → firewall/policies-remove.rb} +2 -3
- data/lib/brightbox-cli/commands/{firewall-policies-show.rb → firewall/policies-show.rb} +11 -3
- data/lib/brightbox-cli/commands/{firewall-policies-update.rb → firewall/policies-update.rb} +3 -3
- data/lib/brightbox-cli/commands/{firewall-rules-create.rb → firewall/rules-create.rb} +4 -4
- data/lib/brightbox-cli/commands/{firewall-rules-destroy.rb → firewall/rules-destroy.rb} +2 -4
- data/lib/brightbox-cli/commands/{firewall-rules-list.rb → firewall/rules-list.rb} +2 -2
- data/lib/brightbox-cli/commands/{firewall-rules-show.rb → firewall/rules-show.rb} +10 -4
- data/lib/brightbox-cli/commands/{firewall-rules-update.rb → firewall/rules-update.rb} +3 -3
- data/lib/brightbox-cli/commands/{groups-add-server.rb → groups/add-server.rb} +2 -2
- data/lib/brightbox-cli/commands/{groups-create.rb → groups/create.rb} +3 -3
- data/lib/brightbox-cli/commands/{groups-destroy.rb → groups/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/groups/list.rb +14 -0
- data/lib/brightbox-cli/commands/{groups-move_servers.rb → groups/move_servers.rb} +1 -2
- data/lib/brightbox-cli/commands/{groups-remove-servers.rb → groups/remove-servers.rb} +1 -1
- data/lib/brightbox-cli/commands/{groups-show.rb → groups/show.rb} +1 -1
- data/lib/brightbox-cli/commands/{groups-update.rb → groups/update.rb} +5 -10
- data/lib/brightbox-cli/commands/{images-destroy.rb → images/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/{images-list.rb → images/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{images-register.rb → images/register.rb} +6 -6
- data/lib/brightbox-cli/commands/{images-show.rb → images/show.rb} +2 -11
- data/lib/brightbox-cli/commands/{images-update.rb → images/update.rb} +8 -8
- data/lib/brightbox-cli/commands/{lbs-add-nodes.rb → lbs/add-nodes.rb} +2 -2
- data/lib/brightbox-cli/commands/{lbs-create.rb → lbs/create.rb} +16 -10
- data/lib/brightbox-cli/commands/{lbs-destroy.rb → lbs/destroy.rb} +1 -1
- data/lib/brightbox-cli/commands/{lbs-list.rb → lbs/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{lbs-remove-nodes.rb → lbs/remove-nodes.rb} +2 -2
- data/lib/brightbox-cli/commands/{lbs-show.rb → lbs/show.rb} +4 -7
- data/lib/brightbox-cli/commands/{lbs-update.rb → lbs/update.rb} +16 -10
- data/lib/brightbox-cli/commands/{servers-activate-console.rb → servers/activate-console.rb} +3 -3
- data/lib/brightbox-cli/commands/{servers-create.rb → servers/create.rb} +4 -4
- data/lib/brightbox-cli/commands/{servers-destroy.rb → servers/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/{servers-list.rb → servers/list.rb} +7 -8
- data/lib/brightbox-cli/commands/{servers-show.rb → servers/show.rb} +1 -6
- data/lib/brightbox-cli/commands/{servers-shutdown.rb → servers/shutdown.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-snapshot.rb → servers/snapshot.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-start.rb → servers/start.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-stop.rb → servers/stop.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-update.rb → servers/update.rb} +2 -2
- data/lib/brightbox-cli/commands/sql/instances_create.rb +66 -0
- data/lib/brightbox-cli/commands/sql/instances_destroy.rb +28 -0
- data/lib/brightbox-cli/commands/sql/instances_list.rb +27 -0
- data/lib/brightbox-cli/commands/sql/instances_reset_password.rb +33 -0
- data/lib/brightbox-cli/commands/sql/instances_show.rb +26 -0
- data/lib/brightbox-cli/commands/sql/instances_snapshot.rb +25 -0
- data/lib/brightbox-cli/commands/sql/instances_update.rb +45 -0
- data/lib/brightbox-cli/commands/sql/snapshots_destroy.rb +31 -0
- data/lib/brightbox-cli/commands/sql/snapshots_list.rb +25 -0
- data/lib/brightbox-cli/commands/sql/snapshots_show.rb +26 -0
- data/lib/brightbox-cli/commands/sql/snapshots_update.rb +37 -0
- data/lib/brightbox-cli/commands/sql/types.rb +53 -0
- data/lib/brightbox-cli/commands/types.rb +1 -1
- data/lib/brightbox-cli/commands/users/list.rb +17 -0
- data/lib/brightbox-cli/commands/{users-show.rb → users/show.rb} +5 -13
- data/lib/brightbox-cli/commands/{users-update.rb → users/update.rb} +3 -3
- data/lib/brightbox-cli/config.rb +4 -7
- data/lib/brightbox-cli/config/accounts.rb +3 -6
- data/lib/brightbox-cli/config/api_client.rb +12 -4
- data/lib/brightbox-cli/config/authentication_tokens.rb +8 -14
- data/lib/brightbox-cli/config/clients.rb +6 -7
- data/lib/brightbox-cli/config/section_name_deduplicator.rb +4 -5
- data/lib/brightbox-cli/config/sections.rb +7 -10
- data/lib/brightbox-cli/config/user_application.rb +15 -7
- data/lib/brightbox-cli/connection_manager.rb +1 -2
- data/lib/brightbox-cli/database_server.rb +100 -0
- data/lib/brightbox-cli/database_snapshot.rb +36 -0
- data/lib/brightbox-cli/database_type.rb +44 -0
- data/lib/brightbox-cli/detailed_server.rb +8 -7
- data/lib/brightbox-cli/error_parser.rb +8 -4
- data/lib/brightbox-cli/firewall_rule.rb +5 -5
- data/lib/brightbox-cli/firewall_rules.rb +2 -3
- data/lib/brightbox-cli/gli_global_hooks.rb +7 -7
- data/lib/brightbox-cli/images.rb +13 -14
- data/lib/brightbox-cli/legacy/args_adjuster.rb +5 -6
- data/lib/brightbox-cli/load_balancers.rb +10 -13
- data/lib/brightbox-cli/logging.rb +3 -3
- data/lib/brightbox-cli/nilable_hash.rb +1 -1
- data/lib/brightbox-cli/ruby_core_ext.rb +1 -2
- data/lib/brightbox-cli/server_groups.rb +5 -5
- data/lib/brightbox-cli/servers.rb +9 -9
- data/lib/brightbox-cli/tables.rb +24 -25
- data/lib/brightbox-cli/types.rb +6 -5
- data/lib/brightbox-cli/user_collaboration.rb +2 -3
- data/lib/brightbox-cli/users.rb +3 -3
- data/lib/brightbox-cli/version.rb +1 -1
- data/lib/brightbox_cli.rb +10 -2
- data/locales/en.yml +205 -0
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +10 -10
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +4 -4
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +8 -8
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +176 -176
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +176 -176
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +2 -2
- data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +28 -28
- data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +28 -28
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +20 -20
- data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +20 -20
- data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +20 -20
- data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +28 -28
- data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_start/should_work.yml +44 -44
- data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +40 -40
- data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +24 -24
- data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +6 -6
- data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +16 -16
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +14 -14
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +14 -14
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +12 -12
- data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +542 -0
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +317 -0
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +154 -154
- data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +10 -10
- data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/selects_the_active_account_for_the_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_prompt_to_rerun_the_command.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +10 -10
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +181 -0
- data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +91 -0
- data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +93 -0
- data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +93 -0
- data/spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +93 -0
- data/spec/commands/accounts/list_spec.rb +1 -1
- data/spec/commands/cloudips/map_spec.rb +23 -4
- data/spec/commands/config/user_add_spec.rb +1 -1
- data/spec/commands/sql/instances/create_spec.rb +69 -0
- data/spec/commands/sql/instances/snapshot_spec.rb +36 -0
- data/spec/commands/sql/snapshots/list_spec.rb +29 -0
- data/spec/commands/sql/snapshots/show_spec.rb +29 -0
- data/spec/commands/sql/types/list_spec.rb +18 -0
- data/spec/spec_helper.rb +1 -3
- data/spec/support/vcr.rb +1 -1
- data/spec/unit/brightbox/api/conn_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +1 -1
- data/spec/unit/brightbox/database_server_spec.rb +9 -0
- data/spec/unit/brightbox/database_snapshot_spec.rb +9 -0
- data/spec/unit/brightbox/database_type_spec.rb +9 -0
- data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
- data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
- data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
- data/spec/unit/brightbox/server/start_spec.rb +1 -1
- data/spec/unit/brightbox/server/stop_spec.rb +1 -1
- data/spec/unit/brightbox/server/update_spec.rb +1 -1
- data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
- data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +3 -3
- metadata +160 -115
- data/lib/brightbox-cli/commands/groups-list.rb +0 -21
- data/lib/brightbox-cli/commands/users-list.rb +0 -25
@@ -4,7 +4,7 @@ describe Brightbox::Server do
|
|
4
4
|
include ServerHelpers
|
5
5
|
|
6
6
|
describe "#destroy" do
|
7
|
-
context "when server exists", :vcr
|
7
|
+
context "when server exists", :vcr do
|
8
8
|
it "should work" do
|
9
9
|
#FIXME Spec never actually calls destroy, just checks output of creation!!
|
10
10
|
|
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Brightbox::Server do
|
4
4
|
include ServerHelpers
|
5
5
|
|
6
|
-
describe "#shutdown", :vcr
|
6
|
+
describe "#shutdown", :vcr do
|
7
7
|
it "should work" do
|
8
8
|
type = Brightbox::Type.find_by_handle "nano"
|
9
9
|
options = server_params("rspec_server_shutdown",type)
|
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Brightbox::Server do
|
4
4
|
include ServerHelpers
|
5
5
|
|
6
|
-
describe "#start", :vcr
|
6
|
+
describe "#start", :vcr do
|
7
7
|
it "should work" do
|
8
8
|
type = Brightbox::Type.find_by_handle "nano"
|
9
9
|
options = server_params("rspec_server_start",type)
|
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Brightbox::Server do
|
4
4
|
include ServerHelpers
|
5
5
|
|
6
|
-
describe "#stop", :vcr
|
6
|
+
describe "#stop", :vcr do
|
7
7
|
it "should work" do
|
8
8
|
type = Brightbox::Type.find_by_handle "nano"
|
9
9
|
options = server_params("rspec_server_stop",type)
|
@@ -8,7 +8,7 @@ describe Brightbox::UserCollaboration do
|
|
8
8
|
expect(Brightbox::UserCollaboration.conn).to receive(:user_collaborations).and_return(faux_api_response)
|
9
9
|
end
|
10
10
|
|
11
|
-
context "when collaboration exists but is complete" do
|
11
|
+
context "when collaboration exists but is complete", :vcr do
|
12
12
|
it "does not return the complete collaboration" do
|
13
13
|
@account = "acc-aaaaa"
|
14
14
|
@collaboration = Brightbox::UserCollaboration.get_for_account(@account)
|
@@ -31,7 +31,7 @@ describe Brightbox::UserCollaboration do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
context "when multiple collaborations exist" do
|
34
|
+
context "when multiple collaborations exist", :vcr do
|
35
35
|
before do
|
36
36
|
@account = "acc-aaaaa"
|
37
37
|
@collaboration = Brightbox::UserCollaboration.get_for_account(@account)
|
@@ -42,7 +42,7 @@ describe Brightbox::UserCollaboration do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
context "when no collaboration exists" do
|
45
|
+
context "when no collaboration exists", :vcr do
|
46
46
|
it "returns nil" do
|
47
47
|
@account = "acc-zzzzz"
|
48
48
|
@collaboration = Brightbox::UserCollaboration.get_for_account(@account)
|
metadata
CHANGED
@@ -1,181 +1,167 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightbox-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Leach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: fog
|
28
|
+
name: fog-brightbox
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: multi_json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mime-types
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.25'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.25'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: json
|
70
|
+
name: i18n
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- -
|
73
|
+
- - ">="
|
88
74
|
- !ruby/object:Gem::Version
|
89
75
|
version: '0'
|
90
76
|
type: :runtime
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- -
|
80
|
+
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: hirb
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- - ~>
|
87
|
+
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
89
|
version: '0.6'
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- - ~>
|
94
|
+
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0.6'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: highline
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - ~>
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '1.6'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - ~>
|
108
|
+
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '1.6'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: rake
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
|
-
- -
|
115
|
+
- - ">="
|
130
116
|
- !ruby/object:Gem::Version
|
131
117
|
version: '0'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
|
-
- -
|
122
|
+
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: vcr
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- - ~>
|
129
|
+
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
131
|
version: '2.5'
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
|
-
- - ~>
|
136
|
+
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '2.5'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: rspec
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
|
-
- - ~>
|
143
|
+
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
145
|
version: '2.14'
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
|
-
- - ~>
|
150
|
+
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '2.14'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: mocha
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
|
-
- -
|
157
|
+
- - ">="
|
172
158
|
- !ruby/object:Gem::Version
|
173
159
|
version: '0'
|
174
160
|
type: :development
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
|
-
- -
|
164
|
+
- - ">="
|
179
165
|
- !ruby/object:Gem::Version
|
180
166
|
version: '0'
|
181
167
|
description: Scripts to interact with the Brightbox cloud API
|
@@ -199,8 +185,9 @@ executables:
|
|
199
185
|
extensions: []
|
200
186
|
extra_rdoc_files: []
|
201
187
|
files:
|
202
|
-
- .gitignore
|
203
|
-
- .travis.yml
|
188
|
+
- ".gitignore"
|
189
|
+
- ".travis.yml"
|
190
|
+
- CHANGELOG.md
|
204
191
|
- Gemfile
|
205
192
|
- Gemfile.lock
|
206
193
|
- LICENSE
|
@@ -227,72 +214,84 @@ files:
|
|
227
214
|
- lib/brightbox-cli/cloud_ips.rb
|
228
215
|
- lib/brightbox-cli/collaborating_account.rb
|
229
216
|
- lib/brightbox-cli/collaboration.rb
|
230
|
-
- lib/brightbox-cli/commands/accounts
|
231
|
-
- lib/brightbox-cli/commands/accounts
|
232
|
-
- lib/brightbox-cli/commands/accounts
|
233
|
-
- lib/brightbox-cli/commands/accounts
|
234
|
-
- lib/brightbox-cli/commands/accounts
|
235
|
-
- lib/brightbox-cli/commands/accounts
|
236
|
-
- lib/brightbox-cli/commands/cloudips
|
237
|
-
- lib/brightbox-cli/commands/cloudips
|
238
|
-
- lib/brightbox-cli/commands/cloudips
|
239
|
-
- lib/brightbox-cli/commands/cloudips
|
240
|
-
- lib/brightbox-cli/commands/cloudips
|
241
|
-
- lib/brightbox-cli/commands/cloudips
|
242
|
-
- lib/brightbox-cli/commands/cloudips
|
217
|
+
- lib/brightbox-cli/commands/accounts/accept-invite.rb
|
218
|
+
- lib/brightbox-cli/commands/accounts/default.rb
|
219
|
+
- lib/brightbox-cli/commands/accounts/list.rb
|
220
|
+
- lib/brightbox-cli/commands/accounts/remove.rb
|
221
|
+
- lib/brightbox-cli/commands/accounts/reset-ftp-password.rb
|
222
|
+
- lib/brightbox-cli/commands/accounts/show.rb
|
223
|
+
- lib/brightbox-cli/commands/cloudips/create.rb
|
224
|
+
- lib/brightbox-cli/commands/cloudips/destroy.rb
|
225
|
+
- lib/brightbox-cli/commands/cloudips/list.rb
|
226
|
+
- lib/brightbox-cli/commands/cloudips/map.rb
|
227
|
+
- lib/brightbox-cli/commands/cloudips/show.rb
|
228
|
+
- lib/brightbox-cli/commands/cloudips/unmap.rb
|
229
|
+
- lib/brightbox-cli/commands/cloudips/update.rb
|
243
230
|
- lib/brightbox-cli/commands/collaborations.rb
|
244
|
-
- lib/brightbox-cli/commands/config
|
245
|
-
- lib/brightbox-cli/commands/config
|
246
|
-
- lib/brightbox-cli/commands/config
|
247
|
-
- lib/brightbox-cli/commands/config
|
248
|
-
- lib/brightbox-cli/commands/config
|
249
|
-
- lib/brightbox-cli/commands/firewall
|
250
|
-
- lib/brightbox-cli/commands/firewall
|
251
|
-
- lib/brightbox-cli/commands/firewall
|
252
|
-
- lib/brightbox-cli/commands/firewall
|
253
|
-
- lib/brightbox-cli/commands/firewall
|
254
|
-
- lib/brightbox-cli/commands/firewall
|
255
|
-
- lib/brightbox-cli/commands/firewall
|
256
|
-
- lib/brightbox-cli/commands/firewall
|
257
|
-
- lib/brightbox-cli/commands/firewall
|
258
|
-
- lib/brightbox-cli/commands/firewall
|
259
|
-
- lib/brightbox-cli/commands/firewall
|
260
|
-
- lib/brightbox-cli/commands/firewall
|
261
|
-
- lib/brightbox-cli/commands/groups
|
262
|
-
- lib/brightbox-cli/commands/groups
|
263
|
-
- lib/brightbox-cli/commands/groups
|
264
|
-
- lib/brightbox-cli/commands/groups
|
265
|
-
- lib/brightbox-cli/commands/groups
|
266
|
-
- lib/brightbox-cli/commands/groups
|
267
|
-
- lib/brightbox-cli/commands/groups
|
268
|
-
- lib/brightbox-cli/commands/groups
|
269
|
-
- lib/brightbox-cli/commands/images
|
270
|
-
- lib/brightbox-cli/commands/images
|
271
|
-
- lib/brightbox-cli/commands/images
|
272
|
-
- lib/brightbox-cli/commands/images
|
273
|
-
- lib/brightbox-cli/commands/images
|
274
|
-
- lib/brightbox-cli/commands/lbs
|
275
|
-
- lib/brightbox-cli/commands/lbs
|
276
|
-
- lib/brightbox-cli/commands/lbs
|
277
|
-
- lib/brightbox-cli/commands/lbs
|
278
|
-
- lib/brightbox-cli/commands/lbs
|
279
|
-
- lib/brightbox-cli/commands/lbs
|
280
|
-
- lib/brightbox-cli/commands/lbs
|
281
|
-
- lib/brightbox-cli/commands/servers
|
282
|
-
- lib/brightbox-cli/commands/servers
|
283
|
-
- lib/brightbox-cli/commands/servers
|
284
|
-
- lib/brightbox-cli/commands/servers
|
285
|
-
- lib/brightbox-cli/commands/servers
|
286
|
-
- lib/brightbox-cli/commands/servers
|
287
|
-
- lib/brightbox-cli/commands/servers
|
288
|
-
- lib/brightbox-cli/commands/servers
|
289
|
-
- lib/brightbox-cli/commands/servers
|
290
|
-
- lib/brightbox-cli/commands/servers
|
231
|
+
- lib/brightbox-cli/commands/config/client-add.rb
|
232
|
+
- lib/brightbox-cli/commands/config/client-default.rb
|
233
|
+
- lib/brightbox-cli/commands/config/client-list.rb
|
234
|
+
- lib/brightbox-cli/commands/config/client-remove.rb
|
235
|
+
- lib/brightbox-cli/commands/config/user-add.rb
|
236
|
+
- lib/brightbox-cli/commands/firewall/policies-apply.rb
|
237
|
+
- lib/brightbox-cli/commands/firewall/policies-create.rb
|
238
|
+
- lib/brightbox-cli/commands/firewall/policies-destroy.rb
|
239
|
+
- lib/brightbox-cli/commands/firewall/policies-list.rb
|
240
|
+
- lib/brightbox-cli/commands/firewall/policies-remove.rb
|
241
|
+
- lib/brightbox-cli/commands/firewall/policies-show.rb
|
242
|
+
- lib/brightbox-cli/commands/firewall/policies-update.rb
|
243
|
+
- lib/brightbox-cli/commands/firewall/rules-create.rb
|
244
|
+
- lib/brightbox-cli/commands/firewall/rules-destroy.rb
|
245
|
+
- lib/brightbox-cli/commands/firewall/rules-list.rb
|
246
|
+
- lib/brightbox-cli/commands/firewall/rules-show.rb
|
247
|
+
- lib/brightbox-cli/commands/firewall/rules-update.rb
|
248
|
+
- lib/brightbox-cli/commands/groups/add-server.rb
|
249
|
+
- lib/brightbox-cli/commands/groups/create.rb
|
250
|
+
- lib/brightbox-cli/commands/groups/destroy.rb
|
251
|
+
- lib/brightbox-cli/commands/groups/list.rb
|
252
|
+
- lib/brightbox-cli/commands/groups/move_servers.rb
|
253
|
+
- lib/brightbox-cli/commands/groups/remove-servers.rb
|
254
|
+
- lib/brightbox-cli/commands/groups/show.rb
|
255
|
+
- lib/brightbox-cli/commands/groups/update.rb
|
256
|
+
- lib/brightbox-cli/commands/images/destroy.rb
|
257
|
+
- lib/brightbox-cli/commands/images/list.rb
|
258
|
+
- lib/brightbox-cli/commands/images/register.rb
|
259
|
+
- lib/brightbox-cli/commands/images/show.rb
|
260
|
+
- lib/brightbox-cli/commands/images/update.rb
|
261
|
+
- lib/brightbox-cli/commands/lbs/add-nodes.rb
|
262
|
+
- lib/brightbox-cli/commands/lbs/create.rb
|
263
|
+
- lib/brightbox-cli/commands/lbs/destroy.rb
|
264
|
+
- lib/brightbox-cli/commands/lbs/list.rb
|
265
|
+
- lib/brightbox-cli/commands/lbs/remove-nodes.rb
|
266
|
+
- lib/brightbox-cli/commands/lbs/show.rb
|
267
|
+
- lib/brightbox-cli/commands/lbs/update.rb
|
268
|
+
- lib/brightbox-cli/commands/servers/activate-console.rb
|
269
|
+
- lib/brightbox-cli/commands/servers/create.rb
|
270
|
+
- lib/brightbox-cli/commands/servers/destroy.rb
|
271
|
+
- lib/brightbox-cli/commands/servers/list.rb
|
272
|
+
- lib/brightbox-cli/commands/servers/show.rb
|
273
|
+
- lib/brightbox-cli/commands/servers/shutdown.rb
|
274
|
+
- lib/brightbox-cli/commands/servers/snapshot.rb
|
275
|
+
- lib/brightbox-cli/commands/servers/start.rb
|
276
|
+
- lib/brightbox-cli/commands/servers/stop.rb
|
277
|
+
- lib/brightbox-cli/commands/servers/update.rb
|
278
|
+
- lib/brightbox-cli/commands/sql/instances_create.rb
|
279
|
+
- lib/brightbox-cli/commands/sql/instances_destroy.rb
|
280
|
+
- lib/brightbox-cli/commands/sql/instances_list.rb
|
281
|
+
- lib/brightbox-cli/commands/sql/instances_reset_password.rb
|
282
|
+
- lib/brightbox-cli/commands/sql/instances_show.rb
|
283
|
+
- lib/brightbox-cli/commands/sql/instances_snapshot.rb
|
284
|
+
- lib/brightbox-cli/commands/sql/instances_update.rb
|
285
|
+
- lib/brightbox-cli/commands/sql/snapshots_destroy.rb
|
286
|
+
- lib/brightbox-cli/commands/sql/snapshots_list.rb
|
287
|
+
- lib/brightbox-cli/commands/sql/snapshots_show.rb
|
288
|
+
- lib/brightbox-cli/commands/sql/snapshots_update.rb
|
289
|
+
- lib/brightbox-cli/commands/sql/types.rb
|
291
290
|
- lib/brightbox-cli/commands/types.rb
|
292
291
|
- lib/brightbox-cli/commands/user-collaborations.rb
|
293
|
-
- lib/brightbox-cli/commands/users
|
294
|
-
- lib/brightbox-cli/commands/users
|
295
|
-
- lib/brightbox-cli/commands/users
|
292
|
+
- lib/brightbox-cli/commands/users/list.rb
|
293
|
+
- lib/brightbox-cli/commands/users/show.rb
|
294
|
+
- lib/brightbox-cli/commands/users/update.rb
|
296
295
|
- lib/brightbox-cli/commands/zones.rb
|
297
296
|
- lib/brightbox-cli/config.rb
|
298
297
|
- lib/brightbox-cli/config/accounts.rb
|
@@ -306,6 +305,9 @@ files:
|
|
306
305
|
- lib/brightbox-cli/config/to_fog.rb
|
307
306
|
- lib/brightbox-cli/config/user_application.rb
|
308
307
|
- lib/brightbox-cli/connection_manager.rb
|
308
|
+
- lib/brightbox-cli/database_server.rb
|
309
|
+
- lib/brightbox-cli/database_snapshot.rb
|
310
|
+
- lib/brightbox-cli/database_type.rb
|
309
311
|
- lib/brightbox-cli/detailed_server.rb
|
310
312
|
- lib/brightbox-cli/detailed_server_group.rb
|
311
313
|
- lib/brightbox-cli/error_parser.rb
|
@@ -338,6 +340,7 @@ files:
|
|
338
340
|
- lib/brightbox-cli/version.rb
|
339
341
|
- lib/brightbox-cli/zones.rb
|
340
342
|
- lib/brightbox_cli.rb
|
343
|
+
- locales/en.yml
|
341
344
|
- spec/brightbox_spec.rb
|
342
345
|
- spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml
|
343
346
|
- spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml
|
@@ -381,6 +384,8 @@ files:
|
|
381
384
|
- spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml
|
382
385
|
- spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml
|
383
386
|
- spec/cassettes/brightbox_accounts/list/does_not_error.yml
|
387
|
+
- spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml
|
388
|
+
- spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml
|
384
389
|
- spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml
|
385
390
|
- spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml
|
386
391
|
- spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml
|
@@ -410,6 +415,17 @@ files:
|
|
410
415
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml
|
411
416
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml
|
412
417
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml
|
418
|
+
- spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml
|
419
|
+
- spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml
|
420
|
+
- spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml
|
421
|
+
- spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml
|
422
|
+
- spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml
|
423
|
+
- spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml
|
424
|
+
- spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml
|
425
|
+
- spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
|
426
|
+
- spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
|
427
|
+
- spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml
|
428
|
+
- spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
|
413
429
|
- spec/commands/accounts/default_spec.rb
|
414
430
|
- spec/commands/accounts/list_spec.rb
|
415
431
|
- spec/commands/accounts/reset_ftp_password_spec.rb
|
@@ -469,6 +485,11 @@ files:
|
|
469
485
|
- spec/commands/servers/start_spec.rb
|
470
486
|
- spec/commands/servers/stop_spec.rb
|
471
487
|
- spec/commands/servers/update_spec.rb
|
488
|
+
- spec/commands/sql/instances/create_spec.rb
|
489
|
+
- spec/commands/sql/instances/snapshot_spec.rb
|
490
|
+
- spec/commands/sql/snapshots/list_spec.rb
|
491
|
+
- spec/commands/sql/snapshots/show_spec.rb
|
492
|
+
- spec/commands/sql/types/list_spec.rb
|
472
493
|
- spec/commands/types/list_spec.rb
|
473
494
|
- spec/commands/users/list_spec.rb
|
474
495
|
- spec/commands/users/show_spec.rb
|
@@ -541,6 +562,9 @@ files:
|
|
541
562
|
- spec/unit/brightbox/config/user_application/valid_spec.rb
|
542
563
|
- spec/unit/brightbox/config/user_application_spec.rb
|
543
564
|
- spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
|
565
|
+
- spec/unit/brightbox/database_server_spec.rb
|
566
|
+
- spec/unit/brightbox/database_snapshot_spec.rb
|
567
|
+
- spec/unit/brightbox/database_type_spec.rb
|
544
568
|
- spec/unit/brightbox/detailed_server_group_spec.rb
|
545
569
|
- spec/unit/brightbox/detailed_server_spec.rb
|
546
570
|
- spec/unit/brightbox/error_parser/pretty_print_spec.rb
|
@@ -605,17 +629,17 @@ require_paths:
|
|
605
629
|
- lib
|
606
630
|
required_ruby_version: !ruby/object:Gem::Requirement
|
607
631
|
requirements:
|
608
|
-
- -
|
632
|
+
- - ">="
|
609
633
|
- !ruby/object:Gem::Version
|
610
634
|
version: '0'
|
611
635
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
612
636
|
requirements:
|
613
|
-
- -
|
637
|
+
- - ">="
|
614
638
|
- !ruby/object:Gem::Version
|
615
639
|
version: '0'
|
616
640
|
requirements: []
|
617
641
|
rubyforge_project: brightbox-cli
|
618
|
-
rubygems_version: 2.
|
642
|
+
rubygems_version: 2.2.2
|
619
643
|
signing_key:
|
620
644
|
specification_version: 4
|
621
645
|
summary: The Brightbox cloud management system
|
@@ -663,6 +687,8 @@ test_files:
|
|
663
687
|
- spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml
|
664
688
|
- spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml
|
665
689
|
- spec/cassettes/brightbox_accounts/list/does_not_error.yml
|
690
|
+
- spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml
|
691
|
+
- spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml
|
666
692
|
- spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml
|
667
693
|
- spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml
|
668
694
|
- spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml
|
@@ -692,6 +718,17 @@ test_files:
|
|
692
718
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml
|
693
719
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml
|
694
720
|
- spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml
|
721
|
+
- spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml
|
722
|
+
- spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml
|
723
|
+
- spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml
|
724
|
+
- spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml
|
725
|
+
- spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml
|
726
|
+
- spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml
|
727
|
+
- spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml
|
728
|
+
- spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
|
729
|
+
- spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
|
730
|
+
- spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml
|
731
|
+
- spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
|
695
732
|
- spec/commands/accounts/default_spec.rb
|
696
733
|
- spec/commands/accounts/list_spec.rb
|
697
734
|
- spec/commands/accounts/reset_ftp_password_spec.rb
|
@@ -751,6 +788,11 @@ test_files:
|
|
751
788
|
- spec/commands/servers/start_spec.rb
|
752
789
|
- spec/commands/servers/stop_spec.rb
|
753
790
|
- spec/commands/servers/update_spec.rb
|
791
|
+
- spec/commands/sql/instances/create_spec.rb
|
792
|
+
- spec/commands/sql/instances/snapshot_spec.rb
|
793
|
+
- spec/commands/sql/snapshots/list_spec.rb
|
794
|
+
- spec/commands/sql/snapshots/show_spec.rb
|
795
|
+
- spec/commands/sql/types/list_spec.rb
|
754
796
|
- spec/commands/types/list_spec.rb
|
755
797
|
- spec/commands/users/list_spec.rb
|
756
798
|
- spec/commands/users/show_spec.rb
|
@@ -823,6 +865,9 @@ test_files:
|
|
823
865
|
- spec/unit/brightbox/config/user_application/valid_spec.rb
|
824
866
|
- spec/unit/brightbox/config/user_application_spec.rb
|
825
867
|
- spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
|
868
|
+
- spec/unit/brightbox/database_server_spec.rb
|
869
|
+
- spec/unit/brightbox/database_snapshot_spec.rb
|
870
|
+
- spec/unit/brightbox/database_type_spec.rb
|
826
871
|
- spec/unit/brightbox/detailed_server_group_spec.rb
|
827
872
|
- spec/unit/brightbox/detailed_server_spec.rb
|
828
873
|
- spec/unit/brightbox/error_parser/pretty_print_spec.rb
|