File: vpc_tests.rb

package info (click to toggle)
ruby-fog-aws 3.33.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,180 kB
  • sloc: ruby: 75,405; javascript: 14; makefile: 9; sh: 4
file content (26 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Shindo.tests("Fog::Compute[:aws] | vpc", ['aws']) do

  model_tests(Fog::Compute[:aws].vpcs, {:cidr_block => '10.0.10.0/28'}, true) do
    tests("#enable_classic_link") do
      returns(false) { @instance.classic_link_enabled? }
      returns(true)  { @instance.enable_classic_link }
      returns(true)  { @instance.classic_link_enabled? }
    end

    tests("#disable_classic_link") do
      returns(true)  { @instance.disable_classic_link }
      returns(false) { @instance.classic_link_enabled? }
    end

    tests("#enable_classic_link_dns") do
      returns(false) { @instance.classic_link_dns_enabled? }
      returns(true)  { @instance.enable_classic_link_dns }
      returns(true)  { @instance.classic_link_dns_enabled? }
    end

    tests("#disable_classic_link") do
      returns(true)  { @instance.disable_classic_link_dns }
      returns(false) { @instance.classic_link_dns_enabled? }
    end
  end
end