robottelo icon indicating copy to clipboard operation
robottelo copied to clipboard

[6.14.z] Fix cli yum repo authentication test

Open Satellite-QE opened this issue 4 months ago • 4 comments

Cherrypick of PR: https://github.com/SatelliteQE/robottelo/pull/16640

Problem Statement

'generator' object has no attribute 'copy'

Solution

There were multiple levels to this error:

  • fix parametrization error AttributeError: 'generator' object has no attribute 'copy'
  • fix assertion
  • filter invalid parametrizations by adding 'yum_compatible' flag
    • 'latin-1' codec can't encode characters
    • Validation failed: Upstream password requires upstream username be set.
    • Validation failed: Upstream username is too long (maximum is 255 characters)

What was sadly not done:

  • make parametrization ids readable for meanigful debugging

Related Issues

PRT test tests/foreman/cli/test_repository.py::TestRepository::test_negative_synchronize_auth_yum_repo

Satellite-QE avatar Oct 24 '24 17:10 Satellite-QE