• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / server-tools / 1429
69%
9.0: 86%

Build:
Build:
LAST BUILD BRANCH: 13_add_base_changeset
DEFAULT BRANCH: 9.0
Ran 03 Feb 2016 02:50PM UTC
Jobs 2
Files 81
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1429

Pull #349

travis-ci

clopez
Fix comparator equals when value is returned as a list.

 * At least with an OpenLDAP server, the values returned are always
   lists even when there is only one value. For example:

	{'cn': ['Carlos Lopez'],
	 'employeeType': ['employee'],
	 'givenName': ['Carlos'],
	 'loginShell': ['/bin/bash'],
	 }

 * Therefore, using the operator 'equals' for 'employeeType' == 'employee'
   will fail because the value is inside a list.

 * This patch checks if the value returned is a list and then picks the
   first field to do the comparision. If there is more than one field
   it returns False (contains should be use instead)

 * If the value returned is not a list then it behaves as before.
Pull Request #349: Fix comparator equals when value is returned as a list.

8 of 8 new or added lines in 1 file covered. (100.0%)

1787 of 3303 relevant lines covered (54.1%)

1.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
100.0
users_ldap_groups/users_ldap_groups.py
Jobs
ID Job ID Ran Files Coverage
3 1429.3 (TESTS="1" ODOO_REPO="odoo/odoo") 03 Feb 2016 02:51PM UTC 0
54.1
Travis Job 1429.3
4 1429.4 (TESTS="1" ODOO_REPO="OCA/OCB") 03 Feb 2016 02:50PM UTC 0
54.07
Travis Job 1429.4
Source Files on build 1429
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1429
  • Pull Request #349
  • PR Base - 8.0 (#1418)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc