adduser.lua (a42d6f76018e4ed8324e319ab48aac904bda437c) adduser.lua (504981357aa36365784458cfe8d9e23097bfac7b)
1#!/usr/libexec/flua
2
3local n = require("nuage")
1#!/usr/libexec/flua
2
3local n = require("nuage")
4
4if n.adduser() then
5 n.err("adduser should not accept empty value")
6end
7if n.adduser("plop") then
8 n.err("adduser should not accept empty value")
9end
10local pw = {}
11pw.name = "impossible_username"
12local res = n.adduser(pw)
13if not res then
14 n.err("valid adduser should return a path")
15end
5if n.adduser() then
6 n.err("adduser should not accept empty value")
7end
8if n.adduser("plop") then
9 n.err("adduser should not accept empty value")
10end
11local pw = {}
12pw.name = "impossible_username"
13local res = n.adduser(pw)
14if not res then
15 n.err("valid adduser should return a path")
16end