def verify_company_permission_DB_against_ODSEE(self, company_name): self.login_to_xroad6_dev() company_id = self.get_company_id(company_name) perm1 = self.get_direct_company_permission_from_DB(company_id) ldap = Call_LDAP() ldap.login_ODSEE() perm2 = ldap.get_company_permissions_from_ldap(company_id) if self.__compare_two_permission_list(perm1, perm2)== True: logger.info("The permissions in ODSEE are same as in DB")
def verify_user_has_no_such_permission_in_ldap(self, user_id, permission_id, ldap_name='LDAP'): a = Call_LDAP() a.login_ldap(ldap_name) a.verify_user_has_no_such_permission_in_ldap(user_id, permission_id) a.close_ldap_connection()