Bug 1703371

Summary: data_setup causing failures with SQLAlchemy 1.1
Product: [Retired] Beaker Reporter: Martin Styk <mastyk>
Component: testsAssignee: Martin Styk <mastyk>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: bpeck, cbeer, cbouchar, mastyk, tklohna
Target Milestone: 27.0Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-26 15:26:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Styk 2019-04-26 09:17:14 UTC
Description of problem:
function create_distro in data_setup is not working properly when passing value to argument arches is not list of unicode elements. Tests may pass list of Arch instances and this is not properly handled.

This problem is caused by SQLAlchemy. In version 1.1 they added a new feature called "Specific checks added for passing mapped classes, instances as SQL literals"
 

Version-Release number of selected component (if applicable):
26.4
SQLAlchemy 1.1+

How reproducible:
Execute test suite with SQLAlchemy 1.1+

Steps to Reproduce:
1.
2.
3.

Actual results:
sqlalchemy.exc.ArgumentError: Object <> is not legal as a SQL literal value

Expected results:
Runtime without errors.

Additional info: