Skip to content

G-Node/gin-cli-test

Repository files navigation

GIN Client test scripts

Repository layout

  • docker: Dockerfiles for test server and client.

Server directories:

  • gin-data.init: Initial configuration for GIN server.
    • Mount location: Is first copied to a temporary directory in /tmp and then mounted under /data.

Test directories:

  • conf: GIN client configuration directory.
  • log: GIN client and test log directory.
  • scripts: Integration tests written in Python.

The scripts in the root of the repository are for starting and stopping the server and running the test inside a client container.

  • start-server: Makes two copies of gin-data.init in temporary directories, starts two gin@home server containers and creates a bridge network called ginbridge.
  • stop-server: Deletes the gin-data.init copies from the temporary directories, stops the server containers, and removes the ginbridge.
  • run-all-tests: Sets up the test client environment and runs all test scripts using pytest. Cleans up leftover repositories before exiting.