brightbox-cli 1.1.0 → 1.2.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 +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
data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml
CHANGED
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
18
|
code: 200
|
|
19
|
-
message:
|
|
19
|
+
message:
|
|
20
20
|
headers:
|
|
21
21
|
Content-Type:
|
|
22
22
|
- application/json; charset=utf-8
|
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
|
44
44
|
new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-08-27T15:47:00Z","description":"Applied
|
|
45
45
|
to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T15:54:12Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:54:13Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:20Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:21Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:56:46Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:06:22Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T16:12:42Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:12:43Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:49Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Teresa
|
|
46
46
|
Ullrich","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
|
|
47
|
-
http_version:
|
|
47
|
+
http_version:
|
|
48
48
|
recorded_at: Tue, 27 Aug 2013 16:14:19 GMT
|
|
49
49
|
- request:
|
|
50
50
|
method: post
|
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
|
62
62
|
response:
|
|
63
63
|
status:
|
|
64
64
|
code: 202
|
|
65
|
-
message:
|
|
65
|
+
message:
|
|
66
66
|
headers:
|
|
67
67
|
Location:
|
|
68
68
|
- http://api.brightbox.dev/1.0/server_groups/grp-dz0s6
|
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
|
84
84
|
encoding: UTF-8
|
|
85
85
|
string: '{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"Test
|
|
86
86
|
group","description":null,"created_at":"2013-08-27T16:14:19Z","default":false,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"firewall_policy":null,"servers":[]}'
|
|
87
|
-
http_version:
|
|
87
|
+
http_version:
|
|
88
88
|
recorded_at: Tue, 27 Aug 2013 16:14:19 GMT
|
|
89
89
|
- request:
|
|
90
90
|
method: get
|
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
|
102
102
|
response:
|
|
103
103
|
status:
|
|
104
104
|
code: 200
|
|
105
|
-
message:
|
|
105
|
+
message:
|
|
106
106
|
headers:
|
|
107
107
|
Content-Type:
|
|
108
108
|
- application/json; charset=utf-8
|
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
|
128
128
|
servers","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:26Z","started_at":"2013-08-27T15:54:29Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_shutdown","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:36Z","started_at":"2013-08-27T15:54:38Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_start","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:41Z","started_at":"2013-08-27T15:54:47Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_stop","status":"inactive","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:48Z","started_at":"2013-08-27T15:54:51Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"wow","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:12:51Z","started_at":"2013-08-27T16:12:54Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium
|
|
129
129
|
servers","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:12:55Z","started_at":"2013-08-27T16:12:58Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_shutdown","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:13:54Z","started_at":"2013-08-27T16:13:57Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_start","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:14:01Z","started_at":"2013-08-27T16:14:10Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_stop","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:14:11Z","started_at":"2013-08-27T16:14:19Z","deleted_at":null}]},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"firewall_policy":null,"servers":[]},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"firewall_policy":null,"servers":[]},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"Test
|
|
130
130
|
group","description":null,"created_at":"2013-08-27T16:14:19Z","default":false,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"firewall_policy":null,"servers":[]}]'
|
|
131
|
-
http_version:
|
|
131
|
+
http_version:
|
|
132
132
|
recorded_at: Tue, 27 Aug 2013 16:14:20 GMT
|
|
133
133
|
- request:
|
|
134
134
|
method: delete
|
|
@@ -146,7 +146,7 @@ http_interactions:
|
|
|
146
146
|
response:
|
|
147
147
|
status:
|
|
148
148
|
code: 202
|
|
149
|
-
message:
|
|
149
|
+
message:
|
|
150
150
|
headers:
|
|
151
151
|
Content-Type:
|
|
152
152
|
- application/json; charset=utf-8
|
|
@@ -166,7 +166,7 @@ http_interactions:
|
|
|
166
166
|
encoding: UTF-8
|
|
167
167
|
string: '{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"Test
|
|
168
168
|
group","description":null,"created_at":"2013-08-27T16:14:19Z","default":false,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"firewall_policy":null,"servers":[]}'
|
|
169
|
-
http_version:
|
|
169
|
+
http_version:
|
|
170
170
|
recorded_at: Tue, 27 Aug 2013 16:14:20 GMT
|
|
171
171
|
- request:
|
|
172
172
|
method: post
|
|
@@ -184,7 +184,7 @@ http_interactions:
|
|
|
184
184
|
response:
|
|
185
185
|
status:
|
|
186
186
|
code: 400
|
|
187
|
-
message:
|
|
187
|
+
message:
|
|
188
188
|
headers:
|
|
189
189
|
X-Frame-Options:
|
|
190
190
|
- sameorigin
|
|
@@ -210,7 +210,7 @@ http_interactions:
|
|
|
210
210
|
encoding: UTF-8
|
|
211
211
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
212
212
|
client is not authorized to use the access grant type provided."}'
|
|
213
|
-
http_version:
|
|
213
|
+
http_version:
|
|
214
214
|
recorded_at: Tue, 27 Aug 2013 17:10:00 GMT
|
|
215
215
|
- request:
|
|
216
216
|
method: post
|
|
@@ -228,7 +228,7 @@ http_interactions:
|
|
|
228
228
|
response:
|
|
229
229
|
status:
|
|
230
230
|
code: 400
|
|
231
|
-
message:
|
|
231
|
+
message:
|
|
232
232
|
headers:
|
|
233
233
|
X-Frame-Options:
|
|
234
234
|
- sameorigin
|
|
@@ -254,7 +254,7 @@ http_interactions:
|
|
|
254
254
|
encoding: UTF-8
|
|
255
255
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
256
256
|
client is not authorized to use the access grant type provided."}'
|
|
257
|
-
http_version:
|
|
257
|
+
http_version:
|
|
258
258
|
recorded_at: Tue, 27 Aug 2013 17:10:00 GMT
|
|
259
259
|
- request:
|
|
260
260
|
method: post
|
|
@@ -272,7 +272,7 @@ http_interactions:
|
|
|
272
272
|
response:
|
|
273
273
|
status:
|
|
274
274
|
code: 400
|
|
275
|
-
message:
|
|
275
|
+
message:
|
|
276
276
|
headers:
|
|
277
277
|
X-Frame-Options:
|
|
278
278
|
- sameorigin
|
|
@@ -298,7 +298,7 @@ http_interactions:
|
|
|
298
298
|
encoding: UTF-8
|
|
299
299
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
300
300
|
client is not authorized to use the access grant type provided."}'
|
|
301
|
-
http_version:
|
|
301
|
+
http_version:
|
|
302
302
|
recorded_at: Tue, 27 Aug 2013 17:10:01 GMT
|
|
303
303
|
- request:
|
|
304
304
|
method: post
|
|
@@ -316,7 +316,7 @@ http_interactions:
|
|
|
316
316
|
response:
|
|
317
317
|
status:
|
|
318
318
|
code: 400
|
|
319
|
-
message:
|
|
319
|
+
message:
|
|
320
320
|
headers:
|
|
321
321
|
X-Frame-Options:
|
|
322
322
|
- sameorigin
|
|
@@ -342,7 +342,7 @@ http_interactions:
|
|
|
342
342
|
encoding: UTF-8
|
|
343
343
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
344
344
|
client is not authorized to use the access grant type provided."}'
|
|
345
|
-
http_version:
|
|
345
|
+
http_version:
|
|
346
346
|
recorded_at: Tue, 27 Aug 2013 17:10:01 GMT
|
|
347
347
|
- request:
|
|
348
348
|
method: post
|
|
@@ -360,7 +360,7 @@ http_interactions:
|
|
|
360
360
|
response:
|
|
361
361
|
status:
|
|
362
362
|
code: 200
|
|
363
|
-
message:
|
|
363
|
+
message:
|
|
364
364
|
headers:
|
|
365
365
|
X-Frame-Options:
|
|
366
366
|
- sameorigin
|
|
@@ -387,7 +387,7 @@ http_interactions:
|
|
|
387
387
|
body:
|
|
388
388
|
encoding: UTF-8
|
|
389
389
|
string: '{"access_token":"11c0210b684aee1385a3e2647b352a6b19d132a9","expires_in":7200}'
|
|
390
|
-
http_version:
|
|
390
|
+
http_version:
|
|
391
391
|
recorded_at: Wed, 28 Aug 2013 16:10:20 GMT
|
|
392
392
|
- request:
|
|
393
393
|
method: get
|
|
@@ -405,7 +405,7 @@ http_interactions:
|
|
|
405
405
|
response:
|
|
406
406
|
status:
|
|
407
407
|
code: 401
|
|
408
|
-
message:
|
|
408
|
+
message:
|
|
409
409
|
headers:
|
|
410
410
|
WWW-Authenticate:
|
|
411
411
|
- OAuth error="invalid_token"
|
|
@@ -427,7 +427,7 @@ http_interactions:
|
|
|
427
427
|
encoding: UTF-8
|
|
428
428
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
|
429
429
|
be found"}'
|
|
430
|
-
http_version:
|
|
430
|
+
http_version:
|
|
431
431
|
recorded_at: Tue, 17 Sep 2013 17:08:08 GMT
|
|
432
432
|
- request:
|
|
433
433
|
method: post
|
|
@@ -445,7 +445,7 @@ http_interactions:
|
|
|
445
445
|
response:
|
|
446
446
|
status:
|
|
447
447
|
code: 200
|
|
448
|
-
message:
|
|
448
|
+
message:
|
|
449
449
|
headers:
|
|
450
450
|
X-Frame-Options:
|
|
451
451
|
- sameorigin
|
|
@@ -472,7 +472,7 @@ http_interactions:
|
|
|
472
472
|
body:
|
|
473
473
|
encoding: UTF-8
|
|
474
474
|
string: '{"access_token":"0f791bdbc5bd541c97986ac32ec1095aba741152","expires_in":7200}'
|
|
475
|
-
http_version:
|
|
475
|
+
http_version:
|
|
476
476
|
recorded_at: Tue, 17 Sep 2013 17:08:08 GMT
|
|
477
477
|
- request:
|
|
478
478
|
method: get
|
|
@@ -490,7 +490,7 @@ http_interactions:
|
|
|
490
490
|
response:
|
|
491
491
|
status:
|
|
492
492
|
code: 200
|
|
493
|
-
message:
|
|
493
|
+
message:
|
|
494
494
|
headers:
|
|
495
495
|
Content-Type:
|
|
496
496
|
- application/json; charset=utf-8
|
|
@@ -514,6 +514,6 @@ http_interactions:
|
|
|
514
514
|
new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
|
|
515
515
|
to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
|
|
516
516
|
Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
|
|
517
|
-
http_version:
|
|
517
|
+
http_version:
|
|
518
518
|
recorded_at: Tue, 17 Sep 2013 17:08:08 GMT
|
|
519
519
|
recorded_with: VCR 2.5.0
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
18
|
code: 401
|
|
19
|
-
message:
|
|
19
|
+
message:
|
|
20
20
|
headers:
|
|
21
21
|
!binary "V1dXLUF1dGhlbnRpY2F0ZQ==":
|
|
22
22
|
- !binary |-
|
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
|
46
46
|
encoding: US-ASCII
|
|
47
47
|
string: ! '{"error":"invalid_token","error_description":"The OAuth token can
|
|
48
48
|
not be found"}'
|
|
49
|
-
http_version:
|
|
49
|
+
http_version:
|
|
50
50
|
recorded_at: Fri, 27 Sep 2013 15:18:18 GMT
|
|
51
51
|
- request:
|
|
52
52
|
method: post
|
|
@@ -64,7 +64,7 @@ http_interactions:
|
|
|
64
64
|
response:
|
|
65
65
|
status:
|
|
66
66
|
code: 200
|
|
67
|
-
message:
|
|
67
|
+
message:
|
|
68
68
|
headers:
|
|
69
69
|
!binary "WC1GcmFtZS1PcHRpb25z":
|
|
70
70
|
- !binary |-
|
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
|
102
102
|
body:
|
|
103
103
|
encoding: US-ASCII
|
|
104
104
|
string: ! '{"access_token":"f46816c4911694d051ec6a779103e42ab72d3fc7","expires_in":7200}'
|
|
105
|
-
http_version:
|
|
105
|
+
http_version:
|
|
106
106
|
recorded_at: Fri, 27 Sep 2013 15:18:18 GMT
|
|
107
107
|
- request:
|
|
108
108
|
method: put
|
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
|
121
121
|
response:
|
|
122
122
|
status:
|
|
123
123
|
code: 422
|
|
124
|
-
message:
|
|
124
|
+
message:
|
|
125
125
|
headers:
|
|
126
126
|
!binary "Q29udGVudC1UeXBl":
|
|
127
127
|
- !binary |-
|
|
@@ -148,6 +148,6 @@ http_interactions:
|
|
|
148
148
|
encoding: US-ASCII
|
|
149
149
|
string: ! '{"error_name":"unprocessable_entity","errors":["default firewall
|
|
150
150
|
policy can not be renamed"]}'
|
|
151
|
-
http_version:
|
|
151
|
+
http_version:
|
|
152
152
|
recorded_at: Fri, 27 Sep 2013 15:18:19 GMT
|
|
153
153
|
recorded_with: VCR 2.5.0
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
18
|
code: 401
|
|
19
|
-
message:
|
|
19
|
+
message:
|
|
20
20
|
headers:
|
|
21
21
|
WWW-Authenticate:
|
|
22
22
|
- OAuth error="invalid_token"
|
|
@@ -38,7 +38,7 @@ http_interactions:
|
|
|
38
38
|
encoding: UTF-8
|
|
39
39
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
|
40
40
|
be found"}'
|
|
41
|
-
http_version:
|
|
41
|
+
http_version:
|
|
42
42
|
recorded_at: Wed, 28 Aug 2013 14:50:08 GMT
|
|
43
43
|
- request:
|
|
44
44
|
method: post
|
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
|
56
56
|
response:
|
|
57
57
|
status:
|
|
58
58
|
code: 400
|
|
59
|
-
message:
|
|
59
|
+
message:
|
|
60
60
|
headers:
|
|
61
61
|
X-Frame-Options:
|
|
62
62
|
- sameorigin
|
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
|
84
84
|
provided is invalid, the client failed to authenticate, the client did not
|
|
85
85
|
include its credentials, provided multiple client credentials, or used unsupported
|
|
86
86
|
credentials type."}'
|
|
87
|
-
http_version:
|
|
87
|
+
http_version:
|
|
88
88
|
recorded_at: Wed, 28 Aug 2013 14:50:08 GMT
|
|
89
89
|
- request:
|
|
90
90
|
method: get
|
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
|
102
102
|
response:
|
|
103
103
|
status:
|
|
104
104
|
code: 401
|
|
105
|
-
message:
|
|
105
|
+
message:
|
|
106
106
|
headers:
|
|
107
107
|
WWW-Authenticate:
|
|
108
108
|
- OAuth error="invalid_token"
|
|
@@ -124,7 +124,7 @@ http_interactions:
|
|
|
124
124
|
encoding: UTF-8
|
|
125
125
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
|
126
126
|
be found"}'
|
|
127
|
-
http_version:
|
|
127
|
+
http_version:
|
|
128
128
|
recorded_at: Wed, 28 Aug 2013 14:50:08 GMT
|
|
129
129
|
- request:
|
|
130
130
|
method: post
|
|
@@ -142,7 +142,7 @@ http_interactions:
|
|
|
142
142
|
response:
|
|
143
143
|
status:
|
|
144
144
|
code: 200
|
|
145
|
-
message:
|
|
145
|
+
message:
|
|
146
146
|
headers:
|
|
147
147
|
X-Frame-Options:
|
|
148
148
|
- sameorigin
|
|
@@ -169,7 +169,7 @@ http_interactions:
|
|
|
169
169
|
body:
|
|
170
170
|
encoding: UTF-8
|
|
171
171
|
string: '{"access_token":"d003e4f0970b948af8e35d3ed9f3531cdd6e2154","expires_in":7200,"refresh_token":"dcd32790159f852756dadf8bed12cc3369c7b448"}'
|
|
172
|
-
http_version:
|
|
172
|
+
http_version:
|
|
173
173
|
recorded_at: Wed, 28 Aug 2013 14:50:09 GMT
|
|
174
174
|
- request:
|
|
175
175
|
method: post
|
|
@@ -187,7 +187,7 @@ http_interactions:
|
|
|
187
187
|
response:
|
|
188
188
|
status:
|
|
189
189
|
code: 400
|
|
190
|
-
message:
|
|
190
|
+
message:
|
|
191
191
|
headers:
|
|
192
192
|
X-Frame-Options:
|
|
193
193
|
- sameorigin
|
|
@@ -215,7 +215,7 @@ http_interactions:
|
|
|
215
215
|
provided is invalid, the client failed to authenticate, the client did not
|
|
216
216
|
include its credentials, provided multiple client credentials, or used unsupported
|
|
217
217
|
credentials type."}'
|
|
218
|
-
http_version:
|
|
218
|
+
http_version:
|
|
219
219
|
recorded_at: Wed, 28 Aug 2013 14:54:24 GMT
|
|
220
220
|
- request:
|
|
221
221
|
method: post
|
|
@@ -233,7 +233,7 @@ http_interactions:
|
|
|
233
233
|
response:
|
|
234
234
|
status:
|
|
235
235
|
code: 400
|
|
236
|
-
message:
|
|
236
|
+
message:
|
|
237
237
|
headers:
|
|
238
238
|
X-Frame-Options:
|
|
239
239
|
- sameorigin
|
|
@@ -259,7 +259,7 @@ http_interactions:
|
|
|
259
259
|
encoding: UTF-8
|
|
260
260
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
261
261
|
client is not authorized to use the access grant type provided."}'
|
|
262
|
-
http_version:
|
|
262
|
+
http_version:
|
|
263
263
|
recorded_at: Wed, 18 Sep 2013 15:18:57 GMT
|
|
264
264
|
- request:
|
|
265
265
|
method: post
|
|
@@ -277,7 +277,7 @@ http_interactions:
|
|
|
277
277
|
response:
|
|
278
278
|
status:
|
|
279
279
|
code: 400
|
|
280
|
-
message:
|
|
280
|
+
message:
|
|
281
281
|
headers:
|
|
282
282
|
X-Frame-Options:
|
|
283
283
|
- sameorigin
|
|
@@ -303,7 +303,7 @@ http_interactions:
|
|
|
303
303
|
encoding: UTF-8
|
|
304
304
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
305
305
|
client is not authorized to use the access grant type provided."}'
|
|
306
|
-
http_version:
|
|
306
|
+
http_version:
|
|
307
307
|
recorded_at: Wed, 18 Sep 2013 15:18:57 GMT
|
|
308
308
|
- request:
|
|
309
309
|
method: post
|
|
@@ -321,7 +321,7 @@ http_interactions:
|
|
|
321
321
|
response:
|
|
322
322
|
status:
|
|
323
323
|
code: 400
|
|
324
|
-
message:
|
|
324
|
+
message:
|
|
325
325
|
headers:
|
|
326
326
|
X-Frame-Options:
|
|
327
327
|
- sameorigin
|
|
@@ -349,7 +349,7 @@ http_interactions:
|
|
|
349
349
|
is invalid, expired, or revoked (e.g. invalid assertion, expired authorization
|
|
350
350
|
token, bad end-user password credentials, or mismatching authorization code
|
|
351
351
|
and redirection URI)."}'
|
|
352
|
-
http_version:
|
|
352
|
+
http_version:
|
|
353
353
|
recorded_at: Wed, 18 Sep 2013 15:19:02 GMT
|
|
354
354
|
- request:
|
|
355
355
|
method: post
|
|
@@ -367,7 +367,7 @@ http_interactions:
|
|
|
367
367
|
response:
|
|
368
368
|
status:
|
|
369
369
|
code: 401
|
|
370
|
-
message:
|
|
370
|
+
message:
|
|
371
371
|
headers:
|
|
372
372
|
X-Frame-Options:
|
|
373
373
|
- sameorigin
|
|
@@ -394,6 +394,6 @@ http_interactions:
|
|
|
394
394
|
body:
|
|
395
395
|
encoding: UTF-8
|
|
396
396
|
string: '{"error":"invalid_client"}'
|
|
397
|
-
http_version:
|
|
397
|
+
http_version:
|
|
398
398
|
recorded_at: Wed, 18 Sep 2013 15:19:35 GMT
|
|
399
399
|
recorded_with: VCR 2.5.0
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
18
|
code: 400
|
|
19
|
-
message:
|
|
19
|
+
message:
|
|
20
20
|
headers:
|
|
21
21
|
X-Frame-Options:
|
|
22
22
|
- sameorigin
|
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
|
44
44
|
provided is invalid, the client failed to authenticate, the client did not
|
|
45
45
|
include its credentials, provided multiple client credentials, or used unsupported
|
|
46
46
|
credentials type."}'
|
|
47
|
-
http_version:
|
|
47
|
+
http_version:
|
|
48
48
|
recorded_at: Wed, 28 Aug 2013 14:46:22 GMT
|
|
49
49
|
- request:
|
|
50
50
|
method: get
|
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
|
62
62
|
response:
|
|
63
63
|
status:
|
|
64
64
|
code: 401
|
|
65
|
-
message:
|
|
65
|
+
message:
|
|
66
66
|
headers:
|
|
67
67
|
WWW-Authenticate:
|
|
68
68
|
- OAuth error="invalid_token"
|
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
|
84
84
|
encoding: UTF-8
|
|
85
85
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
|
86
86
|
be found"}'
|
|
87
|
-
http_version:
|
|
87
|
+
http_version:
|
|
88
88
|
recorded_at: Wed, 28 Aug 2013 14:46:22 GMT
|
|
89
89
|
- request:
|
|
90
90
|
method: post
|
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
|
102
102
|
response:
|
|
103
103
|
status:
|
|
104
104
|
code: 400
|
|
105
|
-
message:
|
|
105
|
+
message:
|
|
106
106
|
headers:
|
|
107
107
|
X-Frame-Options:
|
|
108
108
|
- sameorigin
|
|
@@ -130,7 +130,7 @@ http_interactions:
|
|
|
130
130
|
provided is invalid, the client failed to authenticate, the client did not
|
|
131
131
|
include its credentials, provided multiple client credentials, or used unsupported
|
|
132
132
|
credentials type."}'
|
|
133
|
-
http_version:
|
|
133
|
+
http_version:
|
|
134
134
|
recorded_at: Wed, 28 Aug 2013 14:46:22 GMT
|
|
135
135
|
- request:
|
|
136
136
|
method: get
|
|
@@ -148,7 +148,7 @@ http_interactions:
|
|
|
148
148
|
response:
|
|
149
149
|
status:
|
|
150
150
|
code: 401
|
|
151
|
-
message:
|
|
151
|
+
message:
|
|
152
152
|
headers:
|
|
153
153
|
WWW-Authenticate:
|
|
154
154
|
- OAuth error="invalid_token"
|
|
@@ -170,7 +170,7 @@ http_interactions:
|
|
|
170
170
|
encoding: UTF-8
|
|
171
171
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
|
172
172
|
be found"}'
|
|
173
|
-
http_version:
|
|
173
|
+
http_version:
|
|
174
174
|
recorded_at: Wed, 28 Aug 2013 14:46:22 GMT
|
|
175
175
|
- request:
|
|
176
176
|
method: post
|
|
@@ -188,7 +188,7 @@ http_interactions:
|
|
|
188
188
|
response:
|
|
189
189
|
status:
|
|
190
190
|
code: 400
|
|
191
|
-
message:
|
|
191
|
+
message:
|
|
192
192
|
headers:
|
|
193
193
|
X-Frame-Options:
|
|
194
194
|
- sameorigin
|
|
@@ -216,7 +216,7 @@ http_interactions:
|
|
|
216
216
|
is invalid, expired, or revoked (e.g. invalid assertion, expired authorization
|
|
217
217
|
token, bad end-user password credentials, or mismatching authorization code
|
|
218
218
|
and redirection URI)."}'
|
|
219
|
-
http_version:
|
|
219
|
+
http_version:
|
|
220
220
|
recorded_at: Wed, 28 Aug 2013 14:46:23 GMT
|
|
221
221
|
- request:
|
|
222
222
|
method: post
|
|
@@ -234,7 +234,7 @@ http_interactions:
|
|
|
234
234
|
response:
|
|
235
235
|
status:
|
|
236
236
|
code: 200
|
|
237
|
-
message:
|
|
237
|
+
message:
|
|
238
238
|
headers:
|
|
239
239
|
X-Frame-Options:
|
|
240
240
|
- sameorigin
|
|
@@ -261,7 +261,7 @@ http_interactions:
|
|
|
261
261
|
body:
|
|
262
262
|
encoding: UTF-8
|
|
263
263
|
string: '{"access_token":"2234e839fed8172ef4f1c4a3edfde8ea8deea4a4","expires_in":7200,"refresh_token":"e47999ca927b0f50dfd883056a60a3841d09d941"}'
|
|
264
|
-
http_version:
|
|
264
|
+
http_version:
|
|
265
265
|
recorded_at: Wed, 28 Aug 2013 14:46:23 GMT
|
|
266
266
|
- request:
|
|
267
267
|
method: post
|
|
@@ -279,7 +279,7 @@ http_interactions:
|
|
|
279
279
|
response:
|
|
280
280
|
status:
|
|
281
281
|
code: 400
|
|
282
|
-
message:
|
|
282
|
+
message:
|
|
283
283
|
headers:
|
|
284
284
|
X-Frame-Options:
|
|
285
285
|
- sameorigin
|
|
@@ -305,7 +305,7 @@ http_interactions:
|
|
|
305
305
|
encoding: UTF-8
|
|
306
306
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
307
307
|
client is not authorized to use the access grant type provided."}'
|
|
308
|
-
http_version:
|
|
308
|
+
http_version:
|
|
309
309
|
recorded_at: Wed, 18 Sep 2013 15:18:56 GMT
|
|
310
310
|
- request:
|
|
311
311
|
method: post
|
|
@@ -323,7 +323,7 @@ http_interactions:
|
|
|
323
323
|
response:
|
|
324
324
|
status:
|
|
325
325
|
code: 400
|
|
326
|
-
message:
|
|
326
|
+
message:
|
|
327
327
|
headers:
|
|
328
328
|
X-Frame-Options:
|
|
329
329
|
- sameorigin
|
|
@@ -349,7 +349,7 @@ http_interactions:
|
|
|
349
349
|
encoding: UTF-8
|
|
350
350
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
|
351
351
|
client is not authorized to use the access grant type provided."}'
|
|
352
|
-
http_version:
|
|
352
|
+
http_version:
|
|
353
353
|
recorded_at: Wed, 18 Sep 2013 15:18:56 GMT
|
|
354
354
|
- request:
|
|
355
355
|
method: post
|
|
@@ -367,7 +367,7 @@ http_interactions:
|
|
|
367
367
|
response:
|
|
368
368
|
status:
|
|
369
369
|
code: 400
|
|
370
|
-
message:
|
|
370
|
+
message:
|
|
371
371
|
headers:
|
|
372
372
|
X-Frame-Options:
|
|
373
373
|
- sameorigin
|
|
@@ -395,6 +395,6 @@ http_interactions:
|
|
|
395
395
|
is invalid, expired, or revoked (e.g. invalid assertion, expired authorization
|
|
396
396
|
token, bad end-user password credentials, or mismatching authorization code
|
|
397
397
|
and redirection URI)."}'
|
|
398
|
-
http_version:
|
|
398
|
+
http_version:
|
|
399
399
|
recorded_at: Wed, 18 Sep 2013 15:19:43 GMT
|
|
400
400
|
recorded_with: VCR 2.5.0
|