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