summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/cvtsudoers/test30.sh
blob: c5f761512fcfb548099189d9c55f1f4d9629447c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Test alias expansion when converting to JSON.
# See https://bugzilla.sudo.ws/show_bug.cgi?id=853
#

: ${CVTSUDOERS=cvtsudoers}

$CVTSUDOERS -c "" -e -f json <<EOF
Cmnd_Alias	CMDA=/path/to/cmda
Cmnd_Alias	CMDB=/path/to/cmdb
Cmnd_Alias	CMDC=/path/to/cmdc
User_Alias	USERS=user1,user2,user3
USERS		ALL=CMDA,!CMDB,CMDC
EOF