https://github.com/redhataccess/cheesecake-api-tests
API tests for Pantheon v2
https://github.com/redhataccess/cheesecake-api-tests
Last synced: about 1 year ago
JSON representation
API tests for Pantheon v2
- Host: GitHub
- URL: https://github.com/redhataccess/cheesecake-api-tests
- Owner: redhataccess
- License: mit
- Created: 2019-10-23T10:26:27.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T11:59:26.000Z (over 4 years ago)
- Last Synced: 2025-01-28T10:44:30.371Z (over 1 year ago)
- Language: Python
- Size: 217 KB
- Stars: 0
- Watchers: 18
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cheesecake-api
API tests for Pantheon v2.
## Setup
### Requirements:
- Python3
- virtualenv
- virtualenvwrapper
```
$ pip install venv virtualenvwrapper
$ mkvirtualenv api-test-env
$ workon api-test-env
```
You will have virtual environment to use where you can install all your dependencies.
### Installation:
- Install all the dependencies.
``` pip3 install -r requirements.txt ```
- Set the PYTHONPATH to your current working directory
``` export PYTHONPATH= ```
```
example:
$ pwd
/home/username/sample/cheesecake-api-tests
$ export PYTHONPATH=/home/username/sample/cheesecake-api-tests
```
## Test Execution:
- Make the changes in the config file for actual values.
``` mv config.ini.sample config.ini ```
Make the appropriate changes to base URL in config.ini file.
* To run the test against QA env, set the environment variable appropriately.
``` export PANTHEON_ENV=qa ```
Acceptable values for PANTHEON_ENV variable are dev/qa/stage.
- To execute the API tests:
``` lcc run ```
- To view the report on the console:
``` lcc report ```
This command will display the last generated report on the console.
- To view the HTML report in browser:
``` firefox report/report.html ```