@@ -23,5 +23,22 @@ script:
23
23
&& (echo 'Idempotence test: pass' && exit 0)
24
24
|| (echo 'Idempotence test: fail' && exit 1)
25
25
26
+ # Lets check on the state of the users. I would invoke severspec myself however
27
+ # its a big thing to bring in on a small pull.
28
+ - id ansibletestuser | grep --silent "uid=2222(ansibletestuser) gid=2222(ansibletestuser) groups=2222(ansibletestuser),2(bin),100(users)"
29
+ - id ansibletestuser2 | grep --silent "uid=2223(ansibletestuser2) gid=2223(ansibletestuser2) groups=2223(ansibletestuser2),2(bin),100(users)"
30
+ - id ansibletestuser3 | grep --silent "uid=2224(ansibletestuser3) gid=4000(ansibletestgroup) groups=4000(ansibletestgroup),2(bin),100(users)"
31
+ - id ansibletestuser4 | grep --silent "uid=2225(ansibletestuser4) gid=100(users) groups=100(users),2(bin)"
32
+ - grep --silent "^ansibletestgroup:" /etc/group
33
+ - grep --silent "^ansibletestgroup1:" /etc/group
34
+ - ls -lgd /home/ansibletestuser | awk '{exit $3!="ansibletestuser"}'
35
+ - ls -lgd /home/otherdirectory | awk '{exit $3!="ansibletestuser2"}'
36
+ - ls -lgd /home/ansibletestuser3 | awk '{exit $3!="ansibletestgroup"}'
37
+ - ls -lgd /home/otherdirectory1 | awk '{exit $3!="users"}'
38
+ - ls -lg /home/ansibletestuser/.profile | awk '{exit $3!="ansibletestuser"}'
39
+ - ls -lg /home/otherdirectory/.profile | awk '{exit $3!="ansibletestuser2"}'
40
+ - ls -lg /home/ansibletestuser3/.profile | awk '{exit $3!="ansibletestgroup"}'
41
+ - ls -lg /home/otherdirectory1/.profile | awk '{exit $3!="users"}'
42
+
26
43
notifications :
27
44
webhooks : https://galaxy.ansible.com/api/v1/notifications/
0 commit comments