brightbox-cli 2.1.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile.lock +7 -6
  4. data/brightbox-cli.gemspec +2 -1
  5. data/lib/brightbox-cli/config/clients.rb +1 -1
  6. data/lib/brightbox-cli/gli_global_hooks.rb +3 -1
  7. data/lib/brightbox-cli/images.rb +1 -1
  8. data/lib/brightbox-cli/version.rb +1 -1
  9. data/lib/brightbox_cli.rb +1 -1
  10. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +3 -3
  11. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +1 -1
  12. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +2 -2
  13. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +1 -1
  14. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +1 -1
  15. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +1 -1
  16. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +1 -1
  17. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +5 -5
  18. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +5 -5
  19. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +1 -1
  20. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +1 -1
  21. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +2 -2
  22. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +1 -1
  23. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +1 -1
  24. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +1 -1
  25. data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +7 -7
  26. data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +6 -6
  27. data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +6 -6
  28. data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +7 -7
  29. data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +6 -6
  30. data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +5 -5
  31. data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +6 -6
  32. data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +5 -5
  33. data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +6 -6
  34. data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +8 -8
  35. data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +5 -5
  36. data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +7 -7
  37. data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +8 -8
  38. data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +8 -8
  39. data/spec/cassettes/Brightbox_Server/_start/should_work.yml +11 -11
  40. data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +8 -8
  41. data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +10 -10
  42. data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +6 -6
  43. data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +1 -1
  44. data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +7 -7
  45. data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +7 -7
  46. data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +7 -7
  47. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +6 -6
  48. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +5 -5
  49. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +5 -5
  50. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +4 -4
  51. data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +2 -2
  52. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +6 -6
  53. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +3 -3
  54. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +4 -4
  55. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +4 -4
  56. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +4 -4
  57. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +4 -4
  58. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +4 -4
  59. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +4 -4
  60. data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +3 -3
  61. data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +1 -1
  62. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +1 -1
  63. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +1 -1
  64. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +1 -1
  65. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +1 -1
  66. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/selects_the_active_account_for_the_default.yml +1 -1
  67. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +1 -1
  68. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +1 -1
  69. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +1 -1
  70. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +1 -1
  71. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +1 -1
  72. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_prompt_to_rerun_the_command.yml +1 -1
  73. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +1 -1
  74. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +1 -1
  75. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +3 -3
  76. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +1 -1
  77. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +1 -1
  78. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +1 -1
  79. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +2 -2
  80. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +1 -1
  81. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +1 -1
  82. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +1 -1
  83. data/spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +1 -1
  84. data/spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +1 -1
  85. data/spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml +1 -1
  86. data/spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +1 -1
  87. data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml +1 -1
  88. data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml +1 -1
  89. data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +2 -2
  90. data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +1 -1
  91. data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +1 -1
  92. data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +1 -1
  93. data/spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +1 -1
  94. data/spec/commands/accounts/list_spec.rb +6 -6
  95. data/spec/commands/cloudips/map_spec.rb +2 -2
  96. data/spec/commands/config/client_add_spec.rb +3 -3
  97. data/spec/commands/config/user_add_spec.rb +8 -8
  98. data/spec/commands/firewall_policies/update_spec.rb +5 -5
  99. data/spec/commands/sql/instances/create_spec.rb +5 -5
  100. data/spec/commands/sql/instances/snapshot_spec.rb +2 -2
  101. data/spec/commands/sql/snapshots/list_spec.rb +1 -1
  102. data/spec/commands/sql/snapshots/show_spec.rb +1 -1
  103. data/spec/spec_helper.rb +1 -4
  104. data/spec/support/vcr.rb +0 -4
  105. data/spec/unit/brightbox/account/all_spec.rb +2 -2
  106. data/spec/unit/brightbox/account/get_spec.rb +5 -5
  107. data/spec/unit/brightbox/api/conn_spec.rb +1 -1
  108. data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
  109. data/spec/unit/brightbox/bb_config/find_or_set_default_account_spec.rb +3 -3
  110. data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +5 -5
  111. data/spec/unit/brightbox/cloud_ip/find_spec.rb +1 -1
  112. data/spec/unit/brightbox/config/api_client/to_fog_spec.rb +3 -3
  113. data/spec/unit/brightbox/config/user_application/to_fog_spec.rb +4 -4
  114. data/spec/unit/brightbox/firewall_policy/apply_to_spec.rb +1 -1
  115. data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
  116. data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
  117. data/spec/unit/brightbox/firewall_policy/find_or_call_spec.rb +1 -1
  118. data/spec/unit/brightbox/firewall_policy/find_spec.rb +2 -2
  119. data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
  120. data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
  121. data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
  122. data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
  123. data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
  124. data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
  125. data/spec/unit/brightbox/server/find_spec.rb +1 -1
  126. data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
  127. data/spec/unit/brightbox/server/start_spec.rb +1 -1
  128. data/spec/unit/brightbox/server/stop_spec.rb +1 -1
  129. data/spec/unit/brightbox/server/update_spec.rb +1 -1
  130. data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
  131. data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +4 -4
  132. metadata +19 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e414299f5428a8989b0b711f4085732e883b739
4
- data.tar.gz: 372b1ddf4b22fe727ded09adb9e518307f803079
3
+ metadata.gz: 34feccb6a89c40ab981c31b408d896606d548abd
4
+ data.tar.gz: a58a457c767e64ade86c3283e7313f8a76ba1445
5
5
  SHA512:
6
- metadata.gz: 2d55325e1321e941667a802991494ba2f9e0c3946caa82a89f4decaf54d8395d9c8b516208f2ef2b1f9a786d383c489d9a2acac3cfe1f5f094243a85051b223d
7
- data.tar.gz: 369a121630bde46a3fcd2966c4b2d3d6a22a74aa7d19b5ccb81818dbdb9468a99e3042ef8e80ad45142e3021dd1645b8642ecfa5226316f4d0d30b05f070de3e
6
+ metadata.gz: dd53e4d8ec2d68ad698290ba23a4ca89605a4e17b5af26db4a6f9208362304f68977e144f647ab824b28484b69caea3d88e5fd73da28656054e4a8d232f0859f
7
+ data.tar.gz: a50b5c409d4b938708b3c2ad29219675f054396cbfaf4175f5019523668cf0ef7bc5175eaafffabb21508c291273990c6cdd6850cd8c89abbcc5e3cd77a17d0a
@@ -1,3 +1,24 @@
1
+ ### v2.2.0 / 2015-09-28
2
+
3
+ [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.1.2...v2.2.0)
4
+
5
+ Enhancements:
6
+
7
+ * Add `BRIGHTBOX_API_URL` ENV for running against alternative endpoints.
8
+
9
+ Bug fixes:
10
+
11
+ * Specify some expected errors to avoid specs passing when new errors
12
+ introduced.
13
+ * Fix image list sorting using "status" field.
14
+ * Handle error when `$config` is nil
15
+
16
+ Changes:
17
+
18
+ * Update to use `fog-brightbox v0.9.0`
19
+ * Remove 1.8.7 testing references.
20
+ * Declare `net-ssh` dependency as < 3.0 for Ruby 1.9.3 compatibility.
21
+
1
22
  ### v2.1.2 / 2015-07-18
2
23
 
3
24
  [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.1.1...v2.1.2)
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.1.2)
5
- fog-brightbox (>= 0.8.0)
4
+ brightbox-cli (2.2.0)
5
+ fog-brightbox (>= 0.9.0)
6
6
  gli (~> 2.12.0)
7
7
  highline (~> 1.6.0)
8
8
  hirb (~> 0.6)
9
9
  i18n (~> 0.6.0)
10
10
  multi_json (~> 1.11.0)
11
+ net-ssh (< 3.0)
11
12
 
12
13
  GEM
13
14
  remote: https://rubygems.org/
@@ -16,11 +17,11 @@ GEM
16
17
  coderay (1.0.9)
17
18
  diff-lcs (1.2.5)
18
19
  excon (0.45.4)
19
- fog-brightbox (0.8.0)
20
+ fog-brightbox (0.9.0)
20
21
  fog-core (~> 1.22)
21
22
  fog-json
22
23
  inflecto (~> 0.0.2)
23
- fog-core (1.32.0)
24
+ fog-core (1.32.1)
24
25
  builder
25
26
  excon (~> 0.45)
26
27
  formatador (~> 0.2)
@@ -38,7 +39,7 @@ GEM
38
39
  inflecto (0.0.2)
39
40
  metaclass (0.0.1)
40
41
  method_source (0.8.1)
41
- mime-types (2.6.1)
42
+ mime-types (2.6.2)
42
43
  mocha (0.14.0)
43
44
  metaclass (~> 0.0.1)
44
45
  multi_json (1.11.2)
@@ -73,4 +74,4 @@ DEPENDENCIES
73
74
  vcr (~> 2.5)
74
75
 
75
76
  BUNDLED WITH
76
- 1.10.2
77
+ 1.10.6
@@ -21,10 +21,11 @@ Gem::Specification.new do |s|
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency "fog-brightbox", ">= 0.8.0"
24
+ s.add_dependency "fog-brightbox", ">= 0.9.0"
25
25
  s.add_dependency "gli", "~> 2.12.0"
26
26
  s.add_dependency "i18n", "~> 0.6.0"
27
27
  s.add_dependency "multi_json", "~> 1.11.0"
28
+ s.add_dependency "net-ssh", "< 3.0"
28
29
  s.add_dependency "highline", "~> 1.6.0"
29
30
  s.add_dependency "hirb", "~> 0.6"
30
31
 
@@ -41,7 +41,7 @@ module Brightbox
41
41
  # raises an error because it is ambiguous which to use.
42
42
  #
43
43
  # If +force_default_config+ is passed in as false (for +config+ commands)
44
- # then it attempts to use the first config but this becomes random on 1.8.7
44
+ # then it attempts to use the first config
45
45
  #
46
46
  # Calling +client_name+ within the +config+ command will break the config
47
47
  # command because you can no longer manage your config (and set a default)
@@ -122,7 +122,9 @@ module Brightbox
122
122
  debug e.class.to_s
123
123
  debug e.backtrace.join("\n")
124
124
  end
125
- $config.debug_tokens
125
+ if $config
126
+ $config.debug_tokens
127
+ end
126
128
  exit(1)
127
129
  end
128
130
  end
@@ -98,7 +98,7 @@ module Brightbox
98
98
  end
99
99
 
100
100
  def status_sort_code
101
- case status
101
+ case fog_model.attributes[:status]
102
102
  when 'available'
103
103
  (public? ? 1 : 2)
104
104
  when 'deprecated'
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.1.2" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.2.0" unless defined?(Brightbox::VERSION)
3
3
  end
@@ -32,7 +32,7 @@ I18n.default_locale = :en
32
32
  I18n.load_path = [File.join(File.dirname(__FILE__) + "/../locales/en.yml")]
33
33
 
34
34
  module Brightbox
35
- DEFAULT_API_ENDPOINT = "https://api.gb1.brightbox.com"
35
+ DEFAULT_API_ENDPOINT = ENV["BRIGHTBOX_API_URL"] || "https://api.gb1.brightbox.com"
36
36
 
37
37
  autoload :Server, File.expand_path("../brightbox-cli/servers", __FILE__)
38
38
  autoload :DetailedServer, File.expand_path("../brightbox-cli/detailed_server", __FILE__)
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"none","client_id":"cli-12345"}'
8
+ string: '{"grant_type":"client_credentials"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -136,7 +136,7 @@ http_interactions:
136
136
  uri: http://api.brightbox.dev/token
137
137
  body:
138
138
  encoding: UTF-8
139
- string: '{"grant_type":"none","client_id":"app-12345"}'
139
+ string: '{"grant_type":"client_credentials"}'
140
140
  headers:
141
141
  User-Agent:
142
142
  - fog/1.15.0
@@ -180,7 +180,7 @@ http_interactions:
180
180
  uri: http://api.brightbox.dev/token
181
181
  body:
182
182
  encoding: UTF-8
183
- string: '{"grant_type":"none","client_id":"app-12345"}'
183
+ string: '{"grant_type":"client_credentials"}'
184
184
  headers:
185
185
  User-Agent:
186
186
  - fog/1.15.0
@@ -48,7 +48,7 @@ http_interactions:
48
48
  uri: http://api.brightbox.dev/token
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"grant_type":"none","client_id":"app-12345"}'
51
+ string: '{"grant_type":"client_credentials"}'
52
52
  headers:
53
53
  User-Agent:
54
54
  - fog/1.15.0
@@ -95,7 +95,7 @@ http_interactions:
95
95
  uri: http://api.brightbox.dev/token
96
96
  body:
97
97
  encoding: UTF-8
98
- string: '{"grant_type":"none","client_id":"app-12345"}'
98
+ string: '{"grant_type":"client_credentials"}'
99
99
  headers:
100
100
  User-Agent:
101
101
  - fog/1.15.0
@@ -139,7 +139,7 @@ http_interactions:
139
139
  uri: http://api.brightbox.dev/token
140
140
  body:
141
141
  encoding: UTF-8
142
- string: '{"grant_type":"none","client_id":"app-12345"}'
142
+ string: '{"grant_type":"client_credentials"}'
143
143
  headers:
144
144
  User-Agent:
145
145
  - fog/1.15.0
@@ -50,7 +50,7 @@ http_interactions:
50
50
  uri: http://api.brightbox.dev/token
51
51
  body:
52
52
  encoding: UTF-8
53
- string: '{"grant_type":"none","client_id":"app-12345"}'
53
+ string: '{"grant_type":"client_credentials"}'
54
54
  headers:
55
55
  User-Agent:
56
56
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  method: post
43
43
  uri: http://api.brightbox.dev/token
44
44
  body:
45
- string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
45
+ string: "{\"grant_type\":\"client_credentials\"}"
46
46
  headers:
47
47
  User-Agent:
48
48
  - fog/1.15.0
@@ -83,7 +83,7 @@ http_interactions:
83
83
  method: post
84
84
  uri: http://api.brightbox.dev/token
85
85
  body:
86
- string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
86
+ string: "{\"grant_type\":\"client_credentials\"}"
87
87
  headers:
88
88
  User-Agent:
89
89
  - fog/1.15.0
@@ -163,7 +163,7 @@ http_interactions:
163
163
  method: post
164
164
  uri: http://api.brightbox.dev/token
165
165
  body:
166
- string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
166
+ string: "{\"grant_type\":\"client_credentials\"}"
167
167
  headers:
168
168
  User-Agent:
169
169
  - fog/1.15.0
@@ -243,7 +243,7 @@ http_interactions:
243
243
  method: post
244
244
  uri: http://api.brightbox.dev/token
245
245
  body:
246
- string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
246
+ string: "{\"grant_type\":\"client_credentials\"}"
247
247
  headers:
248
248
  User-Agent:
249
249
  - fog/1.15.0
@@ -286,7 +286,7 @@ http_interactions:
286
286
  method: post
287
287
  uri: http://api.brightbox.dev/token
288
288
  body:
289
- string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
289
+ string: "{\"grant_type\":\"client_credentials\"}"
290
290
  headers:
291
291
  User-Agent:
292
292
  - fog/1.15.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  method: post
43
43
  uri: http://api.brightbox.dev/token
44
44
  body:
45
- string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
45
+ string: "{\"grant_type\":\"client_credentials\"}"
46
46
  headers:
47
47
  User-Agent:
48
48
  - fog/1.15.0
@@ -83,7 +83,7 @@ http_interactions:
83
83
  method: post
84
84
  uri: http://api.brightbox.dev/token
85
85
  body:
86
- string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
86
+ string: "{\"grant_type\":\"client_credentials\"}"
87
87
  headers:
88
88
  User-Agent:
89
89
  - fog/1.15.0
@@ -163,7 +163,7 @@ http_interactions:
163
163
  method: post
164
164
  uri: http://api.brightbox.dev/token
165
165
  body:
166
- string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
166
+ string: "{\"grant_type\":\"client_credentials\"}"
167
167
  headers:
168
168
  User-Agent:
169
169
  - fog/1.15.0
@@ -243,7 +243,7 @@ http_interactions:
243
243
  method: post
244
244
  uri: http://api.brightbox.dev/token
245
245
  body:
246
- string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
246
+ string: "{\"grant_type\":\"client_credentials\"}"
247
247
  headers:
248
248
  User-Agent:
249
249
  - fog/1.15.0
@@ -286,7 +286,7 @@ http_interactions:
286
286
  method: post
287
287
  uri: http://api.brightbox.dev/token
288
288
  body:
289
- string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
289
+ string: "{\"grant_type\":\"client_credentials\"}"
290
290
  headers:
291
291
  User-Agent:
292
292
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"refresh_token","client_id":"app-12345","refresh_token":"aeed54b3487019931b04010b0b39715eb4e729e8"}'
8
+ string: '{"grant_type":"refresh_token","refresh_token":"aeed54b3487019931b04010b0b39715eb4e729e8"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"refresh_token","client_id":"app-12345","refresh_token":"aeed54b3487019931b04010b0b39715eb4e729e8"}'
8
+ string: '{"grant_type":"refresh_token","refresh_token":"aeed54b3487019931b04010b0b39715eb4e729e8"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -51,7 +51,7 @@ http_interactions:
51
51
  uri: http://api.brightbox.dev/token
52
52
  body:
53
53
  encoding: UTF-8
54
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
54
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
55
55
  headers:
56
56
  User-Agent:
57
57
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"password","client_id":"app-12345","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
8
+ string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://api.brightbox.dev/token
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"grant_type":"none","client_id":"cli-12345"}'
8
+ string: '{"grant_type":"client_credentials"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - fog/1.15.0
@@ -208,7 +208,7 @@ http_interactions:
208
208
  uri: http://api.brightbox.dev/token
209
209
  body:
210
210
  encoding: UTF-8
211
- string: '{"grant_type":"none","client_id":"cli-12345"}'
211
+ string: '{"grant_type":"client_credentials"}'
212
212
  headers:
213
213
  User-Agent:
214
214
  - fog/1.15.0
@@ -253,7 +253,7 @@ http_interactions:
253
253
  uri: http://api.brightbox.dev/token
254
254
  body:
255
255
  encoding: UTF-8
256
- string: '{"grant_type":"none","client_id":"app-12345"}'
256
+ string: '{"grant_type":"client_credentials"}'
257
257
  headers:
258
258
  User-Agent:
259
259
  - fog/1.15.0
@@ -297,7 +297,7 @@ http_interactions:
297
297
  uri: http://api.brightbox.dev/token
298
298
  body:
299
299
  encoding: UTF-8
300
- string: '{"grant_type":"none","client_id":"app-12345"}'
300
+ string: '{"grant_type":"client_credentials"}'
301
301
  headers:
302
302
  User-Agent:
303
303
  - fog/1.15.0
@@ -341,7 +341,7 @@ http_interactions:
341
341
  uri: http://api.brightbox.dev/token
342
342
  body:
343
343
  encoding: UTF-8
344
- string: '{"grant_type":"none","client_id":"app-12345"}'
344
+ string: '{"grant_type":"client_credentials"}'
345
345
  headers:
346
346
  User-Agent:
347
347
  - fog/1.15.0
@@ -385,7 +385,7 @@ http_interactions:
385
385
  uri: http://api.brightbox.dev/token
386
386
  body:
387
387
  encoding: UTF-8
388
- string: '{"grant_type":"none","client_id":"app-12345"}'
388
+ string: '{"grant_type":"client_credentials"}'
389
389
  headers:
390
390
  User-Agent:
391
391
  - fog/1.15.0
@@ -429,7 +429,7 @@ http_interactions:
429
429
  uri: http://api.brightbox.dev/token
430
430
  body:
431
431
  encoding: UTF-8
432
- string: '{"grant_type":"none","client_id":"app-12345"}'
432
+ string: '{"grant_type":"client_credentials"}'
433
433
  headers:
434
434
  User-Agent:
435
435
  - fog/1.15.0
@@ -513,7 +513,7 @@ http_interactions:
513
513
  uri: http://api.brightbox.dev/token
514
514
  body:
515
515
  encoding: UTF-8
516
- string: '{"grant_type":"none","client_id":"cli-12345"}'
516
+ string: '{"grant_type":"client_credentials"}'
517
517
  headers:
518
518
  User-Agent:
519
519
  - fog/1.15.0