-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: PDK 1.6.0
-
Component/s: None
-
Labels:
-
Template:customfield_10700 250161
-
Epic Link:
-
Team:Puppet Developer Experience
-
Method Found:Needs Assessment
-
Release Notes:Bug Fix
-
Release Notes Summary:
-
QA Risk Assessment:Needs Assessment
On a VMPooler win2012 machine:
- create a test user that is not a administrator
- add the test user to the "Remote Desktop Users" group
- Set the permissions on C:\ to "Subfolders only" for "create directories/append content" for the Users group
- in a powershell:
- pdk new module some_name
- cd some_name
- pdk new class some_name
- pdk test unit
Executing 'ruby C:/Users/jbird12/Desktop/modulename/bin/rake spec[]' |
...
|
failed: rspec: ./spec/classes/modulename_spec.rb:23: Permission denied @ dir_s_mkdir - C:/dev |
undefined method `clear' for nil:NilClass |
|
|
If you are not an administrator user, you won't be able to create folders on the C:\ drive. I think this is within rspec that is causing it, but not sure who should fix it.
After much struggle, I could get a proper stacktrace out of ruby: