Skip to content

Commit 4fc4ef9

Browse files
committed
PoS spider: use OAI-PMH spider
Signed-off-by: Victor Balbuena <[email protected]>
1 parent 89c2834 commit 4fc4ef9

File tree

17 files changed

+724
-650
lines changed

17 files changed

+724
-650
lines changed

docker-compose.test.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ services:
6464
depends_on:
6565
scrapyd:
6666
condition: service_healthy
67-
http-server.local:
67+
pos-http-server.local:
6868
condition: service_healthy
6969

7070
unit:
@@ -118,22 +118,6 @@ services:
118118
- ${PWD}/tests/functional/wsp/fixtures/ftp_server/WSP:/home/ftpusers/bob/WSP
119119
- ${PWD}/tests/functional/wsp/fixtures/ftp_server/pureftpd.passwd:/etc/pure-ftpd/passwd/pureftpd.passwd
120120

121-
http-server.local:
122-
image: nginx:stable-alpine
123-
volumes:
124-
- ${PWD}/tests/functional/pos/fixtures/https_server/conf/proxy.conf:/etc/nginx/conf.d/default.conf
125-
- ${PWD}/tests/functional/pos/fixtures/https_server/conf/ssl:/etc/nginx/ssl
126-
- ${PWD}/tests/functional/pos/fixtures/https_server/records:/etc/nginx/html/
127-
ports:
128-
- 443:443
129-
healthcheck:
130-
timeout: 5s
131-
interval: 5s
132-
retries: 5
133-
test:
134-
- "CMD-SHELL"
135-
- "curl https://localhost:443/"
136-
137121
functional_cds:
138122
<<: *service_base
139123
command: py.test -vv tests/functional/cds
@@ -173,6 +157,21 @@ services:
173157
- "CMD-SHELL"
174158
- "curl http://localhost:80/"
175159

160+
pos-http-server.local:
161+
image: nginx:stable-alpine
162+
volumes:
163+
- ${PWD}/tests/functional/pos/fixtures/http_server/conf/proxy.conf:/etc/nginx/conf.d/default.conf
164+
- ${PWD}/tests/functional/pos/fixtures/http_server/records:/etc/nginx/html/
165+
ports:
166+
- 80:80
167+
healthcheck:
168+
timeout: 5s
169+
interval: 5s
170+
retries: 5
171+
test:
172+
- "CMD-SHELL"
173+
- "curl http://localhost:80/"
174+
176175
rabbitmq:
177176
image: rabbitmq
178177
healthcheck:

hepcrawl/settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
# user-agent
3434
USER_AGENT = 'hepcrawl (+http://www.inspirehep.net)'
3535

36-
# Allow duplicate requests
37-
DUPEFILTER_CLASS = "scrapy.dupefilters.BaseDupeFilter"
38-
3936
# URI base prefix for $schema to be used during record generation
4037
SCHEMA_BASE_URI = os.environ.get(
4138
'APP_SCHEMA_BASE_URI',

0 commit comments

Comments
 (0)