Hide Forgot
Description of problem: It is possible to create an activation key for the locker environment. Such activation key is not valid as it should not be possible to register against locker environments. Steps to Reproduce: 1. katello activation_key create --name ak --environment Locker 2. 3. Actual results: Creates an activation key without any error. Expected results: Should not create the activation key but print a message and return a non-zero return code.
commit 39d1defa09753c50a6f57be07797700396804d5c Author: Tomas Strachota <tstrachota> Date: Thu Dec 8 10:12:28 2011 +0100 755919 - validation in activation key model, can't be created for Locker env
[root@XXXX ~]# katello --username admin --password admin activation_key create --name kb --environment Locker --org ACME_Corporation Validation failed: Cannot create activation keys in Locker environment rpm -qav | grep -i katello katello-trusted-ssl-cert-1.0-1.noarch katello-cli-common-0.1.23-3.el6.noarch katello-certs-tools-1.0.1-2.el6.noarch katello-glue-foreman-0.1.135-2.el6.x86_64 katello-qpid-broker-key-pair-1.0-1.noarch katello-cli-0.1.23-3.el6.noarch katello-all-0.1.135-2.el6.x86_64 katello-configure-0.1.31-2.el6.noarch katello-common-0.1.135-2.el6.noarch katello-glue-candlepin-0.1.135-2.el6.x86_64 katello-0.1.135-2.el6.x86_64 katello-httpd-ssl-key-pair-1.0-1.noarch katello-glue-pulp-0.1.135-2.el6.x86_64