{"push_id":1255555880,"size":1,"distinct_size":1,"ref":"refs/heads/assets_from_from_any_dir","head":"33babbb9089da6c09585921812222a21a4770f1b","before":"6a428ebdcb20e254e65648e3b19fe15beae81956","commits":[{"sha":"33babbb9089da6c09585921812222a21a4770f1b","author":{"name":"Andrei Stepanov","email":"ad644679a9cf98d4447714b0a88142577aa095a9@redhat.com"},"message":"Allow to use asset .INI files at any directory.\n\n  Previously location for .INI asset files had strictly predefined\n  location: avocado-vt/shared/downloads/asset_name.ini.\n\n  This commit allows to specify path to .INI file. This would allow to\n  test-providers use their own .INI asset files, as well as, it is\n  possible to use multi-section .INI files. For example, SpiceQE team\n  need to have asset file for SeleniumHQ stand-alone-server. This asset\n  is useful only for SpiceQE team. It doesn't have any usage for other\n  QE teams. Moreover, SpiceQE would have a way to define the version and\n  location of Selenium stand-alone-server necessary for SpiceQE tests.\n\n  Example usage\n  -------------\n\n    Selenium asset ini file located at \"$provider_download_dir/assets/selenium.ini\":\n\n        [Selenium]\n        title = SeleniumHQ\n        url = http://selenium-release.storage.googleapis.com/3.0-beta2/selenium-server-standalone-3.0.0-beta2.jar\n        destination = selenium-server-standalone.jar\n\n    Use code:\n\n        from virttest import asset\n        asset_name = \"selenium\"\n        asset_dir = os.path.join(provider_download_dir, \"assets\")\n        asset_section = \"Selenium\"\n        asset_info = asset.get_asset_info(asset_name, dir_=asset_dir,\n                                         section=asset_section)\n        logging.info(\"Asset info: %s\" % asset_info)\n        asset.download_file(asset_info)\n        dst = asset_info['destination']\n        logging.info(\"Asset saved at: %s\" % dst)\n\nSigned-off-by: Andrei Stepanov <astepano@redhat.com>","distinct":true,"url":"https://api.github.com/repos/Andrei-Stepanov/avocado-vt/commits/33babbb9089da6c09585921812222a21a4770f1b"}]}
{"actor":{"display_login":"Andrei-Stepanov"}}