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

Version Path
vcloud-core-0.0.12 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.11 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.10 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.9 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.8 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.7 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.6 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.5 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
vcloud-core-0.0.4 spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb