
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
atlas-mock-proxy-server
Advanced tools
A Node.js based mock server for OTT services.
Make sure you have run yarn
at the root of the repo to install node modules.
To start the server run:
yarn start
To start up the server in development mode run:
yarn dev
Visit http://localhost:5000/
Full documentation can be found here
You shouldn't need to add a new Koa route handler function for every mock that you add.
To add new mocks, add a route to routes/index.js
. If you're adding mocks for ATOM, note that we use wildcard URLs to simplify things:
fixtures/pcms/<type>
'1a042ec6-ad93-11e6-b0fc-0f6df31ff06a': require('./ie/standalone-entertainment-asset-details'),
The route in routes/index.js
that matches this is /v3/query/node/:node*
.
MOCK_PROXY_DELAY=2000 yarn dev
Whenever graphql is update we should be updating the mocks used. To do this we will need to run queries against a graphql server using to this mock proxy server as pcms, search and so on, and then update the mocks with the new responses. There is an automated way to do this:
yarn start
yarn atlas-mock
command on https://github.com/sky-uk/ott-graphql repo (updated master), this spins up a local apollo instance pointing to mock proxy at localhost:5000
yarn update-graphql
, this will update both the schema and the existing mocks automaticallyyarn build-labels
This will take the label keys + values from each client's mock.jc.en.json
, and produce an updated keys.csv
. This keys.csv
file lists the label key, what interpolations there are (if any), and if the label is plural. If a label is removed from a client's mock.jc.en.json
it will be removed from keys.csv
. These files get uploaded to ATOM for all PPTs on a master build, where we will then go in and update the values as necessary. concourse/pipeline/jobs/tasks/upload-label-keys.sh
is the concourse job that uploads the CSV file to ATOM.
TERRITORY={territory} LANGUAGE={language} PROPOSITION={proposition} CLIENT={client} yarn update-labels
This will run a script over fixtures/pcms/labelling-feed/{client}/{proposition}.{territory}.{language}.json
and create update-labels/Default-Messages.xlsx
which can be uploaded from the deprecated-upload-labels
job on Jenkins, or from upload-labels.sh
.
The values for client are WEB
, TV
or APPLETV
. The labels are built for each of these clients and there are corresponding directories, for example fixtures/pcms/labelling-feed/tv
. When editing labels or adding labels they should be done inside the correct client.
FAQs
A Node.js based mock server for OTT services.
We found that atlas-mock-proxy-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.