xref: /freebsd/libexec/nuageinit/tests/addgroup.lua (revision 2b887687edc25bb4553f0d8a1183f454a85d413d)
1#!/usr/libexec/flua
2
3local n = require("nuage")
4if n.addgroup() then
5	n.err("addgroup should not accept empty value")
6end
7if n.addgroup("plop") then
8	n.err("addgroup should not accept empty value")
9end
10local gr = {}
11gr.name = "impossible_groupname"
12local res = n.addgroup(gr)
13if not res then
14	n.err("valid addgroup should return a path")
15end
16