Sha256: 2dac4df52db1bffd2711ad0b6a8dc01b7650c055f302ec02dd4a17ae97cafe51
Contents?: true
Size: 1.59 KB
Versions: 9
Compression:
Stored size: 1.59 KB
Contents
require 'spec_helper' module Vcloud module Core describe EdgeGateway do it "configure firewall service" do configuration = { :FirewallService => { :IsEnabled => "true", :DefaultAction => "allow", :LogDefaultAction => "false", :FirewallRule => [ { :Id => "999", :IsEnabled => "false", :MatchOnTranslate => "false", :Description => "generated from edge_gateway_tests", :Policy => "drop", :Protocols => {:Tcp => "true"}, :Port => "3412", :DestinationPortRange => "3412", :DestinationIp => "internal", :SourcePort => "3412", :SourcePortRange => "3412", :SourceIp => "internal", :EnableLogging => "false" } ] } } edge_gateway = EdgeGateway.get_by_name(ENV['VCLOUD_EDGE_GATEWAY']) edge_gateway.update_configuration(configuration) actual_config = edge_gateway.vcloud_attributes[:Configuration][:EdgeGatewayServiceConfiguration] actual_config[:FirewallService].should == configuration[:FirewallService] end end end end
Version data entries
9 entries across 9 versions & 1 rubygems