Skip to content

sasjs/mocks

Repository files navigation

Generic mock responses for SAS

Login, sas stored process etc. made for sasjs/server

ENV Var configuration

When launching the app, it will make use of specific environment variables.

Example contents of a .env file:

# default: sas9
# options: [sas9|sasviya]
MOCK_SERVER_TYPE=sas9

# Path to working directory
# This location is for SAS WORK, staged files, DRIVE, configuration etc
SASJS_ROOT=./sasjs_root

# This location is for files
DRIVE_LOCATION=./sasjs_root/drive

# Location for mock services (JS)
# 'services' folder inside will be picked up automatically
SERVICES_LOCATION=./sas/mocks

# Path to Node.js executable
NODE_PATH=~/.nvm/versions/node/v16.14.0/bin/node

# LOG_FORMAT_MORGAN options: [combined|common|dev|short|tiny] default: `common`
# Docs: https://www.npmjs.com/package/morgan#predefined-formats
LOG_FORMAT_MORGAN=

# This location is for server logs with classical UNIX logrotate behavior
LOG_LOCATION=./logs

Session expiry

@sasjs/adapter will drop expired sesssions so in mocked responses.json for viya, we put creationTimeStamp in future.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •