Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Testing

Aaron edited this page Aug 13, 2020 · 2 revisions

Testing

Testing Configuration

  • All Tests Should Be Designed Against The CI user_variables file
  • For user_variables.py file, CircleCI will use the mockserver.py file inside .circleci
  • The Cluster to test against is called 'mockserver1' and the tenant to test against is 'tenant1'

Testing Tools

  • CricleCI and Github Actions are currently set up to run automated tests on pushes and Pull Requests
  • For local testing, have a mockserver available

Getting Started with Mockserver

  • Mockserver can be set up locally or through docker
  • Copy the mockserver.py file from .circleci and paste it in root as user_variables.py
  • To match mockserver.py, add a host entry in /etc/hosts or C:\Windows\system32\drivers\etc\hosts to point "mockserver.mockserver" to your mockserver instance

Run Tests

  • run the following command to execute all normal mockserver tests

coverage run -m unittest discover

Clone this wiki locally