forked from brianjmurrell/iml-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HYD-5772 Unittests for changing mcast port for corosync on EL7
Add unit tests for methods that enable the multicast ports used for corosync to be changed on EL7 and EL6 distros. This includes checking firewall rules are added and removed as appropriate. - update unit tests to check changing the multicast port does what we expect - minor changes to use constants rather than "magic" values in code - mock out firewall control calls in corosync unit tests, we should verify the methods are called with the correct parameters but we don't need to test the methods themselves here, they should be tested within the classes own unit tests (test_firewall_control.py) - add code that checks the input and remove code that checks the output of FirewallControl calls Change-Id: I2b257979f3d60f651870f56e20e74732d2dd24e4 Signed-off-by: Tom Nabarro <[email protected]> Reviewed-on: http://review.whamcloud.com/19630 Tested-by: Jenkins Tested-by: Chroma Test User Reviewed-by: Will Johnson <[email protected]> Reviewed-by: Joe Grund <[email protected]>
- Loading branch information
Showing
3 changed files
with
125 additions
and
85 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
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