Changeset 17 for trunk/test

Show
Ignore:
Timestamp:
10/15/07 16:13:50 (15 months ago)
Author:
jweiss
Message:

remove usage of DEFAULT_SSH_PORT for each role as the port can now be set through ssh_port

Location:
trunk/test
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/test_helper.rb

    r1 r17  
    131131      :host => create_new_host, 
    132132      :primary => 0, 
    133       :no_release => 0 
     133      :no_release => 0, 
     134      :no_symlink => 0 
    134135    }.update(options) 
    135136     
  • trunk/test/unit/role_test.rb

    r1 r17  
    182182     
    183183    assert_nil role.ssh_port 
    184     assert_equal Role::DEFAULT_SSH_PORT, role.port 
    185     assert_equal "schaka.com:22", role.hostname_and_port 
    186      
    187     role.ssh_port = 2222 
    188     assert_equal 2222, role.port 
    189      
     184    assert_equal "schaka.com", role.hostname_and_port 
     185     
     186    role.ssh_port = 2222     
    190187    assert_equal "schaka.com:2222", role.hostname_and_port 
     188     
     189    role.ssh_port = nil 
     190    assert_equal "schaka.com", role.hostname_and_port 
    191191  end 
    192192   
  • trunk/test/unit/webistrano_deployer_test.rb

    r11 r17  
    9292             
    9393    # roles 
    94     mock_cap_config.expects(:role).with('www', @host.name + ":22") 
    95     mock_cap_config.expects(:role).with('app', @host.name + ":22", {:primary => true}) 
     94    mock_cap_config.expects(:role).with('www', @host.name) 
     95    mock_cap_config.expects(:role).with('app', @host.name, {:primary => true}) 
    9696     
    9797    # main mock install 
     
    144144    # now check the roles         
    145145    #  
    146     mock_cap_config.expects(:role).with('www', @host.name + ":22", {:primary => true}) 
     146    mock_cap_config.expects(:role).with('www', @host.name, {:primary => true}) 
    147147    mock_cap_config.expects(:role).with('app', @host.name + ":99", {:no_release => true}) 
    148148    mock_cap_config.expects(:role).with('db', @host.name + ":44", {:no_release => true, :primary => true})