diff --git a/docker-compose.yml b/docker-compose.yml index 223f5e0..c6920f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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 + \ No newline at end of file diff --git a/integration-test/robot/Dockerfile b/integration-test/robot/Dockerfile new file mode 100644 index 0000000..44d4b8b --- /dev/null +++ b/integration-test/robot/Dockerfile @@ -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" ] + diff --git a/integration-test/robot/requirements.txt b/integration-test/robot/requirements.txt new file mode 100644 index 0000000..a70188b --- /dev/null +++ b/integration-test/robot/requirements.txt @@ -0,0 +1,3 @@ +robotframework-seleniumlibrary==3.0.1 +requests +robotframework-requests==0.4.7 diff --git a/integration-test/robot/tests/crawl-test-site.robot b/integration-test/robot/tests/crawl-test-site.robot new file mode 100644 index 0000000..dae6467 --- /dev/null +++ b/integration-test/robot/tests/crawl-test-site.robot @@ -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 +