https://github.com/redhatqe/pulp-automation
Some pulp testing automation
https://github.com/redhatqe/pulp-automation
Last synced: 8 months ago
JSON representation
Some pulp testing automation
- Host: GitHub
- URL: https://github.com/redhatqe/pulp-automation
- Owner: RedHatQE
- License: gpl-2.0
- Created: 2013-09-20T12:30:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-06T12:15:12.000Z (over 10 years ago)
- Last Synced: 2025-04-20T01:33:11.031Z (9 months ago)
- Language: Python
- Size: 2.1 MB
- Stars: 7
- Watchers: 15
- Forks: 15
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pulp-Automation
===============
Some pulp API/CLI testing automation
Contents:
---------
/deploy - thereis an ~~ansible and~~ ec2 pulp deployment
ansible deployment (temporarily) moved to https://github.com/peterlacko/pulp-automation-ci
/tests - pulp api/cli testcases
/pulp_auto - our library
Requirements for running:
-------------------------
Please make sure that before running setup.py you have `python2.7, python-devel, m2crypto and gcc installed`!
python ./setup.py install
Basic usage:
------------
To run tests:
* `cd pulp-automation; cp tests/inventory.yaml ./` and update the template as needed (visit the file for instructions)
* To run all tests:
nosetests -vs
* To run a particular test:
nosetests -vs tests/test_1_login.py
All testcases should pass. If something fails it means that:
* there is a regression bug,
* some bugs are on_qa state and expected failure decorator(used to mark automated BZ tests as pass) should be removed,
* there is a problem in the framework
To do test coverage:
--------------------
* set up [remote python tracing](https://github.com/RedHatQE/python-moncov)
* run test cases while collecting coverage records
* visit `.coveragerc`
* [generate coverage stats](https://github.com/RedHatQE/python-moncov/wiki/coverage-with-python-files-over-sshfs)
Docker usage
------------
To run, set the env variable `PULPHOST` to override packaged `inventory.yaml` entries:
`docker run -it -e PULPHOST=pulp.example.com redhatqe/pulp-automation:latest`
The default pulp hostname used in the inventory is `pulp.example.com`
Setting up hostnames resolution should also make the tests run.
The pulp-automation image uses a volume--workdir to run nosetest in.
You can find the test results in the workdir counterpart on your docker host, such as:
`/mnt/sda1/var/lib/docker/vfs/dir//`
Having run the container, you should find e.g. `nosetests.xml` inside, which you could feed to your `Jenkins` server.
The pulp-automation image repo is hosted on the [Docker Hub](https://registry.hub.docker.com/u/redhatqe/pulp-automation/)