[Freeipa-devel] [PATCH 016, 024, 025] First part of the replica promotion tests + testplan

Oleg Fayans ofayans at redhat.com
Tue Mar 8 11:38:00 UTC 2016


The patches were rebased against the current master

On 03/04/2016 05:33 PM, Martin Basti wrote:
> * old messages have been removed *
>>>>> 1)
>>>>> this method is unused please remove it
>>>>>
>>>>>      def test_kra_install_master(self):
>> Well, in fact it is used twice: in both domain levels, so I'd better
>> keep it:
>>
>> -bash-4.3$ ipa-run-tests test_integration/test_replica_promotion.py
>> --collect-only
>> ====================================================================================
>>
>> test session starts
>> =====================================================================================
>>
>> platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.3
>> rootdir: /usr/lib/python2.7/site-packages/ipatests, inifile: pytest.ini
>> plugins: sourceorder, multihost
>> collected 8 items
>> <Module 'test_integration/test_replica_promotion.py'>
>>    <Class 'TestReplicaPromotionLevel0'>
>>      <Instance '()'>
>>        <Function 'test_kra_install_master'>
>>        <Function 'test_promotion_disabled'>
>>        <Function 'test_backup_restore'>
>>    <Class 'TestKRAInstall'>
>>      <Instance '()'>
>>        <Function 'test_kra_install_without_replica_file'>
>>    <Class 'TestCAInstall'>
>>      <Instance '()'>
>>        <Function 'test_ca_install_without_replica_file'>
>>    <Class 'TestReplicaPromotionLevel1'>
>>      <Instance '()'>
>>        <Function 'test_kra_install_master'>
>>        <Function 'test_replica_prepare_disabled'>
>>    <Class 'TestReplicaManageCommands'>
>>      <Instance '()'>
>>        <Function 'test_replica_manage_commands'>
> aah my bad, I forgot that pytest executes it when it begins with test_*
> even in parent class
>>
>>>>> 2)
>>>>> Why are these there? I do not see any usage
>>>>>
>>>>> from env_config import get_global_config
>>>>> config = get_global_config()
>> Removed
>>
>>>>> 3) nitpick
>>>>> +    num_clients = 0
>>>>> this is set by default
>> Removed
>>
>>>>> otherwise LGTM
>>>>>
>>>>> Results of testing tomorrow.
>>>>>
>>>>> Martin^2
>>>>>
>>>> I applied all patches including workarounds, but test failed.
>>>>
>>>> ipatests.test_integration.test_replica_promotion.TestReplicaPromotionLevel0
>>>>
>>>>
>>>>
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51] RUN
>>>> ['ipa-replica-install', '-U', '-p', 'Secret123', '-w', 'Secret123',
>>>> '--setup-ca', '--ip-address', '192.168.144.102',
>>>> '/root/ipatests/replica-info.gpg']
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51] The host
>>>> replica1.ipa.test already exists on the master server.
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51] You should
>>>> remove it before proceeding:
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51]     % ipa
>>>> host-del replica1.ipa.test
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51]
>>>> ipa.ipapython.install.cli.install_tool(Replica): ERROR    The
>>>> ipa-replica-install command failed. See
>>>> /var/log/ipareplica-install.log for more information
>>>> [ipa.ipatests.test_integration.host.Host.replica1.cmd51] Exit code: 3
>>>> FAILED
>> this is exactly the error that happens when a workaround for 5627 is not
>> applied. I have re-run the tests with all the patches and everything
>> passed. Could you please double-check, whether patch 0027 was applied
>> correctly?
>>
>> bash-4.3$ ipa-run-tests test_integration/test_replica_promotion.py --pdb
>> ====================================================================================
>>
>> test session starts
>> =====================================================================================
>>
>> platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.3
>> rootdir: /usr/lib/python2.7/site-packages/ipatests, inifile: pytest.ini
>> plugins: sourceorder, multihost
>> collected 8 items
>>
>> test_integration/test_replica_promotion.py ........
>>
>> ================================================================================
>>
>> 8 passed in 7561.93 seconds
>> =================================================================================
>>
>>
> I will
> 
>>> And it needs ticket, otherwise it will not be in 4-3 branch.
>> https://fedorahosted.org/freeipa/ticket/5723
> 

-- 
Oleg Fayans
Quality Engineer
FreeIPA team
RedHat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-ofayans-0024.2-Enabled-setting-domain-level-explicitly-in-test-clas.patch
Type: text/x-patch
Size: 4116 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160308/18127c92/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-ofayans-0026.1-replica-installation-fixes.patch
Type: text/x-patch
Size: 1807 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160308/18127c92/attachment-0001.bin>


More information about the Freeipa-devel mailing list