Bug 626452
Summary: | Pulp tests should not require root to run | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | Jason Connor <jconnor> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | jconnor, mmccune, pthomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-02-17 16:52:17 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: | 647488 |
Description
Jay Dobies
2010-08-23 15:24:15 UTC
The config file was not being loaded on the initial test due to the quirks of python imports The config file is now properly parsed (and the config object returned) *before* any tests are run Added a section in the test override file to override the auditing logging as well verified [preethi@preethi unit]$ python test_consumer_history_api.py [preethi@preethi unit]$ python test_repo_sync_schedule.py [preethi@preethi unit]$ python test_role_check.py [2010-10-28 12:32:58.336341] SYSTEM called UserApi.create on login: test-admin some_other_method executed [2010-10-28 12:32:58.575460] SON([(u'_id', u'4b3f9fb0-1903-4d64-9853-0d7975decb2f'), (u'name', None), (u'_ns', u'users'), (u'login', u'test-admin'), (u'password', u'wC9iglAfSHo=,KjUz2ZFCXD9ZIeulZfPa6On7E8FX7EBZ7kg973wycGU='), (u'id', u'4b3f9fb0-1903-4d64-9853-0d7975decb2f')]) called UserApi.clean on .Admin certificate with CN [admin:pulpadmin:12345] is signed by a foreign CA [2010-10-28 12:32:59.486622] None called UserApi.clean on .[2010-10-28 12:32:59.502524] SYSTEM called ConsumerApi.create on id: some-id-cert-test, description: desc, key_value_pairs: <type 'dict'> instance some method executed Checking ID in cert [some-id-cert-test] against expected ID [test_consumer_cert (__main__.TestRoleCheck)] Checking ID in cert [some-id-cert-test] against expected ID [some-id-cert-test] some_other_method3 executed Checking ID in cert [some-id-cert-test] against expected ID [test_consumer_cert (__main__.TestRoleCheck)] Checking ID in cert [some-id-cert-test] against expected ID [fake-consumer-uid] Checking ID in cert [some-id-cert-test] against expected ID [baz] Consumer with id [non-existing-consumer] does not exist [2010-10-28 12:32:59.739510] None called UserApi.clean on .Consumer certificate with CN [localhost] is signed by a foreign CA [2010-10-28 12:32:59.767775] SYSTEM called UserApi.clean on .[2010-10-28 12:32:59.782396] SYSTEM called UserApi.create on login: test_auth Password for user [test_auth] was incorrect User [non existing user] specified in certificate was not found in the system some_other_method executed [2010-10-28 12:33:00.019382] SON([(u'_id', u'31eb4667-be43-4ea6-b52e-beabc40eaa3f'), (u'name', None), (u'_ns', u'users'), (u'login', u'test_auth'), (u'password', u'Nvvg7be15kg=,IOZfOq0+2U8ywIWuYodrjZ2hewu1Lt80oeOGaMP4/1c='), (u'id', u'31eb4667-be43-4ea6-b52e-beabc40eaa3f')]) called UserApi.clean on . ---------------------------------------------------------------------- Ran 5 tests in 1.700s OK [preethi@preethi unit]$ [preethi@preethi unit]$ python test_tasks.py ....................No handlers could be found for logger "pulp.server.tasking.task" .... ---------------------------------------------------------------------- Ran 24 tests in 1.016s OK Closing with community release pulp-0.0.139-1.fc14.noarch |