Build: #196 failed
Job: Run deprecated integration tests failed
Job result summary
- Completed
- Duration
- 4 minutes
- Revision
-
aca6b7bd627107f7d6d102cdbbef51b5553e4232
aca6b7bd627107f7d6d102cdbbef51b5553e4232 - Fixed in
- #198 (Code changes detected)
Error summary
The build generated some errors. See the full build log for more details.
File "/code/concepts/search_indexes.py", line 57, in prepare_collection_version
return obj.collection_version_ids
File "/code/oclapi/models.py", line 289, in collection_version_ids
return map(lambda v: v.id, self.collection_versions)
File "/code/concepts/models.py", line 304, in collection_versions
return get_model('collection', 'CollectionVersion').objects.filter(concepts=self.id)
NameError: global name 'get_model' is not defined
======================================================================
ERROR: test_mappings_update_positive__user_owner (integration_tests.tests.all.MappingViewsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 1163, in setUp
update_haystack_index()
File "/code/integration_tests/tests/all.py", line 31, in update_haystack_index
update_index.Command().handle()
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 195, in handle
return super(Command, self).handle(*items, **options)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 355, in handle
label_output = self.handle_label(label, **options)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 221, in handle_label
self.update_backend(label, using)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 267, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 89, in do_update
backend.update(index, current_qs)
File "/code/oclapi/search_backends.py", line 78, in update
super(OCLSolrBackend, self).update(index, iterable, commit=commit)
File "/usr/local/lib/python2.7/site-packages/haystack/backends/solr_backend.py", line 51, in update
docs.append(index.full_prepare(obj))
File "/usr/local/lib/python2.7/site-packages/haystack/indexes.py", line 204, in full_prepare
self.prepared_data = self.prepare(obj)
File "/usr/local/lib/python2.7/site-packages/haystack/indexes.py", line 198, in prepare
value = getattr(self, "prepare_%s" % field_name)(obj)
File "/code/concepts/search_indexes.py", line 57, in prepare_collection_version
return obj.collection_version_ids
File "/code/oclapi/models.py", line 289, in collection_version_ids
return map(lambda v: v.id, self.collection_versions)
File "/code/concepts/models.py", line 304, in collection_versions
return get_model('collection', 'CollectionVersion').objects.filter(concepts=self.id)
NameError: global name 'get_model' is not defined
======================================================================
ERROR: test_delete_org_with_referenced_concept_in_collection_in_another_org (integration_tests.tests.all.OrganizationDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3478, in test_delete_org_with_referenced_concept_in_collection_in_another_org
self.collection2.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 293, in fill_data_for_reference
self.concepts.update([concept.id for concept in a_reference.concepts])
AttributeError: 'list' object has no attribute 'update'
======================================================================
ERROR: test_delete_source_with_referenced_concept_in_collection (integration_tests.tests.all.SourceDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3336, in test_delete_source_with_referenced_concept_in_collection
self.collection.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 293, in fill_data_for_reference
self.concepts.update([concept.id for concept in a_reference.concepts])
AttributeError: 'list' object has no attribute 'update'
======================================================================
ERROR: test_delete_source_with_referenced_mapping_in_collection (integration_tests.tests.all.SourceDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3323, in test_delete_source_with_referenced_mapping_in_collection
self.collection.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 295, in fill_data_for_reference
self.mappings.update([mapping.id for mapping in a_reference.mappings])
AttributeError: 'list' object has no attribute 'update'
----------------------------------------------------------------------
Ran 152 tests in 186.432s
FAILED (errors=66, skipped=7)
+ docker-compose down -v
The AWS_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.
The AWS_SECRET_ACCESS_KEY variable is not set. Defaulting to a blank string.
The AWS_STORAGE_BUCKET_NAME variable is not set. Defaulting to a blank string.
Stopping ocl-oa-rit_celery_1 ...
Stopping ocl-oa-rit_solr_1 ...
Stopping ocl-oa-rit_mongo_1 ...
Stopping ocl-oa-rit_redis_1 ...
[4A[2K
Stopping ocl-oa-rit_celery_1 ... [32mdone[0m
[4B[1A[2K
Stopping ocl-oa-rit_redis_1 ... [32mdone[0m
[1B[3A[2K
Stopping ocl-oa-rit_solr_1 ... [32mdone[0m
[3B[2A[2K
Stopping ocl-oa-rit_mongo_1 ... [32mdone[0m
[2BRemoving ocl-oa-rit_celery_1 ...
Removing ocl-oa-rit_solr_1 ...
Removing ocl-oa-rit_mongo_1 ...
Removing ocl-oa-rit_redis_1 ...
[3A[2K
Removing ocl-oa-rit_solr_1 ... [32mdone[0m
[3B[2A[2K
Removing ocl-oa-rit_mongo_1 ... [32mdone[0m
[2B[1A[2K
Removing ocl-oa-rit_redis_1 ... [32mdone[0m
[1B[4A[2K
Removing ocl-oa-rit_celery_1 ... [32mdone[0m
[4BRemoving network ocl-oa-rit_default
Removing volume ocl-oa-rit_mongo_data
Removing volume ocl-oa-rit_solr_data
return obj.collection_version_ids
File "/code/oclapi/models.py", line 289, in collection_version_ids
return map(lambda v: v.id, self.collection_versions)
File "/code/concepts/models.py", line 304, in collection_versions
return get_model('collection', 'CollectionVersion').objects.filter(concepts=self.id)
NameError: global name 'get_model' is not defined
======================================================================
ERROR: test_mappings_update_positive__user_owner (integration_tests.tests.all.MappingViewsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 1163, in setUp
update_haystack_index()
File "/code/integration_tests/tests/all.py", line 31, in update_haystack_index
update_index.Command().handle()
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 195, in handle
return super(Command, self).handle(*items, **options)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 355, in handle
label_output = self.handle_label(label, **options)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 221, in handle_label
self.update_backend(label, using)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 267, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File "/usr/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 89, in do_update
backend.update(index, current_qs)
File "/code/oclapi/search_backends.py", line 78, in update
super(OCLSolrBackend, self).update(index, iterable, commit=commit)
File "/usr/local/lib/python2.7/site-packages/haystack/backends/solr_backend.py", line 51, in update
docs.append(index.full_prepare(obj))
File "/usr/local/lib/python2.7/site-packages/haystack/indexes.py", line 204, in full_prepare
self.prepared_data = self.prepare(obj)
File "/usr/local/lib/python2.7/site-packages/haystack/indexes.py", line 198, in prepare
value = getattr(self, "prepare_%s" % field_name)(obj)
File "/code/concepts/search_indexes.py", line 57, in prepare_collection_version
return obj.collection_version_ids
File "/code/oclapi/models.py", line 289, in collection_version_ids
return map(lambda v: v.id, self.collection_versions)
File "/code/concepts/models.py", line 304, in collection_versions
return get_model('collection', 'CollectionVersion').objects.filter(concepts=self.id)
NameError: global name 'get_model' is not defined
======================================================================
ERROR: test_delete_org_with_referenced_concept_in_collection_in_another_org (integration_tests.tests.all.OrganizationDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3478, in test_delete_org_with_referenced_concept_in_collection_in_another_org
self.collection2.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 293, in fill_data_for_reference
self.concepts.update([concept.id for concept in a_reference.concepts])
AttributeError: 'list' object has no attribute 'update'
======================================================================
ERROR: test_delete_source_with_referenced_concept_in_collection (integration_tests.tests.all.SourceDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3336, in test_delete_source_with_referenced_concept_in_collection
self.collection.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 293, in fill_data_for_reference
self.concepts.update([concept.id for concept in a_reference.concepts])
AttributeError: 'list' object has no attribute 'update'
======================================================================
ERROR: test_delete_source_with_referenced_mapping_in_collection (integration_tests.tests.all.SourceDeleteViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/code/integration_tests/tests/all.py", line 3323, in test_delete_source_with_referenced_mapping_in_collection
self.collection.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 939, in full_clean
self.clean()
File "/code/collection/models.py", line 62, in clean
errors = self.add_references(self.expressions)
File "/code/collection/models.py", line 80, in add_references
error = CollectionVersion.persist_changes(object_version, **ref_hash)
File "/code/collection/models.py", line 383, in persist_changes
obj.fill_data_for_reference(col_reference)
File "/code/collection/models.py", line 295, in fill_data_for_reference
self.mappings.update([mapping.id for mapping in a_reference.mappings])
AttributeError: 'list' object has no attribute 'update'
----------------------------------------------------------------------
Ran 152 tests in 186.432s
FAILED (errors=66, skipped=7)
+ docker-compose down -v
The AWS_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.
The AWS_SECRET_ACCESS_KEY variable is not set. Defaulting to a blank string.
The AWS_STORAGE_BUCKET_NAME variable is not set. Defaulting to a blank string.
Stopping ocl-oa-rit_celery_1 ...
Stopping ocl-oa-rit_solr_1 ...
Stopping ocl-oa-rit_mongo_1 ...
Stopping ocl-oa-rit_redis_1 ...
[4A[2K
Stopping ocl-oa-rit_celery_1 ... [32mdone[0m
[4B[1A[2K
Stopping ocl-oa-rit_redis_1 ... [32mdone[0m
[1B[3A[2K
Stopping ocl-oa-rit_solr_1 ... [32mdone[0m
[3B[2A[2K
Stopping ocl-oa-rit_mongo_1 ... [32mdone[0m
[2BRemoving ocl-oa-rit_celery_1 ...
Removing ocl-oa-rit_solr_1 ...
Removing ocl-oa-rit_mongo_1 ...
Removing ocl-oa-rit_redis_1 ...
[3A[2K
Removing ocl-oa-rit_solr_1 ... [32mdone[0m
[3B[2A[2K
Removing ocl-oa-rit_mongo_1 ... [32mdone[0m
[2B[1A[2K
Removing ocl-oa-rit_redis_1 ... [32mdone[0m
[1B[4A[2K
Removing ocl-oa-rit_celery_1 ... [32mdone[0m
[4BRemoving network ocl-oa-rit_default
Removing volume ocl-oa-rit_mongo_data
Removing volume ocl-oa-rit_solr_data