This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multivalue assert not working

Both with ldap connector and edir connector I get pass on both 'contains' and 'not contains' for 'Assert Attributes and Values'.

Using validator v1.5.0.b579 (Release)

Anyone know if this is a known bug, if there is a work around and if not a known bug, where to report this?

The report issue link in validator goes into the void (novell.com) and navigating to
https://bugzilla.netiq.com/enter_bug.cgi?product=IDM Test Suite
does not allow me to report on version 1.5.

BR
/Thomas

  • 0  

    Validator is not a product like the others with a PM, Engineering team, etc. It is more of a result of Consulting needing a tool and then they maintain it.  So weird sometimes getting stuff on it fixed.

    Can you post the trace of the test?

  • 0 in reply to   

    This is what the log says:

    INFO: -------------------------------- TEST ACTION ---------------------------------
    INFO: Verifiera behörigheten inte längre satt (nrfAssignedRoles har INTE behörigheten som värde)
    INFO: eDir Connector: assertAttributesValues (not contains case ignore) - targetFdn: cn=aaaa,.....................
    INFO: eDir Connector: assertAttributesValues (not contains case ignore) - attributesValues: {nrfAssignedRoles=[THE_ROLE]}
    INFO: eDir Connector: assertAttributesValues (not contains case ignore) - PASSED
    INFO: -------------------------------- TEST ACTION ---------------------------------
    INFO: Verifiera behörigheten inte längre satt (nrfAssignedRoles har INTE behörigheten som värde)
    INFO: eDir Connector: assertAttributesValues (contains case ignore) - targetFdn: cn=aaaa,.....................
    INFO: eDir Connector: assertAttributesValues (contains case ignore) - attributesValues: {nrfAssignedRoles=[THE_ROLE]}
    INFO: eDir Connector: assertAttributesValues (contains case ignore) - PASSED

     

    This for all roles but one of the assigned roles.
    I guess this is a multivalue problem.
    If I do a get I only get one value.

    BR
    /Thomas

  • 0
    You should be able to add the bug against 1.5 now.
  • 0

    Hello,

    I did run some tests using the LDAP Connector and I am getting the expected results as you can see below:

     

    02/20/2020 10:20:51 INFO: ================================= TEST =======================================

    02/20/2020 10:20:51 INFO: Executing test: multivaluetest

    02/20/2020 10:20:51 INFO: -------------------------------- TEST ACTION ---------------------------------

    02/20/2020 10:20:51 INFO: Verify role set (nrfAssignedRoles has value)

    02/20/2020 10:20:51 INFO: LDAP Connector: assertAttributesValues (contains case ignore) - targetFdn: cn=TEST,ou=Users,ou=HFMD,ou=dealers,ou=organizations,ou=daimler,o=data

    02/20/2020 10:20:51 INFO: LDAP Connector: assertAttributesValues (contains case ignore) - attributesValues: {nrfAssignedRoles=[cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system]}

    02/20/2020 10:20:51 INFO: LDAP Connector: assertAttributesValues (contains case ignore) - PASSED

    02/20/2020 10:20:51 INFO: -------------------------------- TEST ACTION ---------------------------------

    02/20/2020 10:20:51 INFO: Verify role NOT set (nrfAssignedRoles NOT has value)

    02/20/2020 10:20:51 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - targetFdn: cn=TEST,ou=Users,ou=HFMD,ou=dealers,ou=organizations,ou=daimler,o=data

    02/20/2020 10:20:51 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - attributesValues: {nrfAssignedRoles=[cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system]}

    02/20/2020 10:20:52 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:52 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - retry 1 of 5

    02/20/2020 10:20:53 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:53 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - retry 2 of 5

    02/20/2020 10:20:54 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:54 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - retry 3 of 5

    02/20/2020 10:20:55 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:55 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - retry 4 of 5

    02/20/2020 10:20:56 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:56 INFO: LDAP Connector: assertAttributesValues (not contains case ignore) - retry 5 of 5

    02/20/2020 10:20:57 INFO: Attribute: 'nrfAssignedRoles' Value: 'cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system' (not contains case ignore) found in object.  Current values: [cn=PartsDirector,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>, cn=PartsManager,cn=Level30,cn=RoleDefs,cn=RoleConfig,cn=AppConfig,cn=User Application Driver,cn=driverset1,o=system#0#<assignment><start_tm>20200207222846Z</start_tm><req_tm>20200207222846Z</req_tm><req>cn=uaadmin,ou=sa,o=data</req><req_desc>CXA SSO Assignment</req_desc></assignment>]

    02/20/2020 10:20:57 INFO: Error while executing action method assertAttributesValues: junit.framework.AssertionFailedError:

    02/20/2020 10:20:57 INFO: *********** FAILING TEST multivaluetest - CONTINUE TO NEXT TEST ***********

    02/20/2020 10:20:57 INFO: FAILED - multivaluetest

    02/20/2020 10:20:57 INFO:

    02/20/2020 10:20:57 INFO:

     

    Thanks,

    Shaffin.