Bug 1703371 - data_setup causing failures with SQLAlchemy 1.1
Summary: data_setup causing failures with SQLAlchemy 1.1
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: tests
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 27.0
Assignee: Martin Styk
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-26 09:17 UTC by Martin Styk
Modified: 2019-04-26 15:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-26 15:26:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Beaker Project Gerrit 6503 0 'None' 'MERGED' 'Update create_distro to handle Arch instances' 2019-12-04 12:01:40 UTC

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:


Note You need to log in before you can comment on or make changes to this bug.