mvadkert / restraint-workshop-1

Created 6 years ago
Maintained by mvadkert
Workshop about using restraint for test execution in supported Fedora CI environments
Members 1
Miroslav Vadkerti committed 6 years ago

Introduction

Restraint is an alternative Beaker harness. Although it can be used also in non-Beaker environemnts. It is statically linked, so actually should be runnable quite easily without any large deps on the underlying system. It is a client/server architecture, restraintd runs on SUT, restraint-client on the host.

Anatomy standard-test-rhts role

https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-rhts

standard-test-beakerlib role

https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-beakerlib

What will we need

Install vagrant on your machine

https://github.com/thrix/upstream-testing-vagrant/blob/master/README.md

Install docker on your machine

To install docker and be able to use docker as non-root

# dnf -y install docker
# groupadd docker
# usermod -a -G docker YOUR_USER
# systemctl restart docker
(relogin to get docker group or ssh in to your localhost or ...?)

Hackfest outline

Classic

Manual restraint execution

Let's try a reboot

Docker - manual execution

Atomic - manual execution

Links

Restraint docs: rttps://restraint.readthedocs.io/en/latest/

atomic: http://artifacts.ci.centos.org/fedora-atomic/f27/images/latest-atomic.qcow2 docker: fedora:latest classic: Feel free to use this vagrant: https://github.com/thrix/upstream-testing-vagrant