phax / phoss-smp

phoss SMP - a Peppol and OASIS BDXR SMP Server, CEF eDelivery compliant
128 stars 37 forks source link

Unit tests failing because of missing mysql and mongodb database #239

Closed luukth-infosupport closed 1 year ago

luukth-infosupport commented 1 year ago

When I clone phoss-smp locally and run maven package the unit tests will fail because I didn't have a mysql and mongodb database running. After starting both of these databases with a docker-compose the unit tests succeeded. Maybe this information would be useful to put on the wiki page.

I used the following docker-compose

version: '3.9'

services:
  mysql:
    image: mysql:8
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: smp
      MYSQL_USER: smp
      MYSQL_PASSWORD: smp
    ports:
      - "3306:3306"

  mongodb:
    image: mongo:6
    environment:
      MONGO_INITDB_DATABASE: phoss-smp-test
    ports:
      - "27017:27017"
phax commented 1 year ago

@luukth-infosupport Thanks - very good point - I will add this information!