D2IR Mock Server Deployment in Rancher
- Mock server detailed documentation : https://www.mock-server.com/
- To deploy mock server in rancher, create a new workload (https://docs.ranchermanager.rancher.io/how-to-guides/new-user-guides/kubernetes-resources-setup/workloads-and-pods/deploy-workloads), run docker image mockserver/mockserver.
- Pass environment variables:
MOCKSERVER_WATCH_INITIALIZATION_JSON=true MOCKSERVER_INITIALIZATION_JSON_PATH=/path-to/mockserverInitialization.json MOCKSERVER_PERSIST_EXPECTATIONS=true MOCKSERVER_PERSISTED_EXPECTATIONS_PATH=/path-to/mockserverInitialization.json
mockserverInitialization.json is the config file where expected requests and their responses are defined. You need to keep this config file persisted and load the path of this config file in environment variables.
- Mock server URL : https://folio-dev-volaris-mock-server.ci.folio.org
- Mock server dashboard URL : https://folio-dev-volaris-mock-server.ci.folio.org/mockserver/dashboard