See 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/105/display/redirect>

------------------------------------------
[...truncated 5161 lines...]
                      e.message['\''desc'\''])
>           assert False
E           assert False

<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/ws/source/389-ds-base/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py>:313:
 AssertionError
----------------------------- Captured stderr call -----------------------------
INFO:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:Running 
test_rootdn_access_denied_ip...
CRITICAL:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:test_rootdn_access_denied_ip:
 Root DN bind failed unexpectedly failed: error Server is unwilling to perform
________________________ test_rootdn_access_denied_host ________________________

topology_st = <lib389.topologies.TopologyMain object at 0x7f6245c8eed0>

    def test_rootdn_access_denied_host(topology_st):
        '\'''\'''\''
        Test denied Host feature - we can just test denying localhost
        '\'''\'''\''
    
        log.info('\''Running test_rootdn_access_denied_host...'\'')
        hostname = socket.gethostname()
        localhost = DirSrvTools.getLocalhost()
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_ADD,
                                                         
'\''rootdn-deny-host'\'',
                                                         hostname)])
            if localhost != hostname:
                topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_ADD,
                                                             
'\''rootdn-deny-host'\'',
                                                             localhost)])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_denied_host: Failed to set deny 
host: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        #
        # Bind as Root DN - should fail
        #
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
            succeeded = True
        except ldap.LDAPError as e:
            succeeded = False
    
        if succeeded:
            log.fatal('\''test_rootdn_access_denied_host: Root DN was 
incorrectly able to bind'\'')
            assert False
    
        #
        # Change the denied host so root DN succeeds
        #
        try:
            topology_st.standalone.simple_bind_s(USER1_DN, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_denied_host: : failed to bind as 
user1'\'')
            assert False
    
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 
'\''rootdn-deny-host'\'', '\''i.dont.exist.com'\'')])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_denied_host: Failed to set rootDN 
plugin config: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_denied_host: Root DN bind failed 
unexpectedly failed: error '\'' +
                      e.message['\''desc'\''])
>           assert False
E           assert False

<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/ws/source/389-ds-base/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py>:390:
 AssertionError
----------------------------- Captured stderr call -----------------------------
INFO:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:Running 
test_rootdn_access_denied_host...
CRITICAL:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:test_rootdn_access_denied_host:
 Root DN bind failed unexpectedly failed: error Server is unwilling to perform
________________________ test_rootdn_access_allowed_ip _________________________

topology_st = <lib389.topologies.TopologyMain object at 0x7f6245c8eed0>

    def test_rootdn_access_allowed_ip(topology_st):
        '\'''\'''\''
        Test allowed ip feature
        '\'''\'''\''
    
        log.info('\''Running test_rootdn_access_allowed_ip...'\'')
    
        #
        # Set allowed host to an unknown host - blocks the Root DN
        #
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 
'\''rootdn-allow-ip'\'', '\''255.255.255.255'\'')])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_ip: Failed to set allowed 
host: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        #
        # Bind as Root DN - should fail
        #
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
            succeeded = True
        except ldap.LDAPError as e:
            succeeded = False
    
        if succeeded:
            log.fatal('\''test_rootdn_access_allowed_ip: Root DN was 
incorrectly able to bind'\'')
            assert False
    
        #
        # Allow localhost
        #
        try:
            topology_st.standalone.simple_bind_s(USER1_DN, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_ip: : failed to bind as 
user1'\'')
            assert False
    
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 
'\''rootdn-allow-ip'\'', '\''127.0.0.1'\''),
                                                        (ldap.MOD_ADD, 
'\''rootdn-allow-ip'\'', '\''::1'\'')])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_ip: Failed to set allowed 
host: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_ip: Root DN bind failed 
unexpectedly failed: error '\'' +
                      e.message['\''desc'\''])
>           assert False
E           assert False

<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/ws/source/389-ds-base/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py>:464:
 AssertionError
----------------------------- Captured stderr call -----------------------------
INFO:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:Running 
test_rootdn_access_allowed_ip...
CRITICAL:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:test_rootdn_access_allowed_ip:
 Root DN bind failed unexpectedly failed: error Server is unwilling to perform
_______________________ test_rootdn_access_allowed_host ________________________

topology_st = <lib389.topologies.TopologyMain object at 0x7f6245c8eed0>

    def test_rootdn_access_allowed_host(topology_st):
        '\'''\'''\''
        Test allowed ip feature
        '\'''\'''\''
    
        log.info('\''Running test_rootdn_access_allowed_host...'\'')
    
        #
        # Set allowed host to an unknown host - blocks the Root DN
        #
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 
'\''rootdn-allow-host'\'', '\''i.dont.exist.com'\'')])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_host: Failed to set 
allowed host: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        #
        # Bind as Root DN - should fail
        #
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
            succeeded = True
        except ldap.LDAPError as e:
            succeeded = False
    
        if succeeded:
            log.fatal('\''test_rootdn_access_allowed_host: Root DN was 
incorrectly able to bind'\'')
            assert False
    
        #
        # Allow localhost
        #
        try:
            topology_st.standalone.simple_bind_s(USER1_DN, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_host: : failed to bind as 
user1'\'')
            assert False
    
        hostname = socket.gethostname()
        localhost = DirSrvTools.getLocalhost()
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_DELETE,
                                                         
'\''rootdn-allow-host'\'',
                                                         None)])
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_ADD,
                                                         
'\''rootdn-allow-host'\'',
                                                         localhost)])
            if hostname != localhost:
                topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_ADD,
                                                             
'\''rootdn-allow-host'\'',
                                                             hostname)])
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_host: Failed to set 
allowed host: error '\'' +
                      e.message['\''desc'\''])
            assert False
    
        try:
            topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
        except ldap.LDAPError as e:
            log.fatal('\''test_rootdn_access_allowed_host: Root DN bind failed 
unexpectedly failed: error '\'' +
                      e.message['\''desc'\''])
>           assert False
E           assert False

<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/ws/source/389-ds-base/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py>:548:
 AssertionError
----------------------------- Captured stderr call -----------------------------
INFO:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:Running 
test_rootdn_access_allowed_host...
CRITICAL:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:test_rootdn_access_allowed_host:
 Root DN bind failed unexpectedly failed: error Server is unwilling to perform
_________________________ test_rootdn_config_validate __________________________

topology_st = <lib389.topologies.TopologyMain object at 0x7f6245c8eed0>

    def test_rootdn_config_validate(topology_st):
        '\'''\'''\''
        Test configuration validation
    
        test single valued attributes: rootdn-open-time,
                                       rootdn-close-time,
                                       rootdn-days-allowed
    
        '\'''\'''\''
    
        log.info('\''Running test_rootdn_config_validate...'\'')
    
        #
        # Test rootdn-open-time
        #
        try:
            topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 
'\''rootdn-open-time'\'', '\''0000'\'')])
            log.fatal('\''test_rootdn_config_validate: Incorrectly allowed to 
just add "rootdn-open-time" '\'')
>           assert False
E           assert False

<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/NIGHTLY/ws/source/389-ds-base/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py>:588:
 AssertionError
----------------------------- Captured stderr call -----------------------------
INFO:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:Running 
test_rootdn_config_validate...
CRITICAL:dirsrvtests.tests.suites.plugins.rootdn_plugin_test:test_rootdn_config_validate:
 Incorrectly allowed to just add "rootdn-open-time" 
========= 8 failed, 614 passed, 1 skipped, 1 error in 9266.61 seconds 
=========='
+ '[' 1 -ne 0 ']'
+ echo CI Tests 'FAILED!'
CI Tests FAILED!
+ MSG=FAILED
+ RC=1
+ sudo /usr/sbin/sendmail [email protected] [email protected]
+ sudo rm -rf /var/tmp/slapd.vg.30965 /var/tmp/slapd.vg.31070 
/var/tmp/slapd.vg.4138 /var/tmp/slapd.vg.48069
+ exit 1
Build step 'Execute shell' marked build as failure
_______________________________________________
389-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to