Sha256: fc2f0f0d0025263001d2304abafb79ae806d9a4428c37138e34c2e6330603fb8

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

require_relative "test_helper"

class TestTestHelper < Minitest::Unit::TestCase
  include Clusterfuck::TestHelper

  def test_host
    assert_equal :leaf1, host(:leaf1).name
  end

  def test_ssh_command_into_node
    output = ssh_command :leaf1, "hostname"
    assert_equal "leaf1\n", output
  end

  def test_ip_to_host
    spine_ip = host(:spine).subnets.first.to_s
    assert_equal :spine, ip_to_host(spine_ip).name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-clusterfuck-0.0.1 test/helper_test.rb