brightbox-cli 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/Gemfile.lock +1 -1
  2. data/Rakefile +0 -6
  3. data/lib/brightbox-cli/commands/accounts-accept-invite.rb +1 -0
  4. data/lib/brightbox-cli/commands/accounts-default.rb +1 -1
  5. data/lib/brightbox-cli/gli_global_hooks.rb +2 -1
  6. data/lib/brightbox-cli/version.rb +1 -1
  7. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +258 -193
  8. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +258 -195
  9. data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +153 -0
  10. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +229 -160
  11. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +229 -162
  12. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +229 -162
  13. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +229 -162
  14. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +229 -162
  15. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +229 -162
  16. data/spec/commands/accounts/list_spec.rb +1 -1
  17. data/spec/commands/config/user_add_spec.rb +1 -1
  18. data/spec/spec_helper.rb +4 -0
  19. data/spec/support/vcr.rb +2 -2
  20. data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
  21. data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +1 -1
  22. data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
  23. data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
  24. data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
  25. data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
  26. data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
  27. data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
  28. data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
  29. data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
  30. data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
  31. data/spec/unit/brightbox/server/start_spec.rb +1 -1
  32. data/spec/unit/brightbox/server/stop_spec.rb +1 -1
  33. data/spec/unit/brightbox/server/update_spec.rb +1 -1
  34. data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
  35. metadata +5 -4
  36. data/lib/brightbox-cli/command_generator.rb +0 -53
@@ -1,219 +1,286 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
4
5
  method: post
5
6
  uri: http://api.brightbox.dev/token
6
- body:
7
- encoding: UTF-8
8
- string: '{"grant_type":"none","client_id":"cli-12345"}'
9
- headers:
10
- User-Agent:
7
+ body:
8
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
9
+ headers:
10
+ User-Agent:
11
11
  - fog/1.15.0
12
- Authorization:
13
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
14
- Content-Type:
12
+ Content-Type:
15
13
  - application/json
16
- response:
17
- status:
14
+ Authorization:
15
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message:
20
- headers:
21
- X-Frame-Options:
20
+ headers:
21
+ X-Frame-Options:
22
22
  - sameorigin
23
- X-XSS-Protection:
24
- - 1; mode=block
25
- Content-Type:
26
- - application/json;charset=utf-8
27
- Cache-Control:
28
- - no-store
29
- Content-Length:
30
- - '77'
31
- X-UA-Compatible:
23
+ Date:
24
+ - Fri, 06 Sep 2013 15:58:58 GMT
25
+ X-UA-Compatible:
32
26
  - IE=Edge
33
- ETag:
34
- - '"430906f14dbb1d6e1227c369fbbc9f05"'
35
- X-Request-Id:
27
+ X-Request-Id:
36
28
  - 8c2cd78990e554ee6df5b57df9f3babf
37
- X-Runtime:
38
- - '0.237022'
39
- Date:
40
- - Fri, 06 Sep 2013 15:58:58 GMT
41
- Connection:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ X-Runtime:
32
+ - "0.237022"
33
+ Content-Length:
34
+ - "77"
35
+ ETag:
36
+ - "\"430906f14dbb1d6e1227c369fbbc9f05\""
37
+ X-XSS-Protection:
38
+ - 1; mode=block
39
+ Connection:
42
40
  - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"access_token":"67e22969d707ebaf5590272b5e64dc4ed9b31fdd","expires_in":7200}'
41
+ Cache-Control:
42
+ - no-store
43
+ body:
44
+ string: "{\"access_token\":\"67e22969d707ebaf5590272b5e64dc4ed9b31fdd\",\"expires_in\":7200}"
46
45
  http_version:
47
46
  recorded_at: Fri, 06 Sep 2013 15:58:58 GMT
48
- - request:
47
+ - request:
49
48
  method: get
50
49
  uri: http://api.brightbox.dev/1.0/account
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- User-Agent:
50
+ body:
51
+ string: ""
52
+ headers:
53
+ User-Agent:
56
54
  - fog/1.15.0
57
- Authorization:
58
- - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
- Content-Type:
55
+ Content-Type:
60
56
  - application/json
61
- response:
62
- status:
57
+ Authorization:
58
+ - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
+ response:
60
+ status:
63
61
  code: 200
64
62
  message:
65
- headers:
66
- Content-Type:
67
- - application/json; charset=utf-8
68
- X-UA-Compatible:
63
+ headers:
64
+ Date:
65
+ - Fri, 06 Sep 2013 15:58:58 GMT
66
+ X-UA-Compatible:
69
67
  - IE=Edge
70
- ETag:
71
- - '"a9e93d5f3268805675b0c5c935311a85"'
72
- Cache-Control:
73
- - max-age=0, private, must-revalidate
74
- X-Request-Id:
68
+ X-Request-Id:
75
69
  - b4edcfd134f91075932a85564772e730
76
- X-Runtime:
77
- - '0.116152'
78
- Date:
79
- - Fri, 06 Sep 2013 15:58:58 GMT
80
- Connection:
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ X-Runtime:
73
+ - "0.116152"
74
+ ETag:
75
+ - "\"a9e93d5f3268805675b0c5c935311a85\""
76
+ Connection:
81
77
  - close
82
- body:
83
- encoding: UTF-8
84
- string: '{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Aurnqfvgsbeyiprni","status":"active","address_1":"Kaycee
85
- Throughway","address_2":"","city":"South Hellenport","county":"","postcode":"60364-9886","country_code":"GB","country_name":"United
86
- Kingdom","vat_registration_number":"","telephone_number":"+444238318140","telephone_verified":false,"verified_telephone":null,"verified_at":null,"verified_ip":null,"created_at":"2013-09-04T07:53:13Z","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"valid_credit_card":false,"library_ftp_host":"ftp.library.gb1.brightbox.com","library_ftp_user":"acc-12345","library_ftp_password":null,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"56.67.59.219","reverse_dns":"cip-12345-67-59-219.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
87
- new servers are added to this group unless specified otherwise.","created_at":"2013-09-04T07:53:13Z","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-04T07:53:14Z","description":"Applied
88
- to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Dylan
89
- Fay DDS","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"}]}'
78
+ Cache-Control:
79
+ - max-age=0, private, must-revalidate
80
+ body:
81
+ string: "{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Aurnqfvgsbeyiprni\",\"status\":\"active\",\"address_1\":\"Kaycee Throughway\",\"address_2\":\"\",\"city\":\"South Hellenport\",\"county\":\"\",\"postcode\":\"60364-9886\",\"country_code\":\"GB\",\"country_name\":\"United Kingdom\",\"vat_registration_number\":\"\",\"telephone_number\":\"+444238318140\",\"telephone_verified\":false,\"verified_telephone\":null,\"verified_at\":null,\"verified_ip\":null,\"created_at\":\"2013-09-04T07:53:13Z\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"valid_credit_card\":false,\"library_ftp_host\":\"ftp.library.gb1.brightbox.com\",\"library_ftp_user\":\"acc-12345\",\"library_ftp_password\":null,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"56.67.59.219\",\"reverse_dns\":\"cip-12345-67-59-219.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All new servers are added to this group unless specified otherwise.\",\"created_at\":\"2013-09-04T07:53:13Z\",\"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-04T07:53:14Z\",\"description\":\"Applied to the default server group.\"}],\"owner\":{\"id\":\"usr-12345\",\"resource_type\":\"user\",\"url\":\"https://api.gb1.brightbox.com/1.0/users/usr-12345\",\"name\":\"Dylan Fay DDS\",\"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\"}]}"
90
82
  http_version:
91
83
  recorded_at: Fri, 06 Sep 2013 15:58:58 GMT
92
- - request:
84
+ - request:
93
85
  method: get
94
86
  uri: http://api.brightbox.dev/1.0/accounts
95
- body:
96
- encoding: US-ASCII
97
- string: ''
98
- headers:
99
- User-Agent:
87
+ body:
88
+ string: ""
89
+ headers:
90
+ User-Agent:
100
91
  - fog/1.15.0
101
- Authorization:
102
- - OAuth 67e22969d707ebaf5590272b5e64dc4ed9b31fdd
103
- Content-Type:
92
+ Content-Type:
104
93
  - application/json
105
- response:
106
- status:
94
+ Authorization:
95
+ - OAuth 67e22969d707ebaf5590272b5e64dc4ed9b31fdd
96
+ response:
97
+ status:
107
98
  code: 401
108
99
  message:
109
- headers:
110
- WWW-Authenticate:
111
- - OAuth error="invalid_token"
112
- Content-Type:
113
- - application/json; charset=utf-8
114
- X-UA-Compatible:
100
+ headers:
101
+ Date:
102
+ - Tue, 17 Sep 2013 17:07:36 GMT
103
+ X-UA-Compatible:
115
104
  - IE=Edge
116
- Cache-Control:
117
- - no-cache
118
- X-Request-Id:
105
+ X-Request-Id:
119
106
  - 14082450ec1ec70923bc9c91e9adce53
120
- X-Runtime:
121
- - '0.017801'
122
- Date:
123
- - Tue, 17 Sep 2013 17:07:36 GMT
124
- Connection:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Runtime:
110
+ - "0.017801"
111
+ WWW-Authenticate:
112
+ - OAuth error="invalid_token"
113
+ Connection:
125
114
  - close
126
- body:
127
- encoding: UTF-8
128
- string: '{"error":"invalid_token","error_description":"The OAuth token can not
129
- be found"}'
115
+ Cache-Control:
116
+ - no-cache
117
+ body:
118
+ string: "{\"error\":\"invalid_token\",\"error_description\":\"The OAuth token can not be found\"}"
130
119
  http_version:
131
120
  recorded_at: Tue, 17 Sep 2013 17:07:36 GMT
132
- - request:
121
+ - request:
133
122
  method: post
134
123
  uri: http://api.brightbox.dev/token
135
- body:
136
- encoding: UTF-8
137
- string: '{"grant_type":"none","client_id":"cli-12345"}'
138
- headers:
139
- User-Agent:
124
+ body:
125
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
126
+ headers:
127
+ User-Agent:
140
128
  - fog/1.15.0
141
- Authorization:
142
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
143
- Content-Type:
129
+ Content-Type:
144
130
  - application/json
145
- response:
146
- status:
131
+ Authorization:
132
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
133
+ response:
134
+ status:
147
135
  code: 200
148
136
  message:
149
- headers:
150
- X-Frame-Options:
137
+ headers:
138
+ X-Frame-Options:
151
139
  - sameorigin
152
- X-XSS-Protection:
153
- - 1; mode=block
154
- Content-Type:
155
- - application/json;charset=utf-8
156
- Cache-Control:
157
- - no-store
158
- Content-Length:
159
- - '77'
160
- X-UA-Compatible:
140
+ Date:
141
+ - Tue, 17 Sep 2013 17:07:36 GMT
142
+ X-UA-Compatible:
161
143
  - IE=Edge
162
- ETag:
163
- - '"c0dd0bb66771d924e5b9d845a8f5b6a4"'
164
- X-Request-Id:
144
+ X-Request-Id:
165
145
  - b7a48ca0b5632951eaf7464ca0698b08
166
- X-Runtime:
167
- - '0.111296'
168
- Date:
169
- - Tue, 17 Sep 2013 17:07:36 GMT
170
- Connection:
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ X-Runtime:
149
+ - "0.111296"
150
+ Content-Length:
151
+ - "77"
152
+ ETag:
153
+ - "\"c0dd0bb66771d924e5b9d845a8f5b6a4\""
154
+ X-XSS-Protection:
155
+ - 1; mode=block
156
+ Connection:
171
157
  - keep-alive
172
- body:
173
- encoding: UTF-8
174
- string: '{"access_token":"316f5c33ab293daeb01b759fa32fe758ef1cccc0","expires_in":7200}'
158
+ Cache-Control:
159
+ - no-store
160
+ body:
161
+ string: "{\"access_token\":\"316f5c33ab293daeb01b759fa32fe758ef1cccc0\",\"expires_in\":7200}"
175
162
  http_version:
176
163
  recorded_at: Tue, 17 Sep 2013 17:07:36 GMT
177
- - request:
164
+ - request:
178
165
  method: get
179
166
  uri: http://api.brightbox.dev/1.0/accounts
180
- body:
181
- encoding: US-ASCII
182
- string: ''
183
- headers:
184
- User-Agent:
167
+ body:
168
+ string: ""
169
+ headers:
170
+ User-Agent:
185
171
  - fog/1.15.0
186
- Authorization:
187
- - OAuth 316f5c33ab293daeb01b759fa32fe758ef1cccc0
188
- Content-Type:
172
+ Content-Type:
189
173
  - application/json
190
- response:
191
- status:
174
+ Authorization:
175
+ - OAuth 316f5c33ab293daeb01b759fa32fe758ef1cccc0
176
+ response:
177
+ status:
192
178
  code: 200
193
179
  message:
194
- headers:
195
- Content-Type:
196
- - application/json; charset=utf-8
197
- X-UA-Compatible:
180
+ headers:
181
+ Date:
182
+ - Tue, 17 Sep 2013 17:07:37 GMT
183
+ X-UA-Compatible:
198
184
  - IE=Edge
199
- ETag:
200
- - '"7d4ad7857ea408897b8a2149197611ba"'
201
- Cache-Control:
202
- - max-age=0, private, must-revalidate
203
- X-Request-Id:
185
+ X-Request-Id:
204
186
  - 7f4fd962f1dc00a3b1bfdd6e4d81a36f
205
- X-Runtime:
206
- - '0.255430'
207
- Date:
208
- - Tue, 17 Sep 2013 17:07:37 GMT
209
- Connection:
187
+ Content-Type:
188
+ - application/json; charset=utf-8
189
+ X-Runtime:
190
+ - "0.255430"
191
+ ETag:
192
+ - "\"7d4ad7857ea408897b8a2149197611ba\""
193
+ Connection:
210
194
  - close
211
- body:
212
- encoding: UTF-8
213
- string: '[{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Asaibdsjnpdgrdcqo","status":"active","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"153.37.92.121","reverse_dns":"cip-12345-37-92-121.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
214
- 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
215
- 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
216
- 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"}]}]'
195
+ Cache-Control:
196
+ - max-age=0, private, must-revalidate
197
+ body:
198
+ string: "[{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Asaibdsjnpdgrdcqo\",\"status\":\"active\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"153.37.92.121\",\"reverse_dns\":\"cip-12345-37-92-121.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All 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 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 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\"}]}]"
217
199
  http_version:
218
200
  recorded_at: Tue, 17 Sep 2013 17:07:37 GMT
219
- recorded_with: VCR 2.5.0
201
+ - request:
202
+ method: post
203
+ uri: http://api.brightbox.dev/token
204
+ body:
205
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
206
+ headers:
207
+ User-Agent:
208
+ - fog/1.15.0
209
+ Content-Type:
210
+ - application/json
211
+ Authorization:
212
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
213
+ response:
214
+ status:
215
+ code: 200
216
+ message:
217
+ headers:
218
+ X-Frame-Options:
219
+ - sameorigin
220
+ Date:
221
+ - Fri, 27 Sep 2013 15:26:08 GMT
222
+ X-UA-Compatible:
223
+ - IE=Edge
224
+ X-Request-Id:
225
+ - 80c5f7718095bc829861e5efe3c22e10
226
+ Content-Type:
227
+ - application/json;charset=utf-8
228
+ X-Runtime:
229
+ - "0.113466"
230
+ Content-Length:
231
+ - "77"
232
+ ETag:
233
+ - "\"bf41904d7ce116b70d2eb58dd2e2e209\""
234
+ X-XSS-Protection:
235
+ - 1; mode=block
236
+ Connection:
237
+ - keep-alive
238
+ Cache-Control:
239
+ - no-store
240
+ body:
241
+ string: "{\"access_token\":\"f6fd5a480ae3cef0e20bfaad9f7eb1ea64ee35fc\",\"expires_in\":7200}"
242
+ http_version:
243
+ recorded_at: Fri, 27 Sep 2013 15:26:08 GMT
244
+ - request:
245
+ method: post
246
+ uri: http://api.brightbox.dev/token
247
+ body:
248
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
249
+ headers:
250
+ User-Agent:
251
+ - fog/1.15.0
252
+ Content-Type:
253
+ - application/json
254
+ Authorization:
255
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
256
+ response:
257
+ status:
258
+ code: 200
259
+ message:
260
+ headers:
261
+ X-Frame-Options:
262
+ - sameorigin
263
+ Date:
264
+ - Fri, 27 Sep 2013 15:26:08 GMT
265
+ X-UA-Compatible:
266
+ - IE=Edge
267
+ X-Request-Id:
268
+ - 466539ee260d6d6410afaccca016594b
269
+ Content-Type:
270
+ - application/json;charset=utf-8
271
+ X-Runtime:
272
+ - "0.116505"
273
+ Content-Length:
274
+ - "77"
275
+ ETag:
276
+ - "\"2be0e2e1cff2d86cf1808efa13cb7a6d\""
277
+ X-XSS-Protection:
278
+ - 1; mode=block
279
+ Connection:
280
+ - keep-alive
281
+ Cache-Control:
282
+ - no-store
283
+ body:
284
+ string: "{\"access_token\":\"ca1342a7d900f917c9f55e1f3bb8cd2f52f09ec3\",\"expires_in\":7200}"
285
+ http_version:
286
+ recorded_at: Fri, 27 Sep 2013 15:26:08 GMT
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  describe "brightbox accounts" do
4
4
 
5
- describe "list" do
5
+ describe "list", :broken_1_8 do
6
6
  let(:output) { FauxIO.new { Brightbox::run(argv) } }
7
7
  let(:stdout) { output.stdout }
8
8
  let(:stderr) { output.stderr }