Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumer Version Selectors - Discrepancies between Docs / Rust & Ruby Core #171

Open
YOU54F opened this issue Sep 30, 2022 · 0 comments
Open

Comments

@YOU54F
Copy link
Member

YOU54F commented Sep 30, 2022

Been working through the consumer version selectors to try and ascertain library support for them all and noticed a few oddities

12 consumer version selectors in total

consumerVersionSelectors.mainBranch
consumerVersionSelectors.branch
consumerVersionSelectors.matchingBranch
consumerVersionSelectors.fallbackBranch
consumerVersionSelectors.deployed
consumerVersionSelectors.released
consumerVersionSelectors.deployedOrReleased
consumerVersionSelectors.environment
consumerVersionSelectors.latest
consumerVersionSelectors.consumer
consumerVersionSelectors.tag
consumerVersionSelectors.fallbackTag

  • Pact-Rust missing CVS
  • Pact-Ruby missing CVS
    • fallbackBranch
    • refers to fallbackTag which I don't believe is used by the pact broker

Rust Consumer version selectors

    ConsumerVersionSelector {
      tag: Some(t.to_string()),
      latest: Some(true),
      consumer: None,
      branch: None,
      main_branch: None,
      deployed: None,
      released: None,
      deployed_or_released: None,
      environment: None,
      matching_branch: None,
      fallback_tag: None,
    }

Ruby Consumer version selectors

            selector[:tag]
            selector[:latest]
            selector[:consumer]
            selector[:branch]
            selector[:mainBranch]
            selector[:deployed]
            selector[:released]
            selector[:deployedOrReleased]
            selector[:environment]
            selector[:matchingBranch]
            selector[:fallbackTag]
            selector[:matchingTag]
            selector[:fallback]
YOU54F added a commit to YOU54F/pact-reference that referenced this issue Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant