Bug 755919

Summary: Creating an activation key should not work for the locker
Product: Red Hat Satellite Reporter: Tomas Strachota <tstrachota>
Component: APIAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kbidarka
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-0.1.131-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:08:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Tomas Strachota 2011-11-22 12:17:43 UTC
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.

Comment 1 Tomas Strachota 2011-12-08 09:37:25 UTC
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

Comment 2 Kedar Bidarkar 2011-12-15 10:58:55 UTC
[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