lib/fog/aws/requests/compute/associate_route_table.rb in fog-1.22.0 vs lib/fog/aws/requests/compute/associate_route_table.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module Compute class AWS class Real - require 'fog/aws/parsers/compute/associate_route_table' # Associates a subnet with a route table. # # ==== Parameters # * RouteTableId<~String> - The ID of the route table @@ -23,15 +22,13 @@ 'RouteTableId' => routeTableId, 'SubnetId' => subnetId, :parser => Fog::Parsers::Compute::AWS::AssociateRouteTable.new ) end - end class Mock - def associate_route_table(routeTableId, subnetId) routetable = self.data[:route_tables].find { |routetable| routetable["routeTableId"].eql? routeTableId } subnet = self.data[:subnets].find { |subnet| subnet["subnetId"].eql? subnetId } if !routetable.nil? && !subnet.nil? @@ -47,11 +44,10 @@ elsif routetable.nil? raise Fog::Compute::AWS::NotFound.new("The routeTable ID '#{routeTableId}' does not exist") else raise Fog::Compute::AWS::NotFound.new("The subnet ID '#{subnetId}' does not exist") end - end private def add_route_association(routeTableId, subnetId, main=nil) @@ -66,10 +62,9 @@ else response['subnetId'] = subnetId end response end - end end end end