SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 112 forks source link

API no longer supports content_override parameter; change to content_overrides #7658

Closed swadeley closed 4 years ago

swadeley commented 4 years ago

This content_override parameter was already deprecated, says jturel, and in 6.7 it is now removed.[1][2]

Note that content_overrides is an array of overrides:

Previously: {"content_override": {"content_label": "rhel-6-server-kickstart", "value": "1"}} Now should be: {"content_overrides": [{"content_label": "rhel-6-server-kickstart", "value": "1"}]}

[1] apidoc/v2/activation_keys/content_override.html [2] https://projects.theforeman.org/issues/27221

swadeley commented 4 years ago

Hello

I found these places have data={'content_override'

https://github.com/SatelliteQE/robottelo/blob/f5165765ef87e068d28d3a62631ea21ada5f0fd2/tests/foreman/longrun/test_inc_updates.py#L177

https://github.com/SatelliteQE/robottelo/blob/f5165765ef87e068d28d3a62631ea21ada5f0fd2/tests/foreman/endtoend/test_api_endtoend.py#L1280

This is not an example of this issue. This works as is: https://github.com/SatelliteQE/robottelo/blob/f5165765ef87e068d28d3a62631ea21ada5f0fd2/tests/foreman/cli/test_activationkey.py#L1521