vagrant/test/unit
Paul Hinze abe0731d2e guests/{ubuntu,debian}: fix change_host_name for trailing dots [GH-2610]
When `/etc/hosts` contained a FQDN with a trailing dot, the `\b` in the
sed expression would not match, since dot is not considered to be a word
character.

Fix this by regexp-escaping the hostname search, and matching the end of
the line on optional space followed by additional characters.

Also add some tests that extract the regexp used by sed and verify that
it does what we want. These will hopefully serve us in the future if we
ever need to test additional edge cases.
2013-12-09 18:56:45 -06:00
..
plugins guests/{ubuntu,debian}: fix change_host_name for trailing dots [GH-2610] 2013-12-09 18:56:45 -06:00
support core: clean up tests for synced folder built-ins 2013-12-03 18:30:59 -08:00
vagrant core: improve guest type detection 2013-12-08 11:14:18 -08:00
base.rb core: clean up tests for synced folder built-ins 2013-12-03 18:30:59 -08:00
vagrant_test.rb core: vagrant version requirements in vagrantfile [GH-2322] 2013-11-23 12:23:34 -08:00