Actions
Issue #1393
closedFailing unit tests after fc23 update
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/pulp/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/vagrant/devel/pulp/server/test/unit/server/db/migrations/test_0015_load_content_types.py", line 96, in test_migrate
self.assertEqual(indexes['attribute_1_1_attribute_2_1_attribute_3_1']['dropDups'], False)
KeyError: 'dropDups'
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/pulp/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/vagrant/devel/pulp/server/test/unit/server/db/test_manage.py", line 351, in test_pulp_manage_db_loads_types
self.assertEqual(indexes['attribute_1_1_attribute_2_1_attribute_3_1']['dropDups'], False)
KeyError: 'dropDups'
dropDups was deprecated in 2.6 but removed in 2.7, but it looks like we don't use it, and probably don't actually need to check for it...
Actions
drop checks for dropDups
The upgrade to fedora 23 revealed that the 'dropDups' property of mongo indices was deprecated in 2.6 and removed in 2.7[0].
The removed 'dropDups' assertions weren't stricly necessary, since the test is checking that the uniqueness contraint is applied, which it is.
dropDups only comes into play if it's explicitly requested, which we never do.
https://pulp.plan.io/issues/1393
fixes #1393