CLOUDSTACK-9396:fixing issue related to script test_dhcphosts #1573
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixing following
1-issue related to check_String:changed check string to "3 received" and use test_data
2-ssh to router based on hypervisor type : check if it is vmware ssh to ms else ssh to host
3-rename method : because of test_ methods were getting picked up as a test cases ,renamed them not to get picked up as a test method
4- modifying awk parameter from $2 to $3
test result
Prashants-MacBook-Pro:test_router_dhcphosts_YDZJFT prashant$ cat results.txt
Check that the /etc/dhcphosts.txt doesn't contain duplicate IPs ... === TestName: test_router_dhcphosts | Status : SUCCESS ===
ok
Ran 1 test in 385.178s
OK
results.txt
runinfo.txt
Note: this PR require check_string to be there in test_data.py which will be brought in by another PR
#1563 which is still in open state.