swp-fu-eid / eid-fu-swp

Docker-based REST API implemented with Django and restframework.
MIT License
2 stars 1 forks source link

Updated e2e test docker image #24

Closed BenjaminKeller closed 7 years ago

BenjaminKeller commented 7 years ago

Disclaimer: This branch contains the old commit fb13aa0cefa2dd4d0a4f8bc434d013015f8d0269 from the old branch check_for_eidclient. I split it into several new commits.

The e2e tests from the forked repository contained an old npm package called jasmine-node. I moved it to the npm package jasmine which is more close to the normal jasmine. Additionally I updated the frisby library from 0.8 to 2.0.2 so we can use new features.

Known Issue

For Windows 7 I had to adapt the docker-compose.test.yml. Otherwise the host name couldn't be resolved. The extra_hosts option adds the line to the container's hosts file.

version: '2.1'

# mostly extending from main .yml
services:
  test-e2e:
    build: test/e2e
    restart: "no"
    environment:
    - BOILERPLATE_DOMAIN
    #- BOILERPLATE_IPV4_16PREFIX
    #- BOILERPLATE_IPV6_ADDRESS
    depends_on:
    - www
    networks:
    - front
    extra_hosts:
    - "eid.com:192.168.99.100"
BenjaminKeller commented 7 years ago

Updated project name.