Description of problem: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-hbacsvc-cli-001: Negative - Add HBAC Service that already exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa hbacsvc-add sshd :: [ LOG ] :: "ipa hbacsvc-add sshd" failed as expected. :: [ LOG ] :: ERROR: Message not as expected. GOT: ipa: ERROR: This entry already exists EXP: ipa: ERROR: HBAC service with name sshd already exists :: [ FAIL ] :: Verify expected error message for empty Rule Type (Expected 0, got 1) :: [ LOG ] :: Duration: 9s :: [ LOG ] :: Assertions: 0 good, 1 bad :: [ FAIL ] :: RESULT: ipa-hbacsvc-cli-001: Negative - Add HBAC Service that already exists Attempting to add duplicate objects normally return a better error message like "ipa: ERROR: HBAC rule with name test already exists" Version-Release number of selected component (if applicable): ipa-server-1.91-0.2010110118git813dfe5.fc12.i686 ipa-admintools-1.91-0.2010110118git813dfe5.fc12.i686 How reproducible: always Steps to Reproduce: 1. ipa hbacsvc-add sshd 2. 3. Actual results: ipa: ERROR: This entry already exists Expected results: ipa: ERROR: HBAC service with name sshd already exists Additional info:
I'm not sure what is inconsistent about this. Unexpected, maybe, but inconsistent with what?
https://fedorahosted.org/freeipa/ticket/530
commit: 9120155daeeee8287115a09f280f0e4f075f96df
verified # rpm -qi ipa-server | head Name : ipa-server Relocations: (not relocatable) Version : 2.0.0 Vendor: Red Hat, Inc. Release : 23.el6 Build Date: Wed 20 Apr 2011 09:57:13 AM EDT Install Date: Thu 19 May 2011 12:47:52 PM EDT Build Host: x86-003.build.bos.redhat.com Group : System Environment/Base Source RPM: ipa-2.0.0-23.el6.src.rpm Size : 2565882 License: GPLv3+ Signature : RSA/8, Thu 21 Apr 2011 03:48:25 PM EDT, Key ID 199e2f91fd431d51 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.freeipa.org/ Summary : The IPA authentication server :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-hbacsvc-cli-001: Negative - Add HBAC Service that already exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [16:05:48] :: Executing: ipa hbacsvc-add sshd ipa: ERROR: hbacsvc with name "sshd" already exists :: [16:05:50] :: "ipa hbacsvc-add sshd" failed as expected. :: [16:05:51] :: Error message as expected: ipa: ERROR: hbacsvc with name sshd already exists :: [ PASS ] :: Verify expected error message for empty Rule Type '9d0eeaa6-da29-4bf6-a98b-c22fb578cb9f' ipa-hbacsvc-cli-001 result: PASS metric: 0 Log: /tmp/beakerlib-1459149/journal.txt Info: Searching AVC errors produced since 1300824348.38 (Tue Mar 22 16:05:48 2011) Searching logs... Info: No AVC messages found. Writing to /mnt/testarea/tmp.3tBDFf : AvcLog: /mnt/testarea/tmp.3tBDFf