Sha256: 20f4dae9d7ee2e6a1103a23ba0efe79ec95eee65394a11f5e73e6b2fc9c6f71c

Contents?: true

Size: 924 Bytes

Versions: 53

Compression:

Stored size: 924 Bytes

Contents

Shindo.tests("Fog::Network[:openstack] | lb_member", ['openstack']) do

  tests('success') do

    tests('#create').succeeds do
      @instance = Fog::Network[:openstack].lb_members.create(:pool_id => 'pool_id',
                                                             :address => '10.0.0.1',
                                                             :protocol_port => '80',
                                                             :weight => 100,
                                                             :admin_state_up => true,
                                                             :tenant_id => 'tenant_id')
      !@instance.id.nil?
    end

    tests('#update').succeeds do
      @instance.pool_id = 'new_pool_id'
      @instance.weight = 50
      @instance.admin_state_up = false
      @instance.update
    end

    tests('#destroy').succeeds do
      @instance.destroy == true
    end

  end

end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
fog-1.22.0 tests/openstack/models/network/lb_member_tests.rb
fog-1.21.0 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/openstack/models/network/lb_member_tests.rb
fog-1.20.0 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/openstack/models/network/lb_member_tests.rb
fog-1.19.0 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/openstack/models/network/lb_member_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/openstack/models/network/lb_member_tests.rb