Sha256: 41a52d29e04c1bc8303aaa4eb21d2da6f4fc713d1430a83930cb6857fb047cdc

Contents?: true

Size: 634 Bytes

Versions: 42

Compression:

Stored size: 634 Bytes

Contents

Shindo.tests('Fog::Network[:openstack] | security_groups collection', ['openstack']) do

  attributes = {:name => "my_secgroup", :description => "my sec group desc"}
  collection_tests(Fog::Network[:openstack].security_groups, attributes, true)

  tests('success') do
    attributes = {:name => "fogsecgroup", :description => "fog sec group desc"}
    @secgroup = Fog::Network[:openstack].security_groups.create(attributes)

    tests('#all(filter)').succeeds do
      secgroup = Fog::Network[:openstack].security_groups.all({:name => "fogsecgroup"})
      secgroup.first.name == "fogsecgroup"
    end
    @secgroup.destroy
  end
end

Version data entries

42 entries across 42 versions & 6 rubygems

Version Path
fog-1.28.0 tests/openstack/models/network/security_groups_tests.rb
fog-1.27.0 tests/openstack/models/network/security_groups_tests.rb
fog-1.26.0 tests/openstack/models/network/security_groups_tests.rb
fog-1.25.0 tests/openstack/models/network/security_groups_tests.rb
nsidc-fog-1.24.1 tests/openstack/models/network/security_groups_tests.rb
fog-1.24.0 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.11 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.10 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.9 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.8 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.7 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.6 tests/openstack/models/network/security_groups_tests.rb
fog-1.23.0 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.4 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.3 tests/openstack/models/network/security_groups_tests.rb
ns-fog-1.22.2 tests/openstack/models/network/security_groups_tests.rb
fog-1.22.1 tests/openstack/models/network/security_groups_tests.rb
fog-1.22.0 tests/openstack/models/network/security_groups_tests.rb
fog-1.21.0 tests/openstack/models/network/security_groups_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/openstack/models/network/security_groups_tests.rb