mirror of https://github.com/apache/cloudstack.git
fix unit test
This commit is contained in:
parent
5a8a2a259e
commit
793d549072
|
|
@ -951,7 +951,7 @@ public class LibvirtVMDef {
|
|||
if (_listenAddr != null) {
|
||||
graphicBuilder.append(" listen='" + _listenAddr + "'");
|
||||
} else {
|
||||
graphicBuilder.append(" listen='' ");
|
||||
graphicBuilder.append(" listen=''");
|
||||
}
|
||||
if (_passwd != null) {
|
||||
graphicBuilder.append(" passwd='" + _passwd + "'");
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class LibvirtComputingResourceTest {
|
|||
vmStr += "<serial type='pty'>\n";
|
||||
vmStr += "<target port='0'/>\n";
|
||||
vmStr += "</serial>\n";
|
||||
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n";
|
||||
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "'/>\n";
|
||||
vmStr += "<console type='pty'>\n";
|
||||
vmStr += "<target port='0'/>\n";
|
||||
vmStr += "</console>\n";
|
||||
|
|
@ -156,7 +156,7 @@ public class LibvirtComputingResourceTest {
|
|||
vmStr += "<serial type='pty'>\n";
|
||||
vmStr += "<target port='0'/>\n";
|
||||
vmStr += "</serial>\n";
|
||||
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n";
|
||||
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "'/>\n";
|
||||
vmStr += "<console type='pty'>\n";
|
||||
vmStr += "<target port='0'/>\n";
|
||||
vmStr += "</console>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue