Checkout the code

Share the code

In order to have your latest code available also on the AutoQA server and the AutoQA client, you will export your development directory over NFS and mount it on those machines.

Install NFS service:

# yum install nfs-utils
# chkconfig nfs on

Put the following into /etc/exports:

/home/joe/autoqa *(rw,all_squash,anonuid=500,anongid=500)

Replace the path with the correct one, replace UID and GID numbers with your UID and GID numbers, and optionally replace the star with a network subset definition for better security (e.g. 192.168.1.0/24 if your server and client are on that network subset).

Restart NFS service:

# service nfs restart

Watch for SELinux and firewall configurationFedora has SELinux and firewall enabled by default. While setting up network services on your machines you must also configure SELinux and firewall accordingly, or disable them completely. SELinux can be disabled in /etc/selinux/config and firewall by setting chkconfig iptables off.

Install AutoQA server

Install a machine that you want to use as an AutoQA server. It may be a virtual machine. Then execute all the steps below on that new machine.

(Optional) Install mock_fedorainfra according to the installation guide (as WSGI application). This will allow you to use fake Bodhi server to send AutoQA results to. Then edit autoqa.conf and set bodhi_server = http://your_server/bodhi/ (external URL) and send_bodhi_comments = true. Provide some fake FAS credentials in secrets.conf.

Install AutoQA client

The workflow

You do all the coding on your local machine. Nothing is executed there, so you don't have to be afraid about losing your data or anything like that.

Any time you want to test some changes on your AutoQA server, you have to log in there and perform the following:

# cd /autoqa
# make clean install && service autotestd restart

You can use your AutoQA server for local execution of your tests. Just append --local to the command (see Writing AutoQA Tests#Run your test). Don't forget to run make clean install after you do some changes in your code.

If you don't append the --local option, the test will be scheduled on the AutoQA client.