Skip to main content

Avocado Plugin to propagate Job results to Resultsdb

Project description

This optional plugin is intended to propagate the Avocado Job results to a given ResultsDB API URL.

To install the ResultsDB plugin from pip, use:

pip install avocado-framework-plugin-resultsdb

Usage:

$ avocado run avocado/examples/tests/passtest.py --resultsdb-api http://resultsdb.example.com/api/v2.0/

Optionally, you can provide the URL where the Avocado logs are published:

$ avocado run avocado/examples/tests/passtest.py --resultsdb-api http://resultsdb.example.com/api/v2.0/ --resultsdb-logs http://avocadologs.example.com/

The --resultsdb-logs is a convenience option that will create links to the logs in the ResultsDB records. The links will then have the following formats:

  • ResultDB group (Avocado Job):

    http://avocadologs.example.com/job-2021-09-30T22.16-f40403c/
  • ResultDB result (Avocado Test):

    http://avocadologs.example.com/job-2021-09-30T22.16-f40403c/test-results/1-passtest.py:PassTest.test/

You can also set the ResultsDB API URL and logs URL using a config file:

[plugins.resultsdb]
api_url = http://resultsdb.example.com/api/v2.0/
logs_url = http://avocadologs.example.com/

And then run the Avocado command without the --resultsdb-api and --resultsdb-logs 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_resultsdb-108.0.tar.gz.

File metadata

File hashes

Hashes for avocado_framework_plugin_resultsdb-108.0.tar.gz
Algorithm Hash digest
SHA256 183646e918b46ba815c6022b0668dbe40208825697adc5415c69cfd7998c7129
MD5 7cfb55246cf9c8f29775dd592b801dcc
BLAKE2b-256 3c4055ad10b16b998c535f7bf81fb7e3bc579b1668152b879779e7f558b04800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for avocado_framework_plugin_resultsdb-108.0-py3-none-any.whl
Algorithm Hash digest
SHA256 394f5f4f6c966e91cc972cfb341aae40668b0ede0952af83006d5563bfe073b3
MD5 1a04d097725825fd39b59ad9471396aa
BLAKE2b-256 5493477baaea4367303b1d9270fbd7bde25d962c6a7ff574be97931a786820bc

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