Skip to content

Commit

Permalink
Added automated testing framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Jun 3, 2018
1 parent e40cef4 commit b8261b2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ services:
# - ./testing/cdx:/cdx-data

# ----------
# Test sites
# Test sites and test runner
# ----------

# Local version of the Archival Acid Test: http://acid.matkelly.com
Expand All @@ -146,3 +146,14 @@ services:
ports:
- "280:80"

# This runs the integration tests
robot:
build: integration-test/robot
command: --outputdir /out /tests
volumes:
- ./integration-test/robot/tests:/tests:ro
- ./integration-test/results:/out:rw
depends_on:
- kafka
- cdxserver

9 changes: 9 additions & 0 deletions integration-test/robot/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ukwa/ukwa-manage

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY tests /tests

ENTRYPOINT [ "pybot" ]

3 changes: 3 additions & 0 deletions integration-test/robot/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
robotframework-seleniumlibrary==3.0.1
requests
robotframework-requests==0.4.7
8 changes: 8 additions & 0 deletions integration-test/robot/tests/crawl-test-site.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*** Settings ***
Documentation Initiate test site crawl and verify
Library Process

*** Test Cases ***
Launch test crawl
Run Process launch -S -k kafka:9092 uris.tocrawl.fc http://crawl-test-site.webarchive.org.uk shell=yes

0 comments on commit b8261b2

Please sign in to comment.