Refactor contract tests to make it easier to infer contract locations
What does this MR do and why?
This is the part 2 MR spun out from !103696 (comment 1182044887).
This refactors the contract tests to improve the consistency which will allow us to easily figure out the contract's file location or url based on the file paths, consumer names, and provider names.
This MR changes the following:
- Updates all consumer name to use plural (for example,
MergeRequests#show
instead ofMergeRequest#show
) - Updates the subfolders to use the plural form (for example,
specs/project/pipelines
instead ofspecs/project/pipeline
) - Updates the contract location to match the new plural subfolder naming scheme.
- Updates the
pact_helpers
to match the provider name. - Updates the provider names to keep capitalizations consistent.
- Introduces script to determine the Pact Broker url and the local contract path based on the
pact_helper
file path.
Related: #380899 (closed)
Screenshots or screen recordings
With this change, I reuploaded the contracts and reverified them as well.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Richard Chong