Skip to content
/ tp-spice Public
forked from spiceqa/tp-spice

Test provider for Spice tests as a part of avocado-vt

License

Notifications You must be signed in to change notification settings

rdkdd/tp-spice

This branch is 87 commits behind spiceqa/tp-spice:master.

Folders and files

NameName
Last commit message
Last commit date
Jul 11, 2017
Sep 1, 2017
Sep 12, 2016
Jun 30, 2015
Aug 30, 2017
Jun 30, 2015
Jun 30, 2015
Oct 19, 2016
Dec 20, 2016
Sep 12, 2016
Aug 9, 2017
Apr 3, 2017

Repository files navigation

Spice test provider for avocado-vt

Travis-ci status

https://travis-ci.org/spiceqa/tp-spice.svg?branch=master

Howto start

Before start, update run.cfg file and add something like this to the end:

only RHEL.7.1.x86_64..role-guest, RHEL.6.7.i386..role-client

This is done automatically for Beaker task spice-qe-tests

General info

This tests depends on another test provider: tp-qemu

This is tests provider from SPICE QE

http://virt-test.readthedocs.org/en/latest/basic/TestProviders.html

Test files can be at any directory. Avocado-VT will be able to find it.

virtio-win

Windows should be provided with virtio-drivers to use: virtio_blk, virtio_scsi, virtio_net. You can find virtio-win package at brewweb.

# rpm -qf /usr/share/virtio-win/virtio-win-1.7.4.iso
virtio-win-1.7.4-1.el6_6.noarch

Vista drivers for Unattended install http://www.scribd.com/doc/17471845/FireGeier-Unattended-Vista-Guide-2#scribd

# Windows
drvload vioscsi.inf
drvload viostor.inf
drvload BALLOON.INF
drvload NETKVM.INF
drvload VIORNG.INF
drvload VIOSER.INF
pnputil -i -a .inf

# dism /image:d:\ /add-driver
/driver:e:\virtio\amd64\win2008\viostor.inf

# NETCFG -WINPE to install the WinPE network stack

Code notes

print "1:" + str(params.get("os_variant"))
print "2:" + str(guest_vm.params.get("os_variant"))

Result is different:

1:None
2:rhel7

Style

  • We use NumPy style docstrings.
  • PEP8 – Style Guide for Python Code.
  • Google Python Style Guide.
  • PEP257 – Docstring Conventions
  • Documentation is generated by Sphinx with autodoc and napoleon extensions.

HINTS

# avocado vt-bootstrap # avocado run --show-job-log io-github-autotest-qemu.boot --vt-extra-params 'image_name=images/rhel67-32_client' 'kill_vm_timeout = 30000'

SSL Information

Certificates are generated at VM start. Place is:

virttest/qemu_vm.py
if optget("spice_ssl") == "yes":
utils_misc.create_x509_dir(prefix, c_subj, s_subj, passwd,
                                              secure)

To check subject of cert:

openssl x509 -in /tmp/spice_x509d/server-cert.pem -noout -text | grep Subject
        Subject: C=CZ, L=BRNO, O=SPICE, CN=10.34.72.94

Client tests

Directory client-tests contains tests for RV user interface. This tests are copied to client VM and are run inside client VM.

Configs

http://avocado-vt.readthedocs.io/en/latest/CartesianConfig.html

             tests-shared-spice.cfg           tests-shared-qemu.cfg
base.cfg       +      X<-------------+top.cfg+----------->X    +    base.cfg
machines.cfg+-------->X                                   X<-------+machines.cfg
subtests.cfg   |      X<------+assignments-w-sfx.cfg+---->X    |    guest-os.cfg
guest-os.cfg   | suffix / join                                 |    guest-hw.cfg
guest-hw.cfg   |      X<------+tests-variants.cfg              |
cdkeys.cfg     |                      X<------+spice-base.cfg  |
virtio-win.cfg |                                               |
               |                                               |
               |                      tests.cfg+----->Result   |
               |             run.cfg+---->X                    |
               +------------------------->X<-------------------+

About

Test provider for Spice tests as a part of avocado-vt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%