Bug 1847720

Summary: addOns should be addons in json response from candlepin server
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stavel <jstavel>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: redakkan
Target Milestone: rc   
Target Release: 8.0   
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: 2020-06-19 14:57:51 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 Jan Stavel 2020-06-16 21:01:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
root@localhost ~]# syspurpose add addons "Resilient storage"
Added Resilient storage to addons.
addons updated.
[root@localhost ~]# syspurpose add NewList "ListItem"
Added ListItem to NewList.
NewList updated.
[root@localhost ~]# subscription-manager register --username jstavel_stage_demo01 --password redhat
You are attempting to use a locale that is not installed.
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 63adfee2-1683-43bf-a40a-d835fa9dfc9a
The registered system name is: localhost.localdomain
export UUID=63adfee2-1683-43bf-a40a-d835fa9dfc9a[root@localhost ~]# export UUID=63adfee2-1683-43bf-a40a-d835fa9dfc9a
[root@localhost ~]# curl -ik -u jstavel_stage_demo01:redhat --request GET "https://subscription.rhsm.stage.redhat.com/subscription/consumers/$UUID?include=role&include=addons"
HTTP/1.1 200 OK
Server: openresty/1.15.8.3
Date: Tue, 16 Jun 2020 20:53:29 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
x-candlepin-request-uuid: d75e98c3-89df-43dd-b026-413ed4c0b05a
X-Version: 2.9.27-1

{"role":"","addOns":["Resilient storage"]}[root@localhost ~]# 



[root@localhost ~]# rpm -qa | grep subscription
subscription-manager-rhsm-certificates-1.27.4-1.el8.x86_64
python3-subscription-manager-rhsm-1.27.4-1.el8.x86_64
subscription-manager-1.27.4-1.el8.x86_64
subscription-manager-initial-setup-addon-1.27.4-1.el8.x86_64
dnf-plugin-subscription-manager-1.27.4-1.el8.x86_64
subscription-manager-cockpit-1.27.4-1.el8.noarch

Comment 1 Rehana 2020-06-19 14:57:51 UTC
Based on the review this is working as designed. Hence moving the bug to closed wont fix