Functional Test of Macchinetta Batch Framework

This project provides functional tests of Macchinetta Batch Framework (2.x).

How to contribute

Contributing (bug report, pull request, any comments etc.) is welcome !! Please see the contributing guideline for details.

Test case design

Test case scenarios are managed at docs directory.

Note
Supported language

Currently, support language is Japanese only. (Will translate to English as soon as possible)

Tested environments at the time of release

Tested environments are managed at wiki page.

How to perform functional test

Preconditions are as follow:

  • OpenJDK 17 installed. (JAVA_HOME defined as environment variable.)

  • Maven installed. (Can run mvn command.)

  • MongoDB installed. (Default install.)

  • PostgreSQL installed. (Default install.)

  • Tomcat installed. (Default install.)

[Step 1] Create database of PostgreSQL

Create two database of PostgreSQL into local machine in the following name.

  • admin

  • postgres

[Step 2] Setup Tomcat

Configure Tomcat user and port as follows.

  • User settings.

    • username="admin"

    • password=""

$CATALINA_BASE/conf/tomcat-users.xml
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <user username="admin" password="" roles="manager-gui,manager-script"/>
</tomcat-users>
  • Port settings.

    • port="8088"

$CATALINA_BASE/conf/server.xml
<Connector port="8088" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

[Step 3] Clone a repository

Clone the Macchinetta/batch-functionaltest repository into local machine.

$ git clone https://github.com/Macchinetta/macchinetta-batch-functionaltest.git

[Step 4] Run functional tests

Run test using maven commands as follows.

$ cd {your repository directory}
$ mvn verify -P javaconfig,postgresql14-local,tomcat10-local