-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes the network api _is_multi_host() method use objects instead of direct database access so that compute manager can call it directly. Note that the previous unit tests for this method used the random.choice() method to selectively test the is/is-not multihost case. Unit tests should not be non-deterministic like this, for coverage and stability reasons. This patch pulls out the two possibilities for each into separate cases to ensure both are tested. Related to blueprint compute-manager-objects-juno Change-Id: I432a759a666948f2cfaa29d82f749dc9a39141be
- Loading branch information
Showing
2 changed files
with
40 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters