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.jsonmockserverInitialization.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-edev-volaris-mockserver.ci.folio.org
Mock server dashboard URL : MockServer Dashboard
Here is a sample file with expected requests and their defined responses used for development and testing purposes. This file is being regularly updated.