theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
149 stars 166 forks source link

Make registration_command run against live Satellite #1731

Closed Griffin-Sullivan closed 7 months ago

Griffin-Sullivan commented 7 months ago

Enabling this in robottelo in a separate PR: https://github.com/SatelliteQE/robottelo/pull/14866

While verifying a BZ I tried to run the test playbook for RC and found it needed an activation key.

evgeni commented 7 months ago

Heh, that's an interesting one. In plain foreman, there are no AKs and they are not needed for registration. Once you add Katello to the mix things change.

I'm fine to only test the katello way (in other places we have multiple test playbooks, one for plain foreman, one for katello/luna).

You gotta change the symlink of the apidoc json to katello, otherwise tests will be failing as AK is an unknown parameter in the foreman scenario.