Avocado Plugin to propagate Job results to remote host
Project description
This optional plugin is intended to upload the Avocado Job results to a dedicated sever.
To install the Result Upload plugin from pip, use:
pip install avocado-framework-plugin-result-upload
Usage:
$ avocado run avocado/examples/tests/passtest.py --result-upload-url www@avocadologs.example.com:/var/www/html JOB ID : f40403c7409ef998f293a7c83ee456c32cb6547a JOB LOG : $HOME/avocado/job-results/job-2021-09-30T22.16-f40403c/job.log (1/1) avocado/examples/tests/passtest.py:PassTest.test: STARTED (1/1) avocado/examples/tests/passtest.py:PassTest.test: PASS (0.01 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 JOB HTML : $HOME/avocado/job-results/job-2021-09-30T22.16-f40403c/results.html
Avocado logs will be available at following URL:
ssh
www@avocadologs.example.com:/var/www/html/job-2021-09-30T22.16-f40403c
html (If web server is enabled)
http://avocadologs.example.com/job-2021-09-30T22.16-f40403c/
Such links may be referred by other plugins, such as the ResultsDB plugin.
By default upload will be handled by following command
rsync -arz -e 'ssh -o LogLevel=error -o stricthostkeychecking=no -o userknownhostsfile=/dev/null -o batchmode=yes -o passwordauthentication=no'
Optionally, you can customize uploader command, for example following command upload logs to Google storage:
$ avocado run avocado/examples/tests/passtest.py --result-upload-url='gs://avocadolog' --result-upload-cmd='gsutil -m cp -r'
You can also set the ResultUpload URL and command using a config file:
[plugins.result_upload] url = www@avocadologs.example.com:/var/www/htmlavocado/job-results command='rsync -arzq'
And then run the Avocado command without the explicit command options. Notice that the command line options will have precedence over the configuration file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file avocado_framework_plugin_result_upload-106.0.tar.gz
.
File metadata
- Download URL: avocado_framework_plugin_result_upload-106.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aee302c693f10d4ac23176850e68f1a399def4ae6e132e80466ef1c4f09c61a |
|
MD5 | 4034ee310ba0faf35995e783281497bf |
|
BLAKE2b-256 | db6474418766d965780a61df8fe0d6f55165c98747e3be899656416f66446bf3 |
File details
Details for the file avocado_framework_plugin_result_upload-106.0-py3-none-any.whl
.
File metadata
- Download URL: avocado_framework_plugin_result_upload-106.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cbb575ad0a3c2561539f29c47e777912c4516395cf1787194a1e5dd29a26c1b |
|
MD5 | 3db997d6f30e10a5ea6bddf3f88199bc |
|
BLAKE2b-256 | 0d9f2514109d7a07d23bac056e7b0de258e4ca05ee4060e8033f6257b7586566 |