Skip to content

Commit

Permalink
rp_api_key replaced rp_uuid in RP pytest plugin config (#11678)
Browse files Browse the repository at this point in the history
rp_api_key replaced rp_uuid in RP pytest plugin config
  • Loading branch information
jyejare authored Jun 14, 2023
1 parent 77ded4f commit cff4255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_plugins/rerun_rp/rerun_rp.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def pytest_collection_modifyitems(items, config):
failed/skipped and user-specific tests in Report Portal
"""
rp_url = settings.report_portal.portal_url or config.getini('rp_endpoint')
rp_uuid = config.getini('rp_uuid') or settings.report_portal.api_key
rp_api_key = config.getini('rp_api_key') or settings.report_portal.api_key
# prefer dynaconf setting before ini config as pytest-reportportal plugin uses default value
# for `rp_launch` if none is set there
rp_launch_name = settings.report_portal.launch_name or config.getini('rp_launch')
Expand All @@ -87,7 +87,7 @@ def pytest_collection_modifyitems(items, config):
tests = []
if not any([fail_args, skip_arg, user_arg]):
return
rp = ReportPortal(rp_url=rp_url, rp_api_key=rp_uuid, rp_project=rp_project)
rp = ReportPortal(rp_url=rp_url, rp_api_key=rp_api_key, rp_project=rp_project)

if ref_launch_uuid:
logger.info(f'Fetching A reference Report Portal launch {ref_launch_uuid}')
Expand Down

0 comments on commit cff4255

Please sign in to comment.