Repository navigation
Related to the git commit - #186
Open
simonredfern wants to merge 16 commits into
Open
simonredfern wants to merge 16 commits into
simonredfern wants to merge 16 commits into
Conversation
The monitoring pages check whether a token may use a Role by asking OBP-API, at GET /obp/v7.0.0/banks/SYS/my/roles/ROLE_NAME. OBP-API used to answer with a list of auth modes, and the check looked for UserXORApplication in that list. OBP-API has now removed auth modes. Instead it answers with a single field, allowed, which is true or false. The check now reads that field. Without this change, the monitoring pages would refuse every token once OBP-API is upgraded.
Scans src, server, Dockerfiles, scripts and the example configs for obp/vX.Y.Z and quoted version literals below v5.1.0; any hit must be listed in BELOW_V510 with a reason.
obp-api-contract/contract.json records verb, path, source, needles, the version constants each path is built from, and the response fields the code reads, for the 28 fixed calls of the front end and the server.
snapshot.py reads the public resource docs of each version in contract.json and records the operation id and response fields of every call; snapshot.json was taken from k8s.openbankproject.com (OBP-API v7.0.0, 474d4bcc).
server/test/obpApiContract.test.ts checks that every needle and version constant is in its source, that every line building an OBP-API path is listed, that the snapshot matches the contract, and that every call and every field it reads is documented unless recorded as a gap.
A literal path segment also matches a documented placeholder, so a call whose own endpoint is gone could match a neighbouring endpoint when the snapshot is retaken, and the tests would pass against the wrong fields. snapshot.py now compares each call's operation with the snapshot.json already on disk: if one differs it lists the calls and writes nothing, unless --accept-rebind is given. A path with no /obp/vX.Y.Z prefix is recorded as missing and unversioned instead of stopping the script. The file is the same in every repository that keeps an OBP-API contract.
…he tests on every pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.