Commit 05b1d4cb authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed bad merge.

parent c9a5056b
Pipeline #62168 failed with stages
in 18 minutes and 38 seconds
......@@ -222,7 +222,6 @@ class UploadListResource(Resource):
pagination=dict(total=total, page=page, per_page=per_page),
results=results), 200
@api.doc(security=list(api.authorizations.keys())) # weird bug, this should not be necessary
@api.doc('upload')
@api.expect(upload_metadata_parser)
@api.response(400, 'To many uploads')
......
......@@ -90,7 +90,7 @@ Content-Type: application/json
}
###
# Search migration unpublished calcs
# Search
GET http://localhost:19200/fairdi_nomad_prod/_search HTTP/1.1
Content-Type: application/json
......@@ -113,6 +113,38 @@ Content-Type: application/json
}
}
###
# Search test
GET http://localhost:9200/test_nomad_fairdi_0_6/_search HTTP/1.1
Content-Type: application/json
{
"query": {
"bool": {
"should": [
{
"bool": {
"must": [
{
"term": {
"published": true
}
},
{
"term": {
"with_embargo": false
}
}
]
}
}
],
"minimum_should_match": 1
}
}
}
###
# Disable refresh and replica for fast index
PUT http://localhost:19200/fairdi_nomad_prod/_settings HTTP/1.1
......
......@@ -722,7 +722,7 @@ class TestRepo():
(1, 'only_atoms', ['Br', 'K', 'Si'], 'test_user'),
(1, 'only_atoms', ['Br', 'Si', 'K'], 'test_user'),
(1, 'comment', 'specific', 'test_user'),
(1, 'authors', 'Hofstadter, Leonard', 'test_user'),
(1, 'authors', 'Leonard Hofstadter', 'test_user'),
(2, 'files', 'test/mainfile.txt', 'test_user'),
(2, 'paths', 'mainfile.txt', 'test_user'),
(2, 'paths', 'test', 'test_user'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment