Skip to content

This repository stores test plans for running tests in Testing Farm

License

Notifications You must be signed in to change notification settings

linux-system-roles/tft-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tft-tests

This repository stores test plans for running tests in Testing Farm.

So far, it contains a single plan and a single test.

Prerequisites

  1. Install tmt
  2. Edit environment section in plans/general.fmfwith corresponding values.

Running tests

You can run tests on local VMs, or in Testing Farm.

Running in Testing Farm

testing-farm CLI does not support running multihost test plans, but you can keep the tests running in the CI and SSH into the test systems for troubleshooting. To do this, uncomment the discover step reserve_system in a test plan. This step inserts sleep 5h at the end of the test to keep systems running.

You can SSH into the systems using 1minutetip id_rsa. If you do not have access to 1minutetip id_rsa, you can provide a ID_RSA_PUB evnironment variable, in this case the test would copy the provided key to ~/.ssh/authorized_keys. You can find system's IP addresses in guests.yaml file uploaded to Fedora storage together with test playbooks logs.

For singlehost tests, make a reservation by following Test Environment Reservation.

Running tests on local VMs

Enter tmt try with a plan and platform that you wish to test, e.g. tmt try -p general CentOS-Stream-9.

Multihost tests with more than 2 hosts break terminal, see teemtee/tmt#3138.

You can use get_ssh_cmds.sh to generate ssh commands from a run number to be able to ssh into test systems.

Upstream tests

Upstream tests are run with the Schedule tests on Testing Farm GitHub action.

About

This repository stores test plans for running tests in Testing Farm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages