Assert for user password hash does not work, if password hash is stored in /etc/shadow (like in Ubuntu)
DracoAter opened this issue · 1 comments
DracoAter commented
test
user( name ).must_exist.with :password, u[:password][:default]
Fails with:
Expected: [some password hash]
Actual: "x"
"x" is used in /etc/passwd if the real password hash is stored in /etc/shadow.
http://manpages.ubuntu.com/manpages/lucid/man5/passwd.5.html
calavera commented
That's Chef behavior, we don't do anything else but load Chef's user resource.