brightbox-cli 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +5 -2
- data/brightbox-cli.gemspec +1 -1
- data/lib/brightbox/cli/config.rb +19 -0
- data/lib/brightbox-cli/accounts.rb +2 -2
- data/lib/brightbox-cli/api.rb +4 -4
- data/lib/brightbox-cli/commands/accounts/default.rb +1 -1
- data/lib/brightbox-cli/commands/accounts/list.rb +1 -1
- data/lib/brightbox-cli/commands/config/client-add.rb +2 -2
- data/lib/brightbox-cli/commands/config/client-default.rb +3 -3
- data/lib/brightbox-cli/commands/config/client-list.rb +6 -6
- data/lib/brightbox-cli/commands/config/client-remove.rb +4 -4
- data/lib/brightbox-cli/commands/config/user-add.rb +2 -2
- data/lib/brightbox-cli/commands/login.rb +53 -0
- data/lib/brightbox-cli/config/accounts.rb +5 -0
- data/lib/brightbox-cli/config/authentication_tokens.rb +10 -3
- data/lib/brightbox-cli/config/cache.rb +8 -12
- data/lib/brightbox-cli/config/clients.rb +14 -38
- data/lib/brightbox-cli/config/sections.rb +70 -13
- data/lib/brightbox-cli/config/user_application.rb +13 -5
- data/lib/brightbox-cli/config.rb +22 -14
- data/lib/brightbox-cli/connection_manager.rb +2 -2
- data/lib/brightbox-cli/gli_global_hooks.rb +25 -28
- data/lib/brightbox-cli/version.rb +1 -1
- data/lib/brightbox_cli.rb +4 -0
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_false/does_not_update_the_config_file.yml +199 -0
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_true/does_not_update_the_config_file.yml +199 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/does_not_alter_the_configuration.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_access_token.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_refresh_token.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/does_not_alter_the_configuration.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_access_token.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_refresh_token.yml +99 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/does_not_alter_the_configuration.yml +149 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_access_token.yml +149 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_refresh_token.yml +149 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/creates_the_configuration.yml +101 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/refreshed_tokens.yml +101 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/creates_the_configuration.yml +101 -0
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/refreshed_tokens.yml +101 -0
- data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +64 -18
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +62 -16
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_error.yml +101 -0
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_prompt_to_rerun_the_command.yml +101 -0
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/prompts_for_the_password.yml +101 -0
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/requests_access_tokens.yml +101 -0
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/sets_up_the_config.yml +101 -0
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_error.yml +101 -0
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_prompt_to_rerun_the_command.yml +101 -0
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/prompts_for_the_password.yml +101 -0
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/requests_access_tokens.yml +101 -0
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/sets_up_the_config.yml +101 -0
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_error.yml +51 -0
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_prompt_to_rerun_the_command.yml +51 -0
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/prompts_for_the_password.yml +51 -0
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/requests_access_tokens.yml +51 -0
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/sets_up_the_config.yml +51 -0
- data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_error.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_prompt_to_rerun_the_command.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_config_is_present/requests_access_tokens.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_config_is_present/sets_up_the_config.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_error.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_prompt_to_rerun_the_command.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_password_is_given/prompts_for_the_password.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_password_is_given/requests_access_tokens.yml +101 -0
- data/spec/cassettes/brightbox_login/when_no_password_is_given/sets_up_the_config.yml +101 -0
- data/spec/commands/accounts/list_spec.rb +1 -0
- data/spec/commands/login_spec.rb +239 -0
- data/spec/configs/user_app.ini +0 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/support/config_helpers.rb +5 -0
- data/spec/unit/brightbox/account/all_spec.rb +1 -3
- data/spec/unit/brightbox/api/conn_spec.rb +3 -0
- data/spec/unit/brightbox/api/find_spec.rb +3 -0
- data/spec/unit/brightbox/bb_config/account_spec.rb +2 -0
- data/spec/unit/brightbox/bb_config/add_login_spec.rb +222 -0
- data/spec/unit/brightbox/bb_config/client_name_spec.rb +4 -12
- data/spec/unit/brightbox/bb_config/client_named_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/config_directory_exists_spec.rb +5 -2
- data/spec/unit/brightbox/bb_config/config_directory_spec.rb +4 -2
- data/spec/unit/brightbox/bb_config/config_spec.rb +4 -8
- data/spec/unit/brightbox/bb_config/default_account_spec.rb +10 -6
- data/spec/unit/brightbox/bb_config/find_or_set_default_account_spec.rb +2 -0
- data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +3 -0
- data/spec/unit/brightbox/bb_config/section_names_spec.rb +46 -0
- data/spec/unit/brightbox/bb_config/using_client_spec.rb +12 -12
- data/spec/unit/brightbox/bb_config_spec.rb +0 -1
- data/spec/unit/brightbox/cloud_ip/find_spec.rb +3 -0
- data/spec/unit/brightbox/config/user_application/to_fog_spec.rb +33 -29
- data/spec/unit/brightbox/config/user_application/valid_spec.rb +0 -32
- data/spec/unit/brightbox/connection_manager/fetch_connection_spec.rb +7 -3
- data/spec/unit/brightbox/firewall_policy/apply_to_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_policy/create_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_policy/find_or_call_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_policy/find_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_rule/create_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_rule/find_spec.rb +3 -0
- data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +3 -0
- data/spec/unit/brightbox/server/destroy_spec.rb +4 -0
- data/spec/unit/brightbox/server/find_or_call_spec.rb +3 -0
- data/spec/unit/brightbox/server/find_spec.rb +4 -0
- data/spec/unit/brightbox/server/shutdown_spec.rb +4 -0
- data/spec/unit/brightbox/server/start_spec.rb +4 -0
- data/spec/unit/brightbox/server/stop_spec.rb +4 -0
- data/spec/unit/brightbox/server/update_spec.rb +4 -0
- data/spec/unit/brightbox/server_group/find_spec.rb +3 -0
- data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +3 -0
- metadata +90 -3
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"2c8c8a9c75e455aadba195f637dd03b5"'
|
35
|
+
X-Request-Id:
|
36
|
+
- 85bf94b4475854b507ad53ea76e68c10
|
37
|
+
X-Runtime:
|
38
|
+
- '0.086533'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"d3d51356b662040aa9b0e4bf162409b4ea879aab","token_type":"Bearer","refresh_token":"7c72c3b5d05b61b21e9795919b236c1563496a40","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"7c72c3b5d05b61b21e9795919b236c1563496a40"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"3196dc26509b1f0f2d24a255c9351190"'
|
83
|
+
X-Request-Id:
|
84
|
+
- 462487ff1da08ce3f3aa79a9ad80d8b7
|
85
|
+
X-Runtime:
|
86
|
+
- '0.112980'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"9007643d343038066570caa040c929d19a9826e1","token_type":"Bearer","refresh_token":"a6403aaf3bc717aeadeae2f78bf8182bdd6e565e","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"c43da9a9c80ef59a8d02f590bd9f3a4c"'
|
35
|
+
X-Request-Id:
|
36
|
+
- a4db8c442ec6d60cf483004174488c76
|
37
|
+
X-Runtime:
|
38
|
+
- '0.088459'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"9aa043fa1343df86b7288c405d077674faf5943b","token_type":"Bearer","refresh_token":"4ce512422f6551fe7358aba6781c9c2270486805","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"4ce512422f6551fe7358aba6781c9c2270486805"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"0c6c13495dda671e1544894a7cb90d17"'
|
83
|
+
X-Request-Id:
|
84
|
+
- 2ecfd488a85a7ce94db14a6fe2f3ddd8
|
85
|
+
X-Runtime:
|
86
|
+
- '0.027900'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"2eea36047cea590f963d5ac76e6a73d8e62e9738","token_type":"Bearer","refresh_token":"34019e0aaf024580dd0e4c46f81113b39e191085","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"e3a730b016d8921bce663a9f76fd35e2"'
|
35
|
+
X-Request-Id:
|
36
|
+
- 918e8456edb69e1c822b7fc6e765f0a9
|
37
|
+
X-Runtime:
|
38
|
+
- '0.087545'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"7511af8bbea2b6f214fc358d9aef90f4b31702e3","token_type":"Bearer","refresh_token":"87ee62bc09a7fe69e96c8c07fd61c9c9019de180","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"87ee62bc09a7fe69e96c8c07fd61c9c9019de180"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"55ed6f75677bf4d114067ede68a3037e"'
|
83
|
+
X-Request-Id:
|
84
|
+
- 58f3a21952f2c8bbc3ea69495526ab0d
|
85
|
+
X-Runtime:
|
86
|
+
- '0.115984'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"fe0c22e0855f692a06bfdf712ec2508e2e5b1d24","token_type":"Bearer","refresh_token":"ea1a800fd63fec3b8ff2dc9b96837fe68a54a928","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"ceeca54433f782f74bc8b1c579e7534a"'
|
35
|
+
X-Request-Id:
|
36
|
+
- e48b1225e36360768214e968e2214d9f
|
37
|
+
X-Runtime:
|
38
|
+
- '0.086998'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:19 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"2a0dc3e96bb4c077b71425e5f20a7fe4323cb967","token_type":"Bearer","refresh_token":"581e7ac10e16b21a6375503509b55c183c6f52ce","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:19 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"581e7ac10e16b21a6375503509b55c183c6f52ce"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"0639b5e2dcc558804e536e8b61dc00f0"'
|
83
|
+
X-Request-Id:
|
84
|
+
- 8ad84f6e26844dbd42963a6f554a8833
|
85
|
+
X-Runtime:
|
86
|
+
- '0.029192'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:19 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"55e733e1e4f06bb8dcca957409b2ec4edeadba44","token_type":"Bearer","refresh_token":"27fb8e6765cd6987710d6044d9745ce735a5cb14","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:19 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"3344f6a760efbdffed86276ddb598d7d"'
|
35
|
+
X-Request-Id:
|
36
|
+
- 34396ff1215e9f3ea17728e36ed65215
|
37
|
+
X-Runtime:
|
38
|
+
- '0.090665'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:19 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"bd7acf61bdbad602e74951f62102cd0d61532277","token_type":"Bearer","refresh_token":"8a53a8103f3e90fc9b895f3afb34d875cba18c0b","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:19 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"8a53a8103f3e90fc9b895f3afb34d875cba18c0b"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"4fadaa56844504ec9395da0dd93cf3ca"'
|
83
|
+
X-Request-Id:
|
84
|
+
- afc83603da662336a240b76afea29326
|
85
|
+
X-Runtime:
|
86
|
+
- '0.112833'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"437d4e29c60acf9b2f08cff31bc384c48ae2d1a4","token_type":"Bearer","refresh_token":"25980c2a6eb9a834bb4d42ea16b902ef7dd3b651","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.brightbox.dev/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog-core/1.32.1
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
X-Oauth-Scopes:
|
26
|
+
- infrastructure, orbit
|
27
|
+
Content-Length:
|
28
|
+
- '190'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"1dbe6769e31cd2c7b0983d5d152b3a88"'
|
35
|
+
X-Request-Id:
|
36
|
+
- 15e23e2c255bad4655876f6bd4607bd8
|
37
|
+
X-Runtime:
|
38
|
+
- '0.088547'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"aa418baea89052f46b3a64e6f70808ee74ef3edb","token_type":"Bearer","refresh_token":"7576198c29eb4bef281c9c37d367dc93682c98d0","scope":"infrastructure,
|
48
|
+
orbit","expires_in":7200}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.brightbox.dev/token
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"grant_type":"refresh_token","refresh_token":"7576198c29eb4bef281c9c37d367dc93682c98d0"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- fog-core/1.32.1
|
60
|
+
Authorization:
|
61
|
+
- Basic YXBwLTIzNDU2OmhvMDRob25kdHpqamRmNA==
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Cache-Control:
|
72
|
+
- no-store
|
73
|
+
X-Oauth-Scopes:
|
74
|
+
- infrastructure, orbit
|
75
|
+
Content-Length:
|
76
|
+
- '190'
|
77
|
+
X-Content-Type-Options:
|
78
|
+
- nosniff
|
79
|
+
X-Ua-Compatible:
|
80
|
+
- IE=Edge
|
81
|
+
Etag:
|
82
|
+
- '"20b602f213eb4a58926abe79390ef4a1"'
|
83
|
+
X-Request-Id:
|
84
|
+
- ccbe521bfb7a364fe4c73c843674ebab
|
85
|
+
X-Runtime:
|
86
|
+
- '0.028544'
|
87
|
+
Server:
|
88
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2014-11-13)
|
89
|
+
Date:
|
90
|
+
- Mon, 12 Oct 2015 11:34:20 GMT
|
91
|
+
Connection:
|
92
|
+
- Keep-Alive
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"access_token":"c050b5cf9e9dceb65892a7d492518cfb0ff0e912","token_type":"Bearer","refresh_token":"7b88a20eb4a1e5efb66daa809202ccca4a6b0dc1","scope":"infrastructure,
|
96
|
+
orbit","expires_in":7200}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 12 Oct 2015 11:34:20 GMT
|
99
|
+
recorded_with: VCR 2.5.0
|