brightbox-cli 5.0.0.alpha → 5.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -1
- data/CHANGELOG.md +63 -0
- data/Gemfile.lock +1 -1
- data/lib/brightbox-cli/accounts.rb +5 -1
- data/lib/brightbox-cli/api.rb +34 -1
- data/lib/brightbox-cli/cloud_ips.rb +6 -6
- data/lib/brightbox-cli/collaboration.rb +3 -7
- data/lib/brightbox-cli/commands/images/show.rb +5 -1
- data/lib/brightbox-cli/commands/lbs/create.rb +0 -2
- data/lib/brightbox-cli/commands/lbs/show.rb +9 -1
- data/lib/brightbox-cli/commands/servers/show.rb +5 -1
- data/lib/brightbox-cli/commands/users/show.rb +5 -1
- data/lib/brightbox-cli/commands/volumes/show.rb +5 -1
- data/lib/brightbox-cli/config.rb +10 -4
- data/lib/brightbox-cli/database_server.rb +20 -20
- data/lib/brightbox-cli/database_snapshot.rb +5 -5
- data/lib/brightbox-cli/database_type.rb +4 -8
- data/lib/brightbox-cli/detailed_server.rb +26 -28
- data/lib/brightbox-cli/detailed_server_group.rb +2 -2
- data/lib/brightbox-cli/firewall_policy.rb +5 -9
- data/lib/brightbox-cli/firewall_rule.rb +14 -15
- data/lib/brightbox-cli/images.rb +22 -21
- data/lib/brightbox-cli/indifferent_access_hash.rb +50 -0
- data/lib/brightbox-cli/load_balancers.rb +27 -11
- data/lib/brightbox-cli/server_groups.rb +4 -8
- data/lib/brightbox-cli/servers.rb +22 -16
- data/lib/brightbox-cli/types.rb +4 -8
- data/lib/brightbox-cli/user_collaboration.rb +1 -1
- data/lib/brightbox-cli/users.rb +3 -5
- data/lib/brightbox-cli/version.rb +1 -1
- data/lib/brightbox-cli/volume.rb +9 -13
- data/lib/brightbox-cli/zones.rb +0 -4
- data/lib/brightbox_cli.rb +1 -0
- data/spec/commands/cloudips/update_spec.rb +7 -5
- data/spec/commands/configmaps/create_spec.rb +6 -6
- data/spec/commands/configmaps/destroy_spec.rb +1 -1
- data/spec/commands/configmaps/list_spec.rb +1 -1
- data/spec/commands/configmaps/show_spec.rb +3 -3
- data/spec/commands/configmaps/update_spec.rb +9 -9
- data/spec/commands/images/show_spec.rb +49 -19
- data/spec/commands/lbs/create_spec.rb +12 -26
- data/spec/commands/lbs/show_spec.rb +120 -22
- data/spec/commands/lbs/update_spec.rb +4 -4
- data/spec/commands/servers/show_spec.rb +83 -1
- data/spec/commands/servers/update_spec.rb +7 -7
- data/spec/commands/sql/instances/create_spec.rb +8 -8
- data/spec/commands/sql/instances/reset_spec.rb +3 -3
- data/spec/commands/sql/instances/resize_spec.rb +4 -4
- data/spec/commands/sql/instances/show_spec.rb +2 -1
- data/spec/commands/sql/instances/update_spec.rb +3 -3
- data/spec/commands/sql/snapshots/list_spec.rb +1 -1
- data/spec/commands/sql/snapshots/show_spec.rb +50 -7
- data/spec/commands/users/show_spec.rb +66 -1
- data/spec/commands/volumes/attach_spec.rb +4 -4
- data/spec/commands/volumes/copy_spec.rb +2 -2
- data/spec/commands/volumes/destroy_spec.rb +1 -1
- data/spec/commands/volumes/detach_spec.rb +1 -1
- data/spec/commands/volumes/list_spec.rb +1 -1
- data/spec/commands/volumes/resize_spec.rb +3 -3
- data/spec/commands/volumes/show_spec.rb +54 -25
- data/spec/commands/volumes/update_spec.rb +4 -4
- data/spec/spec_helper.rb +14 -10
- data/spec/support/shared/api_resource_examples.rb +25 -0
- data/spec/unit/brightbox/account/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/api/attributes_spec.rb +65 -0
- data/spec/unit/brightbox/api/fog_attributes_spec.rb +65 -0
- data/spec/unit/brightbox/cloud_ip/attributes_spec.rb +19 -0
- data/spec/unit/brightbox/collaborating_account/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/database_server/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/database_snapshot/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/database_type/attributes_spec.rb +20 -0
- data/spec/unit/brightbox/detailed_server/attributes_spec.rb +29 -0
- data/spec/unit/brightbox/detailed_server_group/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/firewall_policy/attributes_spec.rb +21 -0
- data/spec/unit/brightbox/firewall_rule/attributes_spec.rb +18 -0
- data/spec/unit/brightbox/image/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/image/status_spec.rb +67 -0
- data/spec/unit/brightbox/load_balancer/acme_cert_spec.rb +75 -0
- data/spec/unit/brightbox/load_balancer/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb +78 -0
- data/spec/unit/brightbox/server/attributes_spec.rb +29 -0
- data/spec/unit/brightbox/server_group/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/type/attributes_spec.rb +20 -0
- data/spec/unit/brightbox/user/attributes_spec.rb +13 -0
- data/spec/unit/brightbox/user_collaboration/attributes_spec.rb +13 -0
- metadata +50 -10
- data/spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +0 -93
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightbox-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Leach
|
8
8
|
- Paul Thornthwaite
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: fog-brightbox
|
@@ -427,6 +426,7 @@ files:
|
|
427
426
|
- lib/brightbox-cli/firewall_rules.rb
|
428
427
|
- lib/brightbox-cli/gli_global_hooks.rb
|
429
428
|
- lib/brightbox-cli/images.rb
|
429
|
+
- lib/brightbox-cli/indifferent_access_hash.rb
|
430
430
|
- lib/brightbox-cli/legacy/args_adjuster.rb
|
431
431
|
- lib/brightbox-cli/load_balancers.rb
|
432
432
|
- lib/brightbox-cli/logging.rb
|
@@ -584,7 +584,6 @@ files:
|
|
584
584
|
- spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
|
585
585
|
- spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
|
586
586
|
- spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml
|
587
|
-
- spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
|
588
587
|
- spec/commands/accounts/default_spec.rb
|
589
588
|
- spec/commands/accounts/list_spec.rb
|
590
589
|
- spec/commands/accounts/show_spec.rb
|
@@ -696,11 +695,14 @@ files:
|
|
696
695
|
- spec/support/vcr.rb
|
697
696
|
- spec/support/volume_helpers.rb
|
698
697
|
- spec/unit/brightbox/account/all_spec.rb
|
698
|
+
- spec/unit/brightbox/account/attributes_spec.rb
|
699
699
|
- spec/unit/brightbox/account/get_spec.rb
|
700
700
|
- spec/unit/brightbox/account_spec.rb
|
701
|
+
- spec/unit/brightbox/api/attributes_spec.rb
|
701
702
|
- spec/unit/brightbox/api/conn_spec.rb
|
702
703
|
- spec/unit/brightbox/api/created_on_spec.rb
|
703
704
|
- spec/unit/brightbox/api/find_spec.rb
|
705
|
+
- spec/unit/brightbox/api/fog_attributes_spec.rb
|
704
706
|
- spec/unit/brightbox/api/fog_model_spec.rb
|
705
707
|
- spec/unit/brightbox/api/klass_name_spec.rb
|
706
708
|
- spec/unit/brightbox/api/method_missing_spec.rb
|
@@ -736,8 +738,10 @@ files:
|
|
736
738
|
- spec/unit/brightbox/bb_config/update_stored_tokens_spec.rb
|
737
739
|
- spec/unit/brightbox/bb_config/using_client_spec.rb
|
738
740
|
- spec/unit/brightbox/bb_config_spec.rb
|
741
|
+
- spec/unit/brightbox/cloud_ip/attributes_spec.rb
|
739
742
|
- spec/unit/brightbox/cloud_ip/find_spec.rb
|
740
743
|
- spec/unit/brightbox/cloud_ips_spec.rb
|
744
|
+
- spec/unit/brightbox/collaborating_account/attributes_spec.rb
|
741
745
|
- spec/unit/brightbox/collaborating_account/name_spec.rb
|
742
746
|
- spec/unit/brightbox/collaborating_account/resource_type_spec.rb
|
743
747
|
- spec/unit/brightbox/collaborating_account/role_spec.rb
|
@@ -754,29 +758,42 @@ files:
|
|
754
758
|
- spec/unit/brightbox/config/user_application/valid_spec.rb
|
755
759
|
- spec/unit/brightbox/config/user_application_spec.rb
|
756
760
|
- spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
|
761
|
+
- spec/unit/brightbox/database_server/attributes_spec.rb
|
757
762
|
- spec/unit/brightbox/database_server/clean_arguments_spec.rb
|
758
763
|
- spec/unit/brightbox/database_server/cloud_ips_spec.rb
|
759
764
|
- spec/unit/brightbox/database_server/maintenance_window_spec.rb
|
760
765
|
- spec/unit/brightbox/database_server_spec.rb
|
766
|
+
- spec/unit/brightbox/database_snapshot/attributes_spec.rb
|
761
767
|
- spec/unit/brightbox/database_snapshot_spec.rb
|
768
|
+
- spec/unit/brightbox/database_type/attributes_spec.rb
|
762
769
|
- spec/unit/brightbox/database_type_spec.rb
|
770
|
+
- spec/unit/brightbox/detailed_server/attributes_spec.rb
|
771
|
+
- spec/unit/brightbox/detailed_server_group/attributes_spec.rb
|
763
772
|
- spec/unit/brightbox/detailed_server_group_spec.rb
|
764
773
|
- spec/unit/brightbox/detailed_server_spec.rb
|
765
774
|
- spec/unit/brightbox/error_parser/pretty_print_spec.rb
|
766
775
|
- spec/unit/brightbox/firewall_policy/apply_to_spec.rb
|
776
|
+
- spec/unit/brightbox/firewall_policy/attributes_spec.rb
|
767
777
|
- spec/unit/brightbox/firewall_policy/create_spec.rb
|
768
778
|
- spec/unit/brightbox/firewall_policy/destroy_spec.rb
|
769
779
|
- spec/unit/brightbox/firewall_policy/find_or_call_spec.rb
|
770
780
|
- spec/unit/brightbox/firewall_policy/find_spec.rb
|
771
781
|
- spec/unit/brightbox/firewall_policy_spec.rb
|
782
|
+
- spec/unit/brightbox/firewall_rule/attributes_spec.rb
|
772
783
|
- spec/unit/brightbox/firewall_rule/create_spec.rb
|
773
784
|
- spec/unit/brightbox/firewall_rule/destroy_spec.rb
|
774
785
|
- spec/unit/brightbox/firewall_rule/find_spec.rb
|
775
786
|
- spec/unit/brightbox/firewall_rule/from_policy_spec.rb
|
776
787
|
- spec/unit/brightbox/firewall_rule_spec.rb
|
788
|
+
- spec/unit/brightbox/image/attributes_spec.rb
|
789
|
+
- spec/unit/brightbox/image/status_spec.rb
|
777
790
|
- spec/unit/brightbox/image_spec.rb
|
778
791
|
- spec/unit/brightbox/legacy/args_adjuster_spec.rb
|
792
|
+
- spec/unit/brightbox/load_balancer/acme_cert_spec.rb
|
793
|
+
- spec/unit/brightbox/load_balancer/attributes_spec.rb
|
794
|
+
- spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb
|
779
795
|
- spec/unit/brightbox/load_balancer_spec.rb
|
796
|
+
- spec/unit/brightbox/server/attributes_spec.rb
|
780
797
|
- spec/unit/brightbox/server/create_spec.rb
|
781
798
|
- spec/unit/brightbox/server/destroy_spec.rb
|
782
799
|
- spec/unit/brightbox/server/find_or_call_spec.rb
|
@@ -786,10 +803,14 @@ files:
|
|
786
803
|
- spec/unit/brightbox/server/start_spec.rb
|
787
804
|
- spec/unit/brightbox/server/stop_spec.rb
|
788
805
|
- spec/unit/brightbox/server/update_spec.rb
|
806
|
+
- spec/unit/brightbox/server_group/attributes_spec.rb
|
789
807
|
- spec/unit/brightbox/server_group/find_spec.rb
|
790
808
|
- spec/unit/brightbox/server_group_spec.rb
|
791
809
|
- spec/unit/brightbox/server_spec.rb
|
810
|
+
- spec/unit/brightbox/type/attributes_spec.rb
|
792
811
|
- spec/unit/brightbox/type_spec.rb
|
812
|
+
- spec/unit/brightbox/user/attributes_spec.rb
|
813
|
+
- spec/unit/brightbox/user_collaboration/attributes_spec.rb
|
793
814
|
- spec/unit/brightbox/user_collaboration/get_for_account_spec.rb
|
794
815
|
- spec/unit/brightbox/user_collaboration/remove_spec.rb
|
795
816
|
- spec/unit/brightbox/user_collaboration_spec.rb
|
@@ -805,7 +826,6 @@ licenses:
|
|
805
826
|
- MIT
|
806
827
|
metadata:
|
807
828
|
rubygems_mfa_required: 'true'
|
808
|
-
post_install_message:
|
809
829
|
rdoc_options: []
|
810
830
|
require_paths:
|
811
831
|
- lib
|
@@ -816,12 +836,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
816
836
|
version: '2.7'
|
817
837
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
818
838
|
requirements:
|
819
|
-
- - "
|
839
|
+
- - ">="
|
820
840
|
- !ruby/object:Gem::Version
|
821
|
-
version:
|
841
|
+
version: '0'
|
822
842
|
requirements: []
|
823
|
-
rubygems_version: 3.
|
824
|
-
signing_key:
|
843
|
+
rubygems_version: 3.6.2
|
825
844
|
specification_version: 4
|
826
845
|
summary: The Brightbox cloud management system
|
827
846
|
test_files:
|
@@ -953,7 +972,6 @@ test_files:
|
|
953
972
|
- spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
|
954
973
|
- spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
|
955
974
|
- spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml
|
956
|
-
- spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
|
957
975
|
- spec/commands/accounts/default_spec.rb
|
958
976
|
- spec/commands/accounts/list_spec.rb
|
959
977
|
- spec/commands/accounts/show_spec.rb
|
@@ -1065,11 +1083,14 @@ test_files:
|
|
1065
1083
|
- spec/support/vcr.rb
|
1066
1084
|
- spec/support/volume_helpers.rb
|
1067
1085
|
- spec/unit/brightbox/account/all_spec.rb
|
1086
|
+
- spec/unit/brightbox/account/attributes_spec.rb
|
1068
1087
|
- spec/unit/brightbox/account/get_spec.rb
|
1069
1088
|
- spec/unit/brightbox/account_spec.rb
|
1089
|
+
- spec/unit/brightbox/api/attributes_spec.rb
|
1070
1090
|
- spec/unit/brightbox/api/conn_spec.rb
|
1071
1091
|
- spec/unit/brightbox/api/created_on_spec.rb
|
1072
1092
|
- spec/unit/brightbox/api/find_spec.rb
|
1093
|
+
- spec/unit/brightbox/api/fog_attributes_spec.rb
|
1073
1094
|
- spec/unit/brightbox/api/fog_model_spec.rb
|
1074
1095
|
- spec/unit/brightbox/api/klass_name_spec.rb
|
1075
1096
|
- spec/unit/brightbox/api/method_missing_spec.rb
|
@@ -1105,8 +1126,10 @@ test_files:
|
|
1105
1126
|
- spec/unit/brightbox/bb_config/update_stored_tokens_spec.rb
|
1106
1127
|
- spec/unit/brightbox/bb_config/using_client_spec.rb
|
1107
1128
|
- spec/unit/brightbox/bb_config_spec.rb
|
1129
|
+
- spec/unit/brightbox/cloud_ip/attributes_spec.rb
|
1108
1130
|
- spec/unit/brightbox/cloud_ip/find_spec.rb
|
1109
1131
|
- spec/unit/brightbox/cloud_ips_spec.rb
|
1132
|
+
- spec/unit/brightbox/collaborating_account/attributes_spec.rb
|
1110
1133
|
- spec/unit/brightbox/collaborating_account/name_spec.rb
|
1111
1134
|
- spec/unit/brightbox/collaborating_account/resource_type_spec.rb
|
1112
1135
|
- spec/unit/brightbox/collaborating_account/role_spec.rb
|
@@ -1123,29 +1146,42 @@ test_files:
|
|
1123
1146
|
- spec/unit/brightbox/config/user_application/valid_spec.rb
|
1124
1147
|
- spec/unit/brightbox/config/user_application_spec.rb
|
1125
1148
|
- spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
|
1149
|
+
- spec/unit/brightbox/database_server/attributes_spec.rb
|
1126
1150
|
- spec/unit/brightbox/database_server/clean_arguments_spec.rb
|
1127
1151
|
- spec/unit/brightbox/database_server/cloud_ips_spec.rb
|
1128
1152
|
- spec/unit/brightbox/database_server/maintenance_window_spec.rb
|
1129
1153
|
- spec/unit/brightbox/database_server_spec.rb
|
1154
|
+
- spec/unit/brightbox/database_snapshot/attributes_spec.rb
|
1130
1155
|
- spec/unit/brightbox/database_snapshot_spec.rb
|
1156
|
+
- spec/unit/brightbox/database_type/attributes_spec.rb
|
1131
1157
|
- spec/unit/brightbox/database_type_spec.rb
|
1158
|
+
- spec/unit/brightbox/detailed_server/attributes_spec.rb
|
1159
|
+
- spec/unit/brightbox/detailed_server_group/attributes_spec.rb
|
1132
1160
|
- spec/unit/brightbox/detailed_server_group_spec.rb
|
1133
1161
|
- spec/unit/brightbox/detailed_server_spec.rb
|
1134
1162
|
- spec/unit/brightbox/error_parser/pretty_print_spec.rb
|
1135
1163
|
- spec/unit/brightbox/firewall_policy/apply_to_spec.rb
|
1164
|
+
- spec/unit/brightbox/firewall_policy/attributes_spec.rb
|
1136
1165
|
- spec/unit/brightbox/firewall_policy/create_spec.rb
|
1137
1166
|
- spec/unit/brightbox/firewall_policy/destroy_spec.rb
|
1138
1167
|
- spec/unit/brightbox/firewall_policy/find_or_call_spec.rb
|
1139
1168
|
- spec/unit/brightbox/firewall_policy/find_spec.rb
|
1140
1169
|
- spec/unit/brightbox/firewall_policy_spec.rb
|
1170
|
+
- spec/unit/brightbox/firewall_rule/attributes_spec.rb
|
1141
1171
|
- spec/unit/brightbox/firewall_rule/create_spec.rb
|
1142
1172
|
- spec/unit/brightbox/firewall_rule/destroy_spec.rb
|
1143
1173
|
- spec/unit/brightbox/firewall_rule/find_spec.rb
|
1144
1174
|
- spec/unit/brightbox/firewall_rule/from_policy_spec.rb
|
1145
1175
|
- spec/unit/brightbox/firewall_rule_spec.rb
|
1176
|
+
- spec/unit/brightbox/image/attributes_spec.rb
|
1177
|
+
- spec/unit/brightbox/image/status_spec.rb
|
1146
1178
|
- spec/unit/brightbox/image_spec.rb
|
1147
1179
|
- spec/unit/brightbox/legacy/args_adjuster_spec.rb
|
1180
|
+
- spec/unit/brightbox/load_balancer/acme_cert_spec.rb
|
1181
|
+
- spec/unit/brightbox/load_balancer/attributes_spec.rb
|
1182
|
+
- spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb
|
1148
1183
|
- spec/unit/brightbox/load_balancer_spec.rb
|
1184
|
+
- spec/unit/brightbox/server/attributes_spec.rb
|
1149
1185
|
- spec/unit/brightbox/server/create_spec.rb
|
1150
1186
|
- spec/unit/brightbox/server/destroy_spec.rb
|
1151
1187
|
- spec/unit/brightbox/server/find_or_call_spec.rb
|
@@ -1155,10 +1191,14 @@ test_files:
|
|
1155
1191
|
- spec/unit/brightbox/server/start_spec.rb
|
1156
1192
|
- spec/unit/brightbox/server/stop_spec.rb
|
1157
1193
|
- spec/unit/brightbox/server/update_spec.rb
|
1194
|
+
- spec/unit/brightbox/server_group/attributes_spec.rb
|
1158
1195
|
- spec/unit/brightbox/server_group/find_spec.rb
|
1159
1196
|
- spec/unit/brightbox/server_group_spec.rb
|
1160
1197
|
- spec/unit/brightbox/server_spec.rb
|
1198
|
+
- spec/unit/brightbox/type/attributes_spec.rb
|
1161
1199
|
- spec/unit/brightbox/type_spec.rb
|
1200
|
+
- spec/unit/brightbox/user/attributes_spec.rb
|
1201
|
+
- spec/unit/brightbox/user_collaboration/attributes_spec.rb
|
1162
1202
|
- spec/unit/brightbox/user_collaboration/get_for_account_spec.rb
|
1163
1203
|
- spec/unit/brightbox/user_collaboration/remove_spec.rb
|
1164
1204
|
- spec/unit/brightbox/user_collaboration_spec.rb
|
data/spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-12345?account_id=acc-12345
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- fog/1.19.0
|
12
|
-
Authorization:
|
13
|
-
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=utf-8
|
23
|
-
X-Ua-Compatible:
|
24
|
-
- IE=Edge
|
25
|
-
Etag:
|
26
|
-
- "\"fac2ed3edb567b9281616c1bdc334a1a\""
|
27
|
-
Cache-Control:
|
28
|
-
- max-age=0, private, must-revalidate
|
29
|
-
X-Request-Id:
|
30
|
-
- 5514a55df99fee2c5f631f7ff8acfe3d
|
31
|
-
X-Runtime:
|
32
|
-
- '0.205251'
|
33
|
-
Server:
|
34
|
-
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
35
|
-
Date:
|
36
|
-
- Fri, 17 Jan 2014 10:45:59 GMT
|
37
|
-
Content-Length:
|
38
|
-
- '449'
|
39
|
-
Connection:
|
40
|
-
- Keep-Alive
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: "{\"id\":\"dbi-12345\",\"resource_type\":\"database_snapshot\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_snapshots/dbi-12345\",\"name\":\"\",\"description\":\"\",\"status\":\"active\",\"database_version\":\"5.5\",\"size\":0,\"created_at\":\"2014-01-17T10:23:00Z\",\"updated_at\":\"2014-01-17T10:23:00Z\",\"deleted_at\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
44
|
-
account\",\"status\":\"active\"}}"
|
45
|
-
http_version:
|
46
|
-
recorded_at: Fri, 17 Jan 2014 10:45:59 GMT
|
47
|
-
- request:
|
48
|
-
method: post
|
49
|
-
uri: http://api.brightbox.localhost/token
|
50
|
-
body:
|
51
|
-
encoding: UTF-8
|
52
|
-
string: "{\"grant_type\":\"client_credentials\"}"
|
53
|
-
headers:
|
54
|
-
User-Agent:
|
55
|
-
- fog/1.20.0
|
56
|
-
Authorization:
|
57
|
-
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
58
|
-
Content-Type:
|
59
|
-
- application/json
|
60
|
-
response:
|
61
|
-
status:
|
62
|
-
code: 400
|
63
|
-
message:
|
64
|
-
headers:
|
65
|
-
X-Frame-Options:
|
66
|
-
- sameorigin
|
67
|
-
X-Xss-Protection:
|
68
|
-
- 1; mode=block
|
69
|
-
Content-Type:
|
70
|
-
- application/json;charset=utf-8
|
71
|
-
Cache-Control:
|
72
|
-
- no-store
|
73
|
-
Content-Length:
|
74
|
-
- '135'
|
75
|
-
X-Ua-Compatible:
|
76
|
-
- IE=Edge
|
77
|
-
X-Request-Id:
|
78
|
-
- 3223730ff4c4c65e052fc92b95171647
|
79
|
-
X-Runtime:
|
80
|
-
- '0.102349'
|
81
|
-
Server:
|
82
|
-
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
83
|
-
Date:
|
84
|
-
- Tue, 18 Feb 2014 17:30:27 GMT
|
85
|
-
Connection:
|
86
|
-
- close
|
87
|
-
body:
|
88
|
-
encoding: UTF-8
|
89
|
-
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
90
|
-
client is not authorized to use the access grant type provided.\"}"
|
91
|
-
http_version:
|
92
|
-
recorded_at: Tue, 18 Feb 2014 17:30:27 GMT
|
93
|
-
recorded_with: VCR 2.5.0
|