libvirt: Adapt the remote config in base.cfg to existing tests.

Since there are several tests in libvirt are using ENTER.YOUR as
the default configuration of remote, we should add this substring
into base.cfg.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: Add remote_pwd into VirshPersistent.__slots__.

If 'remote_pwd' is not in __slots__, we can not pass a remote_pwd
into VirshConnectBack and VirshPersistent, so that we can not connect
to a remote host with password. Same reason to 'remote_user'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml.pool_xml: Fix PoolXMLBase class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh: Add readonly param in __init__ of VirshSession.

As there is no param about readonly for VirshSession, then we
can not create a readonly Virsh session. This patch add a param
in __init__ of VirshSession class and pass readonly in new_session()
of VirshPersistent. Then we can create a readonly VirshSession and
a readonly VirshPersistent.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Add 'debug' paramter to print result in VirshSession.cmd_result()

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.utils_test: Correct tests script dir for shared script in run_virt_sub_test()

Now we move all the shared test scripts to generic/tests/

Signed-off-by: Feng Yang <fyang@redhat.com>
virsh: Add ShellProcessTerminatedError in close_session.

When a VirshSession is already terminated when we call close_session(),
it will raise a ShellProcessTerminatedError. We should catch it and
notice that this session is already closed.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.libvirt_xml: Add attributes to Video class

Add attributes to Video class to support video device operation.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.virsh: Add screeshot_test function

The screenshot function is used by screendump in VM class, which
lack screen option and will raise error and fail test in negative
test.

Add the screenshot_test function which return CmdResult for test
the screenshot command in libvirt test provider.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml.vm_xml: Add option to get_disk_resource

Add option to get_disk_resource to support extra option when
dumpxml.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh: Fix update dargs before call reference_function in VirshClosure

Update dargs with dict_like_instance but not overwrite values in
dargs, then call the reference_function use dargs.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh: Add virsh itself group commands

Add functions for command 'cd', 'pwd', 'echo', 'exit' and 'quit'.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #1379 from waynesun09/virsh_itself

[PR updated] virsh: Add virsh itself group commands and fix dargs update problem in VirshClosure
Introduce virttest.tests

There are some high profile tests that are both used by
tests in different test providers, and comprise critical
virt-test functionality.

So, introduce a virttest.tests namespace, and put
unattended_install in it. Other tests will follow this
trend.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Add get_correspond_ip() to virttest.utils_net.py

This function may used by other scripts.

Signed-off-by: Feng Yang <fyang@redhat.com>
lvsb: Add '-s' security option support

Signed-off-by: Alex Jia <ajia@redhat.com>
lvsb_base: Add 'dynamic' as default security option

Signed-off-by: Alex Jia <ajia@redhat.com>
Merge pull request #1415 from autotest/1282

PR 1282 remake
virttest.virsh: Add sendkey() API

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
Merge pull request #1416 from autotest/1292

virttest.virsh: Add sendkey() API