#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.

Change History (0)

Note: See TracTickets for help on using tickets.