summaryrefslogtreecommitdiff
path: root/libexec/nuageinit/tests/addgroup.lua
blob: 60a0d83467932978dbc53b94d8d481a67345d202 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/libexec/flua

local n = require("nuage")
if n.addgroup() then
	n.err("addgroup should not accept empty value")
end
if n.addgroup("plop") then
	n.err("addgroup should not accept empty value")
end
local gr = {}
gr.name = "impossible_groupname"
local res = n.addgroup(gr)
if not res then
	n.err("valid addgroup should return a path")
end