Sha256: fc9ddf424687191436cb7936d631c74afab89a2d10c2f4743f029cca2a40d6a7

Contents?: true

Size: 924 Bytes

Versions: 25

Compression:

Stored size: 924 Bytes

Contents

Shindo.tests('Fog::Compute[:cloudstack] | port forwarding rule requests', ['cloudstack']) do

  @port_forwarding_rule_format = {
    'listportforwardingrulesresponse'  => {
      'count' => Integer,
      'portforwardingrule' => [
        'id' => String,
        'privateport' => String,
        'privateendport' => String,
        'protocol' => String,
        'publicport' => String,
        'publicendport' => String,
        'virtualmachineid' => String,
        'virtualmachinename' => String,
        'virtualmachinedisplayname' => String,
        'ipaddressid' => String,
        'ipaddress' => String,
        'state' => String,
        'cidrlist' => String,
        'tags' => Fog::Nullable::Array
      ]
    }
  }

  tests('success') do

    tests('#list_port_forwarding_rules').formats(@port_forwarding_rule_format) do
      Fog::Compute[:cloudstack].list_port_forwarding_rules('zoneid' => 1)
    end

  end

end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
fog-cloudstack-0.1.0 tests/requests/port_forwarding_rule_tests.rb
fog-2.1.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/cloudstack/requests/port_forwarding_rule_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/cloudstack/requests/port_forwarding_rule_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.42.1 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-2.0.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.42.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.41.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.40.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.39.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.38.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.37.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.36.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.35.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-2.0.0.pre.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.34.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.33.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb
fog-1.32.0 tests/cloudstack/requests/port_forwarding_rule_tests.rb