Bug 1674415 - syspurpose status states should be one of matched/mismatched/not specified
Summary: syspurpose status states should be one of matched/mismatched/not specified
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 2.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 2.3
Assignee: Nikos Moumoulidis
QA Contact: Katello QA List
: 1654344 (view as bug list)
Depends On: 1660878 1674419
Blocks: 1652870
TreeView+ depends on / blocked
Reported: 2019-02-11 10:03 UTC by Nikos Moumoulidis
Modified: 2019-05-30 12:09 UTC (History)
6 users (show)

Fixed In Version: candlepin-2.3.14-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1660878
Last Closed: 2019-04-12 14:15:18 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github candlepin candlepin pull 2226 None None None 2019-02-11 10:14:41 UTC

Description Nikos Moumoulidis 2019-02-11 10:03:59 UTC
+++ This bug was initially created as a clone of Bug #1660878 +++

Description of problem:
Currently, querying the syspurpose status of a consumer, either by using the /consumers/{consumer_uuid}/purpose_compliance API, or by fetching the consumer with the /consumers/{consumer_uuid} API and then reading the systemPurposeStatus field on that, will show the status to be one of valid/partial/invalid. This does not fit with the original design, which is to return one of these states as a status: matched/mismatched/not specified.

Version-Release number of selected component (if applicable):
All current versions that support syspurpose, up to 2.5.8, 2.3.11 and master.

How reproducible:

Steps to Reproduce:
1. Perform a GET request on the /consumers/{consumer_uuid}/purpose_compliance API and check the value of the 'status' field.

Actual results:
The status field has the value of either valid, invalid, or partial.

Expected results:
The status field should have the value of either matched, mismatched, or not specified.

Additional info:
An additional minor issue is that the response's 'reasons' include two reasons for each non-compliant SLA or usage, while there should be one for each.

--- Additional comment from Chris Snyder on 2019-01-10 15:24:07 UTC ---

Comment 2 Nikos Moumoulidis 2019-05-30 12:09:13 UTC
*** Bug 1654344 has been marked as a duplicate of this bug. ***

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