-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Upgrade Docker image and add `discovery.type` environment variable. - Upgrade elasticsearch-dsl dependency requirement. - Use new Document class instead of old DocType. - Remove document type from index, update and delete operations. - Do not disable `_all` meta field, removed in 7.x. - Update README.md.
- Loading branch information
Showing
21 changed files
with
68 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
|
||
class DIPTests(TestCase): | ||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
def setUp(self, mock_es_save): | ||
User = get_user_model() | ||
User.objects.create_user("temp", "[email protected]", "temp") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
|
||
class CollectionTests(TestCase): | ||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
def setUp(self, mock_es_save): | ||
User = get_user_model() | ||
User.objects.create_user("temp", "[email protected]", "temp") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
|
||
class DcByDcFormTests(TestCase): | ||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
def setUp(self, mock_es_save): | ||
User = get_user_model() | ||
User.objects.create_superuser("admin", "[email protected]", "admin") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ def _sized_tmp_file(path, size): | |
|
||
|
||
class DipDownloadTests(TestCase): | ||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
def setUp(self, mock_es_save): | ||
User.objects.create_superuser("admin", "[email protected]", "admin") | ||
self.client.login(username="admin", password="admin") | ||
|
@@ -76,7 +76,7 @@ def test_local_dip_download_zip_headers(self, mock_is_zipfile): | |
) | ||
self.assertEqual(response["X-Accel-Redirect"], "/media/fake.zip") | ||
|
||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
@patch("scope.views.zipfile.is_zipfile", return_value=False) | ||
def test_local_dip_download_tar_headers(self, mock_is_zipfile, mock_es_save): | ||
self.local_dip.objectszip = "fake.tar" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
|
||
class ImportFailureDisplayTests(TestCase): | ||
@patch("elasticsearch_dsl.DocType.save") | ||
@patch("elasticsearch_dsl.Document.save") | ||
def setUp(self, mock_es_save): | ||
User = get_user_model() | ||
User.objects.create_superuser("admin", "[email protected]", "admin") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.