[katello-devel] Simple cli test -> system test

Lukas Zapletal lzap at redhat.com
Tue Sep 6 15:12:09 UTC 2011


Hello,

when Tomas and I created this simple cli test suite we thought it could 
become system test. And it is here.

I have renamed and moved our "simple cli tests" from

git:scripts/test/katello-cli-simple-test.sh

to

git:cli/test-system/cli-system-test

We should now call them as "system tests" because it provides overall 
testing of Katello and all the backend engines.

Parameters remains the same. To run all system tests, do clean all 
databases and run it. Example:

script/katello-reset-dbs -f
cli/test-system/cli-system-test

It takes a while. We currently have all tests green except the manifest 
import. Very good job.

Please note if you add any new CLI command, please write a system test 
for it. It greatly helps to track Katello health. It is just a bash 
script and it is as easy as (example):

ENV="tstenv_$RAND"
ENV2="tstenv2_$RAND"
test "environment create" environment create --org="$TEST_ORG" 
--name="$ENV" --prior="Locker"
test "environment update" environment update --org="$TEST_ORG" 
--name="$ENV" --new_name="$ENV2"
test "environment list" environment list --org="$TEST_ORG"
test "environment info" environment info --org="$TEST_ORG" --name="$ENV2"
test "environment delete" environment delete --org="$TEST_ORG" 
--name="$ENV2"

I expect QA guys to periodically run this test on all supported 
platforms. There is no support yet, but tests are here and they are working.

-- 
Later,

  Lukas Zapletal | E32E400A
  RHN Satellite Engineering
  Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list