Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-augtool / rec-hosts-reorder-new.sh
1 # Delete the first hosts entry and then add it back into the tree as
2 # a new entry.
3 #
4 # Since we add the same entry, but under a new key (01 instead of 1), all
5 # the separators are set to their defaults. That is why the separator
6 # between localhost.localdomain and localhost changes from a '\t' to a ' '
7 # If we used the old key '0' to insert back in, we'd have an exact move of
8 # the line. That is checked by rec-hosts-reorder
9
10 commands="
11 rm /files/etc/hosts/1
12 set /files/etc/hosts/01/ipaddr 127.0.0.1
13 set /files/etc/hosts/01/canonical localhost.localdomain
14 set /files/etc/hosts/01/alias[1] localhost
15 set /files/etc/hosts/01/alias[2] galia.watzmann.net
16 set /files/etc/hosts/01/alias[3] galia
17 "
18
19 lens=Hosts.lns
20 file="/etc/hosts"
21
22 diff='--- /etc/hosts
23 +++ /etc/hosts.augnew
24 @@ -1,6 +1,6 @@
25  # Do not remove the following line, or various programs
26  # that require network functionality will fail.
27 -127.0.0.1\tlocalhost.localdomain\tlocalhost galia.watzmann.net galia
28  #172.31.122.254   granny.watzmann.net granny puppet
29  #172.31.122.1     galia.watzmann.net galia
30  172.31.122.14   orange.watzmann.net orange
31 +127.0.0.1\tlocalhost.localdomain localhost galia.watzmann.net galia'