PherricOxide/test — Issue #60: Make InitUserConfigs() more robust
Author: PherricOxide
Created: 2012-02-08 18:23:17+00:00
State: open
Labels: defect

There are some corner cases that need to be considered in the InitUserConfigs() function. This is where Nova detects if the current user already has the necessary config files in their home directory, and sets up group permissions.

The current method for determining if the configs are present is just to peek and see if ~/.nova exists. But what happens if there is a single important file missing inside?

Also, we use the absence of ~/.nova as a trigger to add the user to the nova group. When really we should be directly testing the nova group to see if our user is in it.