-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: mock network functions so tests work with no network
There's a few places where the tests implicitly need a network connection. Mainly, since the TDL XML test blocks in test_guest are for a subclass of RedHatLinuxCDYumGuest and specify a URL, we wind up hitting RedHatLinuxCDYumGuest._check_url which tries to get the headers for the URL to figure out if the server supports byte ranges. Let's just mock out the header retrieval to make that method happy. Secondly, test-53-command-http-url.tdl specifies an HTTP URL, so we wind up trying to retrieve it; mock out the actual download, since that's not what this test is really exercising. Signed-off-by: Adam Williamson <awilliam@redhat.com>
- Loading branch information
Showing
4 changed files
with
16 additions
and
4 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
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