-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Virt-Viewer launcher: mockmodel changes
This patch adds mockmodel.py and tests/test_rest.py changes for the virtviewerfile API. Due to how the control is implemented (internal_redirect), the solution adopted was to create a temporary file to represent the Virt Viewer script contents in mockmodel.py, while in test_rest.py an assert is made to see if the content was retrieved by the API. This temporary file is erased in a cleanup method that is subscribed in the cherrypy 'exit' engine, leaving no trace in the host. Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 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