Tests? See - https://github.com/Katello/katello/pull/2791 and specifically https://github.com/Katello/katello/pull/2791/files#diff-36