salt/tests/integration/modules
Evan Borgstrom 2d66c50d74 Ensure hosts.add_host isn't leaving duplicate entries around
Given a state entry like the following:

```
host-staging-web:
  host:
    - present
    - ip: 10.102.130.100
    - names:
      - staging-web.fqdn.com
      - staging-web
      - alt-staging-hostname
```

You'd end up with three different entries in your hosts file:

```
10.102.130.100		staging-web.fqdn.com
10.102.130.100		staging-web.fqdn.com	staging-web
10.102.130.100		staging-web.fqdn.com	staging-web	alt-staging-hostname
```

This corrects it by removing the previous line before appending the
newly crafted on, and adds tests to prove it.
2012-04-08 14:33:30 -04:00
..
files Split out integration tests from pure unit tests. 2012-02-20 13:18:13 +01:00
cmdmod.py Add tests for the cmd module 2012-03-27 17:05:38 -06:00
data.py Add tests for the data module 2012-03-27 23:45:49 -06:00
disk.py Add disk tests 2012-03-26 23:13:36 -06:00
grains.py Split out integration tests from pure unit tests. 2012-02-20 13:18:13 +01:00
hosts.py Ensure hosts.add_host isn't leaving duplicate entries around 2012-04-08 14:33:30 -04:00
pillar.py Add tests to cover pillar passing minion grains data in 2012-04-01 21:59:23 -06:00
publish.py Add test to verify the kwarg passing from the publish module 2012-04-01 13:29:23 -06:00
state.py Add some tests for states 2012-03-29 17:18:32 -06:00
syndic.py don't need to test the syndic coverage like this, save some time 2012-04-01 13:10:37 -06:00
sysmod.py Add sys module tests 2012-03-28 12:07:48 -06:00
test.py Test the corresponding cmd function 2012-03-10 07:27:38 -08:00