From 6f32c0a38ff2fb75dec510a9b8eccc0e9c5ae8de Mon Sep 17 00:00:00 2001 From: Caius Durling Date: Wed, 21 Sep 2011 19:16:08 +0100 Subject: [PATCH 01/17] [brightbox] Adding *_server actions to ServerGroup model * ServerGroup#add_servers * ServerGroup#remove_servers * ServerGroup#move_servers --- .../brightbox/models/compute/server_group.rb | 66 ++++++++++++++----- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/lib/fog/brightbox/models/compute/server_group.rb b/lib/fog/brightbox/models/compute/server_group.rb index 5070a83ac..8ef58f56e 100644 --- a/lib/fog/brightbox/models/compute/server_group.rb +++ b/lib/fog/brightbox/models/compute/server_group.rb @@ -28,30 +28,60 @@ module Fog true end - # Add a server to the server group + # Adds specified servers to this server group # - # == Parameters: - # identifiers:: - # An array of identifiers for the servers to add to the group - # - # == Returns: - # - # An excon response object representing the result - # - # ident} } options = { - :servers => server_references + :servers => server_references(identifiers) } - data = connection.add_servers_server_group(identity, options) - merge_attributes(data) + data = connection.add_servers_server_group identity, options + merge_attributes data + end + + # Removes specified servers from this server group + # + # @param [Array] identifiers array of server identifier strings to remove + # @return [Fog::Compute::ServerGroup] + def remove_servers identifiers + requires :identity + options = { + :servers => server_references(identifiers) + } + data = connection.remove_servers_server_group identity, options + merge_attributes data + end + + # Moves specified servers from this server group to the specified destination server group + # + # @param [Array] identifiers array of server identifier strings to move + # @param [String] destination_group_id destination server group identifier + # @return [Fog::Compute::ServerGroup] + def move_servers identifiers, destination_group_id + requires :identity + options = { + :servers => server_references(identifiers), + :destination => destination_group_id + } + data = connection.move_servers_server_group identity, options + merge_attributes data + end + + def destroy + requires :identity + connection.destroy_server_group(identity) + true + end + + protected + + def server_references identifiers + identifiers.map {|id| {"server" => id} } end end - end end -end \ No newline at end of file +end From 43846aef5f82efbffb8518e1ab6fc26a36d48ded Mon Sep 17 00:00:00 2001 From: Caius Durling Date: Thu, 22 Sep 2011 11:14:55 +0100 Subject: [PATCH 02/17] [brightbox] Pass along server_groups when creating a server --- lib/fog/brightbox/models/compute/server.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/server.rb b/lib/fog/brightbox/models/compute/server.rb index 9f8465653..1cb8fbf65 100644 --- a/lib/fog/brightbox/models/compute/server.rb +++ b/lib/fog/brightbox/models/compute/server.rb @@ -32,6 +32,7 @@ module Fog attribute :snapshots attribute :cloud_ips attribute :interfaces + attribute :server_groups def initialize(attributes={}) self.image_id ||= 'img-2ab98' # Ubuntu Lucid 10.04 server (i686) @@ -106,7 +107,8 @@ module Fog :image => image_id, :name => name, :zone => zone_id, - :user_data => user_data + :user_data => user_data, + :server_groups => server_groups }.delete_if {|k,v| v.nil? || v == "" } unless flavor_id.nil? || flavor_id == "" options.merge!(:server_type => flavor_id) From 863f456ce666c12c5b2701d72ac5aca9686bbf38 Mon Sep 17 00:00:00 2001 From: Caius Durling Date: Mon, 26 Sep 2011 14:00:03 +0100 Subject: [PATCH 03/17] [brightbox] Make update_cloud_ip request work --- lib/fog/brightbox/compute.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fog/brightbox/compute.rb b/lib/fog/brightbox/compute.rb index 0a4419169..9f0615865 100644 --- a/lib/fog/brightbox/compute.rb +++ b/lib/fog/brightbox/compute.rb @@ -88,6 +88,7 @@ module Fog request :unmap_cloud_ip request :update_account request :update_api_client + request :update_cloud_ip request :update_image request :update_load_balancer request :update_server From 298d1a9192329b0da2e8bbde6f688956d4183774 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Fri, 23 Sep 2011 16:15:01 +0100 Subject: [PATCH 04/17] [brightbox] Firewall models --- lib/fog/brightbox/compute.rb | 4 ++ .../models/compute/firewall_policies.rb | 29 ++++++++++ .../models/compute/firewall_policy.rb | 53 +++++++++++++++++++ .../brightbox/models/compute/firewall_rule.rb | 53 +++++++++++++++++++ .../models/compute/firewall_rules.rb | 24 +++++++++ 5 files changed, 163 insertions(+) create mode 100644 lib/fog/brightbox/models/compute/firewall_policies.rb create mode 100644 lib/fog/brightbox/models/compute/firewall_policy.rb create mode 100644 lib/fog/brightbox/models/compute/firewall_rule.rb create mode 100644 lib/fog/brightbox/models/compute/firewall_rules.rb diff --git a/lib/fog/brightbox/compute.rb b/lib/fog/brightbox/compute.rb index 9f0615865..e38884b33 100644 --- a/lib/fog/brightbox/compute.rb +++ b/lib/fog/brightbox/compute.rb @@ -16,6 +16,10 @@ module Fog model :server collection :server_groups model :server_group + collection :firewall_policies + model :firewall_policy + collection :firewall_rules + model :firewall_rule collection :flavors model :flavor collection :images diff --git a/lib/fog/brightbox/models/compute/firewall_policies.rb b/lib/fog/brightbox/models/compute/firewall_policies.rb new file mode 100644 index 000000000..e56159948 --- /dev/null +++ b/lib/fog/brightbox/models/compute/firewall_policies.rb @@ -0,0 +1,29 @@ +require 'fog/core/collection' +require 'fog/brightbox/models/compute/firewall_policy' + +module Fog + module Compute + class Brightbox + + class FirewallPolicies < Fog::Collection + + model Fog::Compute::Brightbox::FirewallPolicy + + def all + data = connection.list_firewall_policies + load(data) + end + + def get(identifier) + return nil if identifier.nil? || identifier == "" + data = connection.get_firewall_policy(identifier) + new(data) + rescue Excon::Errors::NotFound + nil + end + + end + + end + end +end \ No newline at end of file diff --git a/lib/fog/brightbox/models/compute/firewall_policy.rb b/lib/fog/brightbox/models/compute/firewall_policy.rb new file mode 100644 index 000000000..1910ca5e1 --- /dev/null +++ b/lib/fog/brightbox/models/compute/firewall_policy.rb @@ -0,0 +1,53 @@ +require 'fog/core/model' + +module Fog + module Compute + class Brightbox + + class FirewallPolicy < Fog::Model + + identity :id + attribute :url + attribute :resource_type + + attribute :name + attribute :description + + attribute :default + + attribute :server_group_id, :aliases => "server_group", :squash => "id" + attribute :rules + + # Sticking with existing Fog behaviour, save does not update but creates a new resource + def save + raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity + options = { + :server_group => server_group_id, + :name => name, + :description => description + }.delete_if {|k,v| v.nil? || v == "" } + data = connection.create_firewall_policy(options) + merge_attributes(data) + true + end + + def apply_to(server_group_id) + options = { + :server_group => server_group_id + } + data = connection.apply_to_firewall_policy(options) + merge_attributes(data) + true + end + + def destroy + requires :identity + data = connection.destroy_firewall_policy(identity) + true + end + + end + + end + end +end \ No newline at end of file diff --git a/lib/fog/brightbox/models/compute/firewall_rule.rb b/lib/fog/brightbox/models/compute/firewall_rule.rb new file mode 100644 index 000000000..cc581f65a --- /dev/null +++ b/lib/fog/brightbox/models/compute/firewall_rule.rb @@ -0,0 +1,53 @@ +require 'fog/core/model' + +module Fog + module Compute + class Brightbox + + class FirewallRule < Fog::Model + + identity :id + attribute :url + attribute :resource_type + + attribute :description + + attribute :source + attribute :source_port + attribute :destination + attribute :destination_port + attribute :protocol + attribute :icmp_type_name + + attribute :firewall_policy_id, :aliases => "firewall_policy", :squash => "id" + + # Sticking with existing Fog behaviour, save does not update but creates a new resource + def save + raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity + requires :firewall_policy_id, :protocol + options = { + :firewall_policy => firewall_policy_id, + :protocol => protocol, + :description => description, + :source => source, + :source_port => source_port, + :destination => destination, + :destination_port => destination_port, + :icmp_type_name => icmp_type_name + }.delete_if {|k,v| v.nil? || v == "" } + data = connection.create_firewall_rule(options) + merge_attributes(data) + true + end + + def destroy + requires :identity + connection.destroy_firewall_rule(identity) + true + end + + end + + end + end +end \ No newline at end of file diff --git a/lib/fog/brightbox/models/compute/firewall_rules.rb b/lib/fog/brightbox/models/compute/firewall_rules.rb new file mode 100644 index 000000000..6476eae8e --- /dev/null +++ b/lib/fog/brightbox/models/compute/firewall_rules.rb @@ -0,0 +1,24 @@ +require 'fog/core/collection' +require 'fog/brightbox/models/compute/firewall_rule' + +module Fog + module Compute + class Brightbox + + class FirewallRules < Fog::Collection + + model Fog::Compute::Brightbox::FirewallRule + + def get(identifier) + return nil if identifier.nil? || identifier == "" + data = connection.get_firewall_rule(identifier) + new(data) + rescue Excon::Errors::NotFound + nil + end + + end + + end + end +end \ No newline at end of file From d2ba72ab1515c38ed15992ee8e0f5f3a8a40192c Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Thu, 6 Oct 2011 11:33:44 +0200 Subject: [PATCH 05/17] [brightbox] Added missing requirement and request arg --- lib/fog/brightbox/models/compute/firewall_policy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/firewall_policy.rb b/lib/fog/brightbox/models/compute/firewall_policy.rb index 1910ca5e1..eed113616 100644 --- a/lib/fog/brightbox/models/compute/firewall_policy.rb +++ b/lib/fog/brightbox/models/compute/firewall_policy.rb @@ -32,10 +32,11 @@ module Fog end def apply_to(server_group_id) + requires :identity options = { :server_group => server_group_id } - data = connection.apply_to_firewall_policy(options) + data = connection.apply_to_firewall_policy(identity, options) merge_attributes(data) true end From 60a3f4585f68e2d0761762ca3ce5c4d30cac0026 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 14 Oct 2011 16:01:23 +0530 Subject: [PATCH 06/17] [Brightbox] Fix zone_id/flavour_id getter/setter for Server --- lib/fog/brightbox/models/compute/server.rb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/fog/brightbox/models/compute/server.rb b/lib/fog/brightbox/models/compute/server.rb index 1cb8fbf65..d986da205 100644 --- a/lib/fog/brightbox/models/compute/server.rb +++ b/lib/fog/brightbox/models/compute/server.rb @@ -27,8 +27,7 @@ module Fog # Links - to be replaced attribute :account_id, :aliases => "account", :squash => "id" attribute :image_id, :aliases => "image", :squash => "id" - attribute :flavor_id, :aliases => "server_type", :squash => "id" - attribute :zone_id, :aliases => "zone", :squash => "id" + attribute :snapshots attribute :cloud_ips attribute :interfaces @@ -39,6 +38,22 @@ module Fog super end + def zone_id + attributes[:zone_id] || zone[:id] || zone['id'] + end + + def flavor_id + attributes[:flavor_id] || server_type[:id] || server_type['id'] + end + + def zone_id=(incoming_zone_id) + attributes[:zone_id] = incoming_zone_id + end + + def flavor_id=(incoming_flavour_id) + attributes[:flavor_id] = incoming_flavour_id + end + def snapshot requires :identity connection.snapshot_server(identity) From 1af384fb9eac926d94b64920d675d3042dbdd4c1 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 14 Oct 2011 16:02:01 +0530 Subject: [PATCH 07/17] [Brightbox] Add zone/server_type attribute for Server --- lib/fog/brightbox/models/compute/server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/brightbox/models/compute/server.rb b/lib/fog/brightbox/models/compute/server.rb index d986da205..223ea7ffe 100644 --- a/lib/fog/brightbox/models/compute/server.rb +++ b/lib/fog/brightbox/models/compute/server.rb @@ -32,6 +32,8 @@ module Fog attribute :cloud_ips attribute :interfaces attribute :server_groups + attribute :zone + attribute :server_type def initialize(attributes={}) self.image_id ||= 'img-2ab98' # Ubuntu Lucid 10.04 server (i686) From cddae88809c04aa4c841a042464007cab1368e3b Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 19 Oct 2011 19:15:50 +0530 Subject: [PATCH 08/17] [Brightbox] Add username to Image --- lib/fog/brightbox/models/compute/image.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/brightbox/models/compute/image.rb b/lib/fog/brightbox/models/compute/image.rb index 364f075f0..61cc77fc9 100644 --- a/lib/fog/brightbox/models/compute/image.rb +++ b/lib/fog/brightbox/models/compute/image.rb @@ -11,6 +11,7 @@ module Fog attribute :resource_type attribute :name + attribute :username attribute :status attribute :description @@ -43,6 +44,7 @@ module Fog :source => source, :arch => arch, :name => name, + :username => username, :description => description }.delete_if {|k,v| v.nil? || v == "" } data = connection.create_image(options) From d2cfc2560f6b4a21864ed2f888f15846c37159ea Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 20 Oct 2011 17:43:26 +0530 Subject: [PATCH 09/17] [Brightbox] Add request for remove_firewall_policy --- .../requests/compute/remove_firewall_policy.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/fog/brightbox/requests/compute/remove_firewall_policy.rb diff --git a/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb b/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb new file mode 100644 index 000000000..68ccdab17 --- /dev/null +++ b/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb @@ -0,0 +1,14 @@ +module Fog + module Compute + class Brightbox + class Real + + def remove_firewall_policy(identifier, options) + return nil if identifier.nil? || identifier == "" + request("post", "/1.0/firewall_policies/#{identifier}/remove", [202], options) + end + + end + end + end +end \ No newline at end of file From b7091ce648944c0088b7043bb1d5a0bdc1252c5e Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 20 Oct 2011 17:44:21 +0530 Subject: [PATCH 10/17] [Brightbox] Add model method for remove --- lib/fog/brightbox/models/compute/firewall_policy.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/firewall_policy.rb b/lib/fog/brightbox/models/compute/firewall_policy.rb index eed113616..8763eae08 100644 --- a/lib/fog/brightbox/models/compute/firewall_policy.rb +++ b/lib/fog/brightbox/models/compute/firewall_policy.rb @@ -41,6 +41,16 @@ module Fog true end + def remove(server_group_id) + requires :identity + options = { + :server_group => server_group_id + } + data = connection.remove_firewall_policy(identity, options) + merge_attributes(data) + true + end + def destroy requires :identity data = connection.destroy_firewall_policy(identity) @@ -51,4 +61,4 @@ module Fog end end -end \ No newline at end of file +end From 78a03d25b0c1401c651ec49d7616c143fe3808d5 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 20 Oct 2011 18:19:40 +0530 Subject: [PATCH 11/17] [Brightbox]Add remove_firewall_policy to computer.rb --- lib/fog/brightbox/compute.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fog/brightbox/compute.rb b/lib/fog/brightbox/compute.rb index e38884b33..66a4b83f4 100644 --- a/lib/fog/brightbox/compute.rb +++ b/lib/fog/brightbox/compute.rb @@ -39,6 +39,7 @@ module Fog request :add_nodes_load_balancer request :add_servers_server_group request :apply_to_firewall_policy + request :remove_firewall_policy request :create_api_client request :create_cloud_ip request :create_firewall_policy From 3f221ba83b8d890f10c7e73d188b34cff4e778d2 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Mon, 24 Oct 2011 16:11:33 +0530 Subject: [PATCH 12/17] [Brightbox] Change logic of fetching zone and flavour_id --- lib/fog/brightbox/models/compute/server.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/fog/brightbox/models/compute/server.rb b/lib/fog/brightbox/models/compute/server.rb index 223ea7ffe..2ba860386 100644 --- a/lib/fog/brightbox/models/compute/server.rb +++ b/lib/fog/brightbox/models/compute/server.rb @@ -41,11 +41,19 @@ module Fog end def zone_id - attributes[:zone_id] || zone[:id] || zone['id'] + if t_zone_id = attributes[:zone_id] + t_zone_id + elsif zone + zone[:id] || zone['id'] + end end def flavor_id - attributes[:flavor_id] || server_type[:id] || server_type['id'] + if t_flavour_id = attributes[:flavor_id] + t_flavour_id + elsif server_type + server_type[:id] || server_type['id'] + end end def zone_id=(incoming_zone_id) From 5cd31eb9a0478a5fae4f039ade4624b33b3558b1 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Tue, 25 Oct 2011 16:54:22 +0530 Subject: [PATCH 13/17] [Brightbox] Remove name as mandatory parameter for creating server group --- lib/fog/brightbox/models/compute/server_group.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/server_group.rb b/lib/fog/brightbox/models/compute/server_group.rb index 8ef58f56e..85bdfd66e 100644 --- a/lib/fog/brightbox/models/compute/server_group.rb +++ b/lib/fog/brightbox/models/compute/server_group.rb @@ -18,7 +18,6 @@ module Fog attribute :default def save - requires :name options = { :name => name, :description => description From c642dd9076179660b858d83210ea42dff3d8ea5a Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 27 Oct 2011 15:27:27 +0530 Subject: [PATCH 14/17] [Brightbox] Add created_at attribute for server_group,policy and firewall rule --- lib/fog/brightbox/models/compute/firewall_policy.rb | 1 + lib/fog/brightbox/models/compute/firewall_rule.rb | 3 ++- lib/fog/brightbox/models/compute/server_group.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/firewall_policy.rb b/lib/fog/brightbox/models/compute/firewall_policy.rb index 8763eae08..aed146945 100644 --- a/lib/fog/brightbox/models/compute/firewall_policy.rb +++ b/lib/fog/brightbox/models/compute/firewall_policy.rb @@ -16,6 +16,7 @@ module Fog attribute :default attribute :server_group_id, :aliases => "server_group", :squash => "id" + attribute :created_at, :type => :time attribute :rules # Sticking with existing Fog behaviour, save does not update but creates a new resource diff --git a/lib/fog/brightbox/models/compute/firewall_rule.rb b/lib/fog/brightbox/models/compute/firewall_rule.rb index cc581f65a..b10f5035b 100644 --- a/lib/fog/brightbox/models/compute/firewall_rule.rb +++ b/lib/fog/brightbox/models/compute/firewall_rule.rb @@ -18,6 +18,7 @@ module Fog attribute :destination_port attribute :protocol attribute :icmp_type_name + attribute :created_at, :type => :time attribute :firewall_policy_id, :aliases => "firewall_policy", :squash => "id" @@ -50,4 +51,4 @@ module Fog end end -end \ No newline at end of file +end diff --git a/lib/fog/brightbox/models/compute/server_group.rb b/lib/fog/brightbox/models/compute/server_group.rb index 85bdfd66e..0d7ad9471 100644 --- a/lib/fog/brightbox/models/compute/server_group.rb +++ b/lib/fog/brightbox/models/compute/server_group.rb @@ -16,6 +16,7 @@ module Fog attribute :name attribute :description attribute :default + attribute :created_at, :type => :time def save options = { From f70605cebcd47281920a31984066b0b031b94b9b Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 27 Oct 2011 18:58:03 +0530 Subject: [PATCH 15/17] [Brightbox]Protocol is no longer required parameter for firewall --- lib/fog/brightbox/models/compute/firewall_rule.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/brightbox/models/compute/firewall_rule.rb b/lib/fog/brightbox/models/compute/firewall_rule.rb index b10f5035b..9ac5c0b83 100644 --- a/lib/fog/brightbox/models/compute/firewall_rule.rb +++ b/lib/fog/brightbox/models/compute/firewall_rule.rb @@ -25,7 +25,7 @@ module Fog # Sticking with existing Fog behaviour, save does not update but creates a new resource def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity - requires :firewall_policy_id, :protocol + requires :firewall_policy_id options = { :firewall_policy => firewall_policy_id, :protocol => protocol, From c7feaa46e5f2bfcfa217cb15817fef3c6b62f14f Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Mon, 31 Oct 2011 12:10:12 +0000 Subject: [PATCH 16/17] [Brightbox] Updated Image format tests for username --- tests/brightbox/requests/compute/helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/brightbox/requests/compute/helper.rb b/tests/brightbox/requests/compute/helper.rb index 6271193ab..4204e5a19 100644 --- a/tests/brightbox/requests/compute/helper.rb +++ b/tests/brightbox/requests/compute/helper.rb @@ -110,7 +110,8 @@ class Brightbox "description" => String, "source" => String, "status" => String, - "owner" => String + "owner" => String, + "username" => Fog::Nullable::String } INTERFACE = { @@ -232,6 +233,7 @@ class Brightbox "source_type" => String, "status" => String, "owner" => String, + "username" => Fog::Nullable::String, "public" => Fog::Boolean, "official" => Fog::Boolean, "compatibility_mode" => Fog::Boolean, @@ -415,6 +417,7 @@ class Brightbox "source_type" => String, "status" => String, "owner" => String, # Account ID not object + "username" => Fog::Nullable::String, "public" => Fog::Boolean, "official" => Fog::Boolean, "compatibility_mode" => Fog::Boolean, From ae439fdb269df7e1a2f12abb76f1c4d27e92b2a3 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Mon, 31 Oct 2011 12:11:10 +0000 Subject: [PATCH 17/17] [Brightbox] Updated ServerGroup format for created_at time --- tests/brightbox/requests/compute/helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/brightbox/requests/compute/helper.rb b/tests/brightbox/requests/compute/helper.rb index 4204e5a19..ad1b61a3d 100644 --- a/tests/brightbox/requests/compute/helper.rb +++ b/tests/brightbox/requests/compute/helper.rb @@ -141,7 +141,8 @@ class Brightbox "url" => String, "name" => String, "default" => Fog::Boolean, - "description" => Fog::Nullable::String + "description" => Fog::Nullable::String, + "created_at" => String } SERVER_TYPE = { @@ -283,6 +284,7 @@ class Brightbox "name" => String, "description" => Fog::Nullable::String, "default" => Fog::Boolean, + "created_at" => String, "account" => Brightbox::Compute::Formats::Nested::ACCOUNT, "servers" => [Brightbox::Compute::Formats::Nested::SERVER] } @@ -483,6 +485,7 @@ class Brightbox "name" => String, "description" => Fog::Nullable::String, "default" => Fog::Boolean, + "created_at" => String, "account" => Brightbox::Compute::Formats::Nested::ACCOUNT, "servers" => [Brightbox::Compute::Formats::Nested::SERVER] }