brightbox-cli 4.8.0 → 5.0.0.rc1

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.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +6 -2
  3. data/CHANGELOG.md +60 -0
  4. data/Gemfile.lock +17 -10
  5. data/brightbox-cli.gemspec +3 -7
  6. data/lib/brightbox-cli/accounts.rb +5 -1
  7. data/lib/brightbox-cli/api.rb +34 -1
  8. data/lib/brightbox-cli/cloud_ips.rb +6 -6
  9. data/lib/brightbox-cli/collaboration.rb +3 -7
  10. data/lib/brightbox-cli/commands/cloudips/unmap.rb +1 -1
  11. data/lib/brightbox-cli/commands/firewall/policies_apply.rb +1 -1
  12. data/lib/brightbox-cli/commands/firewall/policies_create.rb +1 -1
  13. data/lib/brightbox-cli/commands/firewall/policies_destroy.rb +1 -1
  14. data/lib/brightbox-cli/commands/firewall/policies_list.rb +1 -1
  15. data/lib/brightbox-cli/commands/firewall/policies_remove.rb +1 -1
  16. data/lib/brightbox-cli/commands/firewall/policies_show.rb +1 -1
  17. data/lib/brightbox-cli/commands/firewall/policies_update.rb +1 -1
  18. data/lib/brightbox-cli/commands/lbs/create.rb +28 -16
  19. data/lib/brightbox-cli/commands/lbs/show.rb +5 -0
  20. data/lib/brightbox-cli/commands/lbs/update.rb +9 -2
  21. data/lib/brightbox-cli/config.rb +12 -5
  22. data/lib/brightbox-cli/database_server.rb +20 -20
  23. data/lib/brightbox-cli/database_snapshot.rb +5 -5
  24. data/lib/brightbox-cli/database_type.rb +4 -8
  25. data/lib/brightbox-cli/detailed_server.rb +26 -28
  26. data/lib/brightbox-cli/detailed_server_group.rb +2 -2
  27. data/lib/brightbox-cli/firewall_policy.rb +5 -9
  28. data/lib/brightbox-cli/firewall_rule.rb +14 -15
  29. data/lib/brightbox-cli/images.rb +21 -20
  30. data/lib/brightbox-cli/indifferent_access_hash.rb +50 -0
  31. data/lib/brightbox-cli/load_balancers.rb +38 -4
  32. data/lib/brightbox-cli/server_groups.rb +4 -8
  33. data/lib/brightbox-cli/servers.rb +22 -16
  34. data/lib/brightbox-cli/types.rb +4 -8
  35. data/lib/brightbox-cli/user_collaboration.rb +1 -1
  36. data/lib/brightbox-cli/users.rb +3 -5
  37. data/lib/brightbox-cli/version.rb +1 -1
  38. data/lib/brightbox-cli/volume.rb +9 -13
  39. data/lib/brightbox-cli/zones.rb +0 -4
  40. data/lib/brightbox_cli.rb +1 -0
  41. data/spec/commands/cloudips/update_spec.rb +7 -5
  42. data/spec/commands/configmaps/create_spec.rb +6 -6
  43. data/spec/commands/configmaps/destroy_spec.rb +1 -1
  44. data/spec/commands/configmaps/list_spec.rb +1 -1
  45. data/spec/commands/configmaps/show_spec.rb +3 -3
  46. data/spec/commands/configmaps/update_spec.rb +9 -9
  47. data/spec/commands/lbs/create_spec.rb +158 -6
  48. data/spec/commands/lbs/show_spec.rb +99 -3
  49. data/spec/commands/lbs/update_spec.rb +50 -6
  50. data/spec/commands/servers/update_spec.rb +7 -7
  51. data/spec/commands/sql/instances/create_spec.rb +8 -8
  52. data/spec/commands/sql/instances/reset_spec.rb +3 -3
  53. data/spec/commands/sql/instances/resize_spec.rb +4 -4
  54. data/spec/commands/sql/instances/show_spec.rb +2 -1
  55. data/spec/commands/sql/instances/update_spec.rb +3 -3
  56. data/spec/commands/sql/snapshots/list_spec.rb +1 -1
  57. data/spec/commands/sql/snapshots/show_spec.rb +50 -7
  58. data/spec/commands/volumes/attach_spec.rb +4 -4
  59. data/spec/commands/volumes/copy_spec.rb +2 -2
  60. data/spec/commands/volumes/destroy_spec.rb +1 -1
  61. data/spec/commands/volumes/detach_spec.rb +1 -1
  62. data/spec/commands/volumes/list_spec.rb +1 -1
  63. data/spec/commands/volumes/resize_spec.rb +3 -3
  64. data/spec/commands/volumes/show_spec.rb +1 -1
  65. data/spec/commands/volumes/update_spec.rb +4 -4
  66. data/spec/spec_helper.rb +16 -0
  67. data/spec/support/shared/api_resource_examples.rb +25 -0
  68. data/spec/unit/brightbox/account/attributes_spec.rb +13 -0
  69. data/spec/unit/brightbox/api/attributes_spec.rb +65 -0
  70. data/spec/unit/brightbox/api/fog_attributes_spec.rb +65 -0
  71. data/spec/unit/brightbox/bb_config/config_directory_spec.rb +23 -3
  72. data/spec/unit/brightbox/cloud_ip/attributes_spec.rb +19 -0
  73. data/spec/unit/brightbox/collaborating_account/attributes_spec.rb +13 -0
  74. data/spec/unit/brightbox/database_server/attributes_spec.rb +13 -0
  75. data/spec/unit/brightbox/database_snapshot/attributes_spec.rb +13 -0
  76. data/spec/unit/brightbox/database_type/attributes_spec.rb +20 -0
  77. data/spec/unit/brightbox/detailed_server/attributes_spec.rb +29 -0
  78. data/spec/unit/brightbox/detailed_server_group/attributes_spec.rb +13 -0
  79. data/spec/unit/brightbox/firewall_policy/attributes_spec.rb +21 -0
  80. data/spec/unit/brightbox/firewall_rule/attributes_spec.rb +18 -0
  81. data/spec/unit/brightbox/image/attributes_spec.rb +13 -0
  82. data/spec/unit/brightbox/image/status_spec.rb +67 -0
  83. data/spec/unit/brightbox/load_balancer/acme_cert_spec.rb +75 -0
  84. data/spec/unit/brightbox/load_balancer/attributes_spec.rb +13 -0
  85. data/spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb +78 -0
  86. data/spec/unit/brightbox/server/attributes_spec.rb +29 -0
  87. data/spec/unit/brightbox/server/hostname_spec.rb +27 -0
  88. data/spec/unit/brightbox/server_group/attributes_spec.rb +13 -0
  89. data/spec/unit/brightbox/type/attributes_spec.rb +20 -0
  90. data/spec/unit/brightbox/user/attributes_spec.rb +13 -0
  91. data/spec/unit/brightbox/user_collaboration/attributes_spec.rb +13 -0
  92. metadata +68 -23
  93. data/spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +0 -93
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 5.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Leach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-23 00:00:00.000000000 Z
12
+ date: 2024-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-brightbox
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 1.11.0
20
+ version: 1.12.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 1.11.0
27
+ version: 1.12.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: fog-core
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -130,21 +130,21 @@ dependencies:
130
130
  - !ruby/object:Gem::Version
131
131
  version: '1.11'
132
132
  - !ruby/object:Gem::Dependency
133
- name: dry-inflector
133
+ name: mocha
134
134
  requirement: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.2.0
139
- type: :runtime
138
+ version: '0'
139
+ type: :development
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.0
145
+ version: '0'
146
146
  - !ruby/object:Gem::Dependency
147
- name: mocha
147
+ name: pry-remote
148
148
  requirement: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
@@ -158,7 +158,7 @@ dependencies:
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  - !ruby/object:Gem::Dependency
161
- name: pry-remote
161
+ name: rake
162
162
  requirement: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
@@ -172,7 +172,7 @@ dependencies:
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
- name: rake
175
+ name: rspec
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
@@ -186,7 +186,7 @@ dependencies:
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  - !ruby/object:Gem::Dependency
189
- name: rspec
189
+ name: rubocop
190
190
  requirement: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="
@@ -200,7 +200,7 @@ dependencies:
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  - !ruby/object:Gem::Dependency
203
- name: rubocop
203
+ name: rubocop-rake
204
204
  requirement: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
@@ -214,7 +214,7 @@ dependencies:
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  - !ruby/object:Gem::Dependency
217
- name: rubocop-rake
217
+ name: rubocop-rspec
218
218
  requirement: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="
@@ -228,7 +228,7 @@ dependencies:
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  - !ruby/object:Gem::Dependency
231
- name: rubocop-rspec
231
+ name: simplecov
232
232
  requirement: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - ">="
@@ -427,6 +427,7 @@ files:
427
427
  - lib/brightbox-cli/firewall_rules.rb
428
428
  - lib/brightbox-cli/gli_global_hooks.rb
429
429
  - lib/brightbox-cli/images.rb
430
+ - lib/brightbox-cli/indifferent_access_hash.rb
430
431
  - lib/brightbox-cli/legacy/args_adjuster.rb
431
432
  - lib/brightbox-cli/load_balancers.rb
432
433
  - lib/brightbox-cli/logging.rb
@@ -584,7 +585,6 @@ files:
584
585
  - spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
585
586
  - spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
586
587
  - 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
588
  - spec/commands/accounts/default_spec.rb
589
589
  - spec/commands/accounts/list_spec.rb
590
590
  - spec/commands/accounts/show_spec.rb
@@ -696,11 +696,14 @@ files:
696
696
  - spec/support/vcr.rb
697
697
  - spec/support/volume_helpers.rb
698
698
  - spec/unit/brightbox/account/all_spec.rb
699
+ - spec/unit/brightbox/account/attributes_spec.rb
699
700
  - spec/unit/brightbox/account/get_spec.rb
700
701
  - spec/unit/brightbox/account_spec.rb
702
+ - spec/unit/brightbox/api/attributes_spec.rb
701
703
  - spec/unit/brightbox/api/conn_spec.rb
702
704
  - spec/unit/brightbox/api/created_on_spec.rb
703
705
  - spec/unit/brightbox/api/find_spec.rb
706
+ - spec/unit/brightbox/api/fog_attributes_spec.rb
704
707
  - spec/unit/brightbox/api/fog_model_spec.rb
705
708
  - spec/unit/brightbox/api/klass_name_spec.rb
706
709
  - spec/unit/brightbox/api/method_missing_spec.rb
@@ -736,8 +739,10 @@ files:
736
739
  - spec/unit/brightbox/bb_config/update_stored_tokens_spec.rb
737
740
  - spec/unit/brightbox/bb_config/using_client_spec.rb
738
741
  - spec/unit/brightbox/bb_config_spec.rb
742
+ - spec/unit/brightbox/cloud_ip/attributes_spec.rb
739
743
  - spec/unit/brightbox/cloud_ip/find_spec.rb
740
744
  - spec/unit/brightbox/cloud_ips_spec.rb
745
+ - spec/unit/brightbox/collaborating_account/attributes_spec.rb
741
746
  - spec/unit/brightbox/collaborating_account/name_spec.rb
742
747
  - spec/unit/brightbox/collaborating_account/resource_type_spec.rb
743
748
  - spec/unit/brightbox/collaborating_account/role_spec.rb
@@ -754,41 +759,59 @@ files:
754
759
  - spec/unit/brightbox/config/user_application/valid_spec.rb
755
760
  - spec/unit/brightbox/config/user_application_spec.rb
756
761
  - spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
762
+ - spec/unit/brightbox/database_server/attributes_spec.rb
757
763
  - spec/unit/brightbox/database_server/clean_arguments_spec.rb
758
764
  - spec/unit/brightbox/database_server/cloud_ips_spec.rb
759
765
  - spec/unit/brightbox/database_server/maintenance_window_spec.rb
760
766
  - spec/unit/brightbox/database_server_spec.rb
767
+ - spec/unit/brightbox/database_snapshot/attributes_spec.rb
761
768
  - spec/unit/brightbox/database_snapshot_spec.rb
769
+ - spec/unit/brightbox/database_type/attributes_spec.rb
762
770
  - spec/unit/brightbox/database_type_spec.rb
771
+ - spec/unit/brightbox/detailed_server/attributes_spec.rb
772
+ - spec/unit/brightbox/detailed_server_group/attributes_spec.rb
763
773
  - spec/unit/brightbox/detailed_server_group_spec.rb
764
774
  - spec/unit/brightbox/detailed_server_spec.rb
765
775
  - spec/unit/brightbox/error_parser/pretty_print_spec.rb
766
776
  - spec/unit/brightbox/firewall_policy/apply_to_spec.rb
777
+ - spec/unit/brightbox/firewall_policy/attributes_spec.rb
767
778
  - spec/unit/brightbox/firewall_policy/create_spec.rb
768
779
  - spec/unit/brightbox/firewall_policy/destroy_spec.rb
769
780
  - spec/unit/brightbox/firewall_policy/find_or_call_spec.rb
770
781
  - spec/unit/brightbox/firewall_policy/find_spec.rb
771
782
  - spec/unit/brightbox/firewall_policy_spec.rb
783
+ - spec/unit/brightbox/firewall_rule/attributes_spec.rb
772
784
  - spec/unit/brightbox/firewall_rule/create_spec.rb
773
785
  - spec/unit/brightbox/firewall_rule/destroy_spec.rb
774
786
  - spec/unit/brightbox/firewall_rule/find_spec.rb
775
787
  - spec/unit/brightbox/firewall_rule/from_policy_spec.rb
776
788
  - spec/unit/brightbox/firewall_rule_spec.rb
789
+ - spec/unit/brightbox/image/attributes_spec.rb
790
+ - spec/unit/brightbox/image/status_spec.rb
777
791
  - spec/unit/brightbox/image_spec.rb
778
792
  - spec/unit/brightbox/legacy/args_adjuster_spec.rb
793
+ - spec/unit/brightbox/load_balancer/acme_cert_spec.rb
794
+ - spec/unit/brightbox/load_balancer/attributes_spec.rb
795
+ - spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb
779
796
  - spec/unit/brightbox/load_balancer_spec.rb
797
+ - spec/unit/brightbox/server/attributes_spec.rb
780
798
  - spec/unit/brightbox/server/create_spec.rb
781
799
  - spec/unit/brightbox/server/destroy_spec.rb
782
800
  - spec/unit/brightbox/server/find_or_call_spec.rb
783
801
  - spec/unit/brightbox/server/find_spec.rb
802
+ - spec/unit/brightbox/server/hostname_spec.rb
784
803
  - spec/unit/brightbox/server/shutdown_spec.rb
785
804
  - spec/unit/brightbox/server/start_spec.rb
786
805
  - spec/unit/brightbox/server/stop_spec.rb
787
806
  - spec/unit/brightbox/server/update_spec.rb
807
+ - spec/unit/brightbox/server_group/attributes_spec.rb
788
808
  - spec/unit/brightbox/server_group/find_spec.rb
789
809
  - spec/unit/brightbox/server_group_spec.rb
790
810
  - spec/unit/brightbox/server_spec.rb
811
+ - spec/unit/brightbox/type/attributes_spec.rb
791
812
  - spec/unit/brightbox/type_spec.rb
813
+ - spec/unit/brightbox/user/attributes_spec.rb
814
+ - spec/unit/brightbox/user_collaboration/attributes_spec.rb
792
815
  - spec/unit/brightbox/user_collaboration/get_for_account_spec.rb
793
816
  - spec/unit/brightbox/user_collaboration/remove_spec.rb
794
817
  - spec/unit/brightbox/user_collaboration_spec.rb
@@ -812,14 +835,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
812
835
  requirements:
813
836
  - - ">="
814
837
  - !ruby/object:Gem::Version
815
- version: '2.5'
838
+ version: '2.7'
816
839
  required_rubygems_version: !ruby/object:Gem::Requirement
817
840
  requirements:
818
- - - ">="
841
+ - - ">"
819
842
  - !ruby/object:Gem::Version
820
- version: '0'
843
+ version: 1.3.1
821
844
  requirements: []
822
- rubygems_version: 3.5.16
845
+ rubygems_version: 3.4.19
823
846
  signing_key:
824
847
  specification_version: 4
825
848
  summary: The Brightbox cloud management system
@@ -952,7 +975,6 @@ test_files:
952
975
  - spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml
953
976
  - spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml
954
977
  - spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml
955
- - spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml
956
978
  - spec/commands/accounts/default_spec.rb
957
979
  - spec/commands/accounts/list_spec.rb
958
980
  - spec/commands/accounts/show_spec.rb
@@ -1064,11 +1086,14 @@ test_files:
1064
1086
  - spec/support/vcr.rb
1065
1087
  - spec/support/volume_helpers.rb
1066
1088
  - spec/unit/brightbox/account/all_spec.rb
1089
+ - spec/unit/brightbox/account/attributes_spec.rb
1067
1090
  - spec/unit/brightbox/account/get_spec.rb
1068
1091
  - spec/unit/brightbox/account_spec.rb
1092
+ - spec/unit/brightbox/api/attributes_spec.rb
1069
1093
  - spec/unit/brightbox/api/conn_spec.rb
1070
1094
  - spec/unit/brightbox/api/created_on_spec.rb
1071
1095
  - spec/unit/brightbox/api/find_spec.rb
1096
+ - spec/unit/brightbox/api/fog_attributes_spec.rb
1072
1097
  - spec/unit/brightbox/api/fog_model_spec.rb
1073
1098
  - spec/unit/brightbox/api/klass_name_spec.rb
1074
1099
  - spec/unit/brightbox/api/method_missing_spec.rb
@@ -1104,8 +1129,10 @@ test_files:
1104
1129
  - spec/unit/brightbox/bb_config/update_stored_tokens_spec.rb
1105
1130
  - spec/unit/brightbox/bb_config/using_client_spec.rb
1106
1131
  - spec/unit/brightbox/bb_config_spec.rb
1132
+ - spec/unit/brightbox/cloud_ip/attributes_spec.rb
1107
1133
  - spec/unit/brightbox/cloud_ip/find_spec.rb
1108
1134
  - spec/unit/brightbox/cloud_ips_spec.rb
1135
+ - spec/unit/brightbox/collaborating_account/attributes_spec.rb
1109
1136
  - spec/unit/brightbox/collaborating_account/name_spec.rb
1110
1137
  - spec/unit/brightbox/collaborating_account/resource_type_spec.rb
1111
1138
  - spec/unit/brightbox/collaborating_account/role_spec.rb
@@ -1122,41 +1149,59 @@ test_files:
1122
1149
  - spec/unit/brightbox/config/user_application/valid_spec.rb
1123
1150
  - spec/unit/brightbox/config/user_application_spec.rb
1124
1151
  - spec/unit/brightbox/connection_manager/fetch_connection_spec.rb
1152
+ - spec/unit/brightbox/database_server/attributes_spec.rb
1125
1153
  - spec/unit/brightbox/database_server/clean_arguments_spec.rb
1126
1154
  - spec/unit/brightbox/database_server/cloud_ips_spec.rb
1127
1155
  - spec/unit/brightbox/database_server/maintenance_window_spec.rb
1128
1156
  - spec/unit/brightbox/database_server_spec.rb
1157
+ - spec/unit/brightbox/database_snapshot/attributes_spec.rb
1129
1158
  - spec/unit/brightbox/database_snapshot_spec.rb
1159
+ - spec/unit/brightbox/database_type/attributes_spec.rb
1130
1160
  - spec/unit/brightbox/database_type_spec.rb
1161
+ - spec/unit/brightbox/detailed_server/attributes_spec.rb
1162
+ - spec/unit/brightbox/detailed_server_group/attributes_spec.rb
1131
1163
  - spec/unit/brightbox/detailed_server_group_spec.rb
1132
1164
  - spec/unit/brightbox/detailed_server_spec.rb
1133
1165
  - spec/unit/brightbox/error_parser/pretty_print_spec.rb
1134
1166
  - spec/unit/brightbox/firewall_policy/apply_to_spec.rb
1167
+ - spec/unit/brightbox/firewall_policy/attributes_spec.rb
1135
1168
  - spec/unit/brightbox/firewall_policy/create_spec.rb
1136
1169
  - spec/unit/brightbox/firewall_policy/destroy_spec.rb
1137
1170
  - spec/unit/brightbox/firewall_policy/find_or_call_spec.rb
1138
1171
  - spec/unit/brightbox/firewall_policy/find_spec.rb
1139
1172
  - spec/unit/brightbox/firewall_policy_spec.rb
1173
+ - spec/unit/brightbox/firewall_rule/attributes_spec.rb
1140
1174
  - spec/unit/brightbox/firewall_rule/create_spec.rb
1141
1175
  - spec/unit/brightbox/firewall_rule/destroy_spec.rb
1142
1176
  - spec/unit/brightbox/firewall_rule/find_spec.rb
1143
1177
  - spec/unit/brightbox/firewall_rule/from_policy_spec.rb
1144
1178
  - spec/unit/brightbox/firewall_rule_spec.rb
1179
+ - spec/unit/brightbox/image/attributes_spec.rb
1180
+ - spec/unit/brightbox/image/status_spec.rb
1145
1181
  - spec/unit/brightbox/image_spec.rb
1146
1182
  - spec/unit/brightbox/legacy/args_adjuster_spec.rb
1183
+ - spec/unit/brightbox/load_balancer/acme_cert_spec.rb
1184
+ - spec/unit/brightbox/load_balancer/attributes_spec.rb
1185
+ - spec/unit/brightbox/load_balancer/formatted_acme_domains_spec.rb
1147
1186
  - spec/unit/brightbox/load_balancer_spec.rb
1187
+ - spec/unit/brightbox/server/attributes_spec.rb
1148
1188
  - spec/unit/brightbox/server/create_spec.rb
1149
1189
  - spec/unit/brightbox/server/destroy_spec.rb
1150
1190
  - spec/unit/brightbox/server/find_or_call_spec.rb
1151
1191
  - spec/unit/brightbox/server/find_spec.rb
1192
+ - spec/unit/brightbox/server/hostname_spec.rb
1152
1193
  - spec/unit/brightbox/server/shutdown_spec.rb
1153
1194
  - spec/unit/brightbox/server/start_spec.rb
1154
1195
  - spec/unit/brightbox/server/stop_spec.rb
1155
1196
  - spec/unit/brightbox/server/update_spec.rb
1197
+ - spec/unit/brightbox/server_group/attributes_spec.rb
1156
1198
  - spec/unit/brightbox/server_group/find_spec.rb
1157
1199
  - spec/unit/brightbox/server_group_spec.rb
1158
1200
  - spec/unit/brightbox/server_spec.rb
1201
+ - spec/unit/brightbox/type/attributes_spec.rb
1159
1202
  - spec/unit/brightbox/type_spec.rb
1203
+ - spec/unit/brightbox/user/attributes_spec.rb
1204
+ - spec/unit/brightbox/user_collaboration/attributes_spec.rb
1160
1205
  - spec/unit/brightbox/user_collaboration/get_for_account_spec.rb
1161
1206
  - spec/unit/brightbox/user_collaboration/remove_spec.rb
1162
1207
  - spec/unit/brightbox/user_collaboration_spec.rb
@@ -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