intermediate·8 min read·Updated

Checklist for API Testing: Change the Rules, Keep the Record, Gate the Build

Who decides what a release needs, and how do you prove months later what you knew when you released? Change a rule and watch the answer change, keep the verdict as a record, and fail a build that isn't ready.

This is lesson 9.21, part 2 of 2, of Shift-Left API in Depth. Part 1 read the release verdict: four answers, one rule, and the eight areas behind each. Now you change the rules, keep a verdict as a record, and stop a build that isn't ready. The release verdict comes with Professional, the 15-day trial and Enterprise.

Who decides what a release needs?

A checklist for API testing is only as good as its rules and its record. In Shift-Left API the rules sit in What a release needs, and you may change them if you have permission to manage API governance. Everyone else can read them. The lesson changes a rule to show that the answer is computed, not typed in.

What happens when you change a release rule?

Open What a release needs and switch off a rule that holds an API at Not ready, then Save. The verdicts are judged again, and the API's answer moves, in the video to Ready with risks. Put the block back and it returns to Not ready. Go back to the defaults restores the project's rules. Because the answer follows the rules, a team can write down what it means by "ready" and see it applied the same way to every API.

How do you keep a verdict as a record?

Click Keep this verdict. The answer is stored with its rules and checks as they were that day, and it can't be edited afterwards. Kept verdicts are chained, so a gap or a changed entry shows. The Changes tab lists what moved between kept verdicts, so months later you can answer an auditor with what you knew when you released, not with what the project looks like now.

What do the audit bundle and the report hold?

A kept verdict offers an audit bundle and a report. The bundle holds the verdict with the evidence behind each check and what is needed to check it; the report is the readable version for people who won't open the app. The video shows what each holds but doesn't save either file, so treat this section as a description, then open them yourself in your trial.

How do you fail a build that isn't ready?

Open the pipeline gate dialog and choose your CI system. It writes a pipeline file with one step that runs the verdict gate for a project and an environment. The runner prints its verdict lines and exits zero when the answer is acceptable and non-zero when it isn't, so the build stops. In the video the runner's lines are an example log: no real API key is created and no pipeline runs. The file also needs test packs and the CI integration for your system, on Professional and up.

Try it yourself

With a trial, open What a release needs, change one rule, save, and watch an API's answer move. Put it back, then click Keep this verdict and look at the audit bundle and report. Finally open the pipeline gate dialog and read the file it writes for your CI system. Try it in a test pipeline before you rely on it for a real release.

Recap

  • A checklist for API testing needs rules a team can change and an answer that follows them.
  • A kept verdict is a record nobody can edit, with an audit bundle and a report that describe it.
  • The pipeline gate turns the answer into an exit code, so a build that isn't ready stops: your API testing checklist, GitHub Actions included.

Next, lesson 9.22 introduces the Quality Agent, which looks over a whole project and puts what to fix first in order. To see how a gate fits a pipeline, read API quality gates: what to measure.

Hands-on lab

Try it: With a trial and permission to manage API governance, open What a release needs, switch off one rule that holds an API at Not ready and save. Then keep a verdict, and open the pipeline gate dialog to see the file it writes.

Enter your email to open the lab steps. One unlock opens every lab in the learning center.

No spam. Protected by reCAPTCHA — Google Privacy & Terms.

Frequently asked questions

Can I change what the release verdict requires?+

Yes. What a release needs lists the rules as switches, and a person with permission to manage API governance can change them and save. The verdicts are judged again at once, so an API's answer can move from Not ready to Ready with risks. Go back to the defaults puts the project's rules back.

What does keeping a verdict do?+

It stores the answer, with its rules and checks as they were that day, as a record. Kept verdicts can't be edited, so months later you can show what you knew when you released. The record also offers an audit bundle and a report; this lesson shows what they hold.

How does a pipeline fail a build that isn't ready?+

A pipeline file runs the verdict gate as one step. It exits non-zero when the answer isn't one you accept, so the build stops. It needs test packs and the CI integration for your system, on Professional and up. The lesson shows the runner's lines as an example log, because no real API key is created.