+++ This bug was initially created as a clone of Bug #1650635 +++
Description of problem:
The consumer's compliance is calculated wrong when the pool he is attached to, and which has at least one addon in common with the ones he specified, supports more than 1 addon.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
- Have a consumer with installed product "product1" and set syspurpose addons to "addon1" and "addon2".
- Attach directly to a pool which provides product1, which has its addons product attribute set to "addon3,addon1"
- Query the consumer's compliance (not the syspurpose compliance, but the general one).
The compliance returned has status 'partial', and has 1 item in 'partiallyCompliantProducts' and 1 item in 'reasons'.
The compliance returned should have status 'valid', and should have no 'partiallyCompliantProducts' or 'reasons', since the pool supports at least one of the addons that the consumer has specified (addon1).
One additional problem: the rules look for the product attribute named 'role' instead of the proper one which is 'roles'.