Bug 1486609

Summary: GET/POST/PUT requests to smart_proxies never return 'download_policy' param
Product: Red Hat Satellite Reporter: Andrii Balakhtar <abalakht>
Component: Capsule - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ddolguik, sokeeffe
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:45:31 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:

Description Andrii Balakhtar 2017-08-30 09:08:15 UTC
Description of problem:
6.3 introduces ability to set download policies for specific capsule. Via API it can be done by adding extra 'download_policy' param to POST/PUT request to api/v2/smart_proxies . However, api never returns value of such param, making it hard to understand what's its value and whether it was set/changed correctly:

{"created_at":"2017-08-29 14:59:30 UTC","updated_at":"2017-08-29 15:11:56 UTC","name":"example.com","id":3,"url":"https://example.com:9090","features":[...],"locations":[],"organizations":[]}

PUT ({"smart_proxy": {"download_policy": "on_demand"}}):
{"created_at":"2017-08-29 14:59:30 UTC","updated_at":"2017-08-29 15:13:08 UTC","name":"example.com","id":3,"url":"https://example.com:9090","features":[...],"locations":[],"organizations":[]}

{"created_at":"2017-08-30 08:40:13 UTC","updated_at":"2017-08-30 08:40:13 UTC","name":"example.com","id":2,"url":"https://example.com:14267","features":[...],"locations":[...],"organizations":[...]}

Version-Release number of selected component (if applicable):
Satellite 6.3.0 Snap 13

How reproducible:

Steps to Reproduce:
1. Make GET/POST/PUT request to api/v2/smart_proxies

Actual results:
'download_policy' is not returned (see `Description of problem`)

Expected results:
'download_policy' param value is returned

Additional info:

Comment 2 Bryan Kearney 2018-09-04 17:45:31 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 3 Sean O'Keeffe 2018-09-05 07:47:18 UTC
FYI - This was fixed upstream already and *should* be pulled into a future major release.