Skip to main content

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:

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


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-108.0.tar.gz.

File metadata

File hashes

Hashes for avocado_framework_plugin_result_upload-108.0.tar.gz
Algorithm Hash digest
SHA256 ba730dd0bfd4593fa5060880d33f31228e0a91f3c265bb63263c0fd07f788450
MD5 b04072ef0666590251cb87c1f4ede781
BLAKE2b-256 730ef9769c877dcd9a60dbc67e0eae1fe6cb3026effabc226444bd1b644d77b8

See more details on using hashes here.

File details

Details for the file avocado_framework_plugin_result_upload-108.0-py3-none-any.whl.

File metadata

File hashes

Hashes for avocado_framework_plugin_result_upload-108.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2276237458bf13eae8df6c5ec7a98a3994659f8c51224543e6c3a57d7c397fd3
MD5 18b551cd3aa827a7365f7018462d90bd
BLAKE2b-256 9848994ec34648754e94486fb30da14bc222b5585ed52f2f26053c49cedc86a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page