Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
The npm package atlas-mock-proxy-server receives a total of 5 weekly downloads. As such, atlas-mock-proxy-server popularity was classified as not popular.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.