Sha256: 9e1eb024eebb847465cf76631d73387c6be1ff13e038ac0b1ad062ab5d503b9c

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

module TestServerFixture
  module_function

  def test_server1
    Tengine::Resource::PhysicalServer.find_or_create_by(
      :name => "test_server1",
      :provided_id => "test_server1",
      :properties => {},
      :addresses => {
        :private_dns_name => "localhost",
        # :private_ip_address => "127.0.0.1"
      }
      )
  end

  def test_server2
    Tengine::Resource::PhysicalServer.find_or_create_by(
      :name => "test_server2",
      :provided_id => "test_server2",
      :properties => {},
      :addresses => {
        :private_dns_name => "test_server2",
        :private_ip_address => "192.168.1.2"
      }
      )
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tengine_job-0.6.13 spec/fixtures/test_server_fixture.rb
tengine_job-0.6.12 spec/fixtures/test_server_fixture.rb
tengine_job-0.6.11 spec/fixtures/test_server_fixture.rb
tengine_job-0.6.10 spec/fixtures/test_server_fixture.rb
tengine_job-0.6.9 spec/fixtures/test_server_fixture.rb