Enforcing the same rule in the editor and API
XOi teams configure service record fields in Catalog Manager. While reviewing end-to-end tests, I found that a required field could be retired. I disabled “Retire” in the editor, explained why the field was required, and made the API reject direct retirement requests.
- Field editor
- Retire disabled
- Direct API request
- Rejected
- Saved field
- Active
Regression test
The test sends a retirement request, then reads back the saved field. I ran it with the API check removed and again with it restored. Only the second run preserved the field.
- Without the API check
- Failed
- With the API check
- Passed