Project

General

Profile

action #113201

Updated by okurz almost 2 years ago

## Motivation 
 * Ticket for spike solution: #107032 
 * PR of spike solution: https://github.com/os-autoinst/os-autoinst/pull/2091 
 * See parent ticket for further context 

 ## Acceptance criteria 
 * **AC1**: It is possible to connect to a VMWare virtual machine via VMWare's VNC interface (e.g. by specifying credentials via some test variables, *possibly* also requiring to use a special/new VNC-console-API from test code) 
 * **AC2**: The connection is attempted to be restored if it breaks (which involves requesting the websocket URL from scratch and invoking dewebsockify again) 
 * **AC3**: Documentation for AC1 exists, e.g. under `os-autoinst/doc/backends.md` 
 * **AC4**: Behavior is tested against a real VMWare instance 
 * **AC5**: Relevant code has unit tests 

 ## Suggestions 
 * See commit message of https://github.com/os-autoinst/os-autoinst/pull/2091 and build your changes on top of that PR 
 * See https://progress.opensuse.org/issues/100688#note-25 for VMWare credentials for running a test against the real VMWare instance 
     * e.g. invoke the test like this (password redacted, use URL encoding when inserting the password): `OS_AUTOINST_TEST_AGAINST_REAL_VMWARE_INSTANCE='https://root:…@vh002.qa2.suse.asia/2' OS_AUTOINST_DEWEBSOCKIFY_PORT=5900 prove -vI. t/27-consoles-vmware.t` 
 * Extend unit tests as suggested in the mentioned commit message 

 ## Out of scope 
 * Deal with poor performance; there's likely not much we can do 
 * Implement JPEG compression in our VNC module (it might help with performance but likely also cause problems with the pattern matching) 

 

Back