Opened at 2010-08-03T04:05:04Z
Last modified at 2013-10-07T15:44:37Z
#1153 assigned defect
need tests for create-{client, node} with default nodedir — at Initial Version
Reported by: | davidsarah | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | soon |
Component: | code-nodeadmin | Version: | 1.7.1 |
Keywords: | test-needed unfinished-business config | Cc: | zancas |
Launchpad Bug: |
Description
We shouldn't create a node at the actual default basedir (which might already exist), which is why there are no existing tests for this.
However, we could:
- check that the result of get_default_nodedir is sensible;
- mock get_default_nodedir to return a default nodedir under the _trial_temp directory.
To test the logic for getting the default nodedir from the registry entry on Windows, we can mock sys.platform and allmydata.windows.registry.get_registry_value.
Note: See
TracTickets for help on using
tickets.