Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group and user asserts don't work on Windows #63

Open
juliandunn opened this issue Jul 1, 2013 · 1 comment
Open

group and user asserts don't work on Windows #63

juliandunn opened this issue Jul 1, 2013 · 1 comment

Comments

@juliandunn
Copy link

The group and user asserts don't work on Windows, because the Etc library on Windows isn't going to return anything. So an assertion like:

    directory("C:\\inetpub\\wwwroot").must_exist.with(:owner, "Administrator")

always returns

The directory C:\inetpub\wwwroot does not have the expected owner.
Expected: "Administrator"
  Actual: nil

Indeed, Etc.getpwnam("Administrator") on Windows returns nil under irb.

@calavera
Copy link
Contributor

calavera commented Jul 1, 2013

Unfortunately, that's either a Chef or a Ruby bug. We only use the resources that Chef makes available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants