question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verify pactUri with array of tags

See original GitHub issue

Currently it’s only able to very single tag (i.e. master or latest tags) as below. new PactVerifier(config) .ProviderState($"{PactServiceUri}/provider-states") .ServiceProvider(ProviderName, ProviderUri) .HonoursPactWith(ConsumerName) .PactUri($"PactUtilities.PactBrokerCloud}/pacts/provider/{ProviderName}/consumer/{ConsumerName}/master").Verify(); It would be great if we can pass multiple tags without iterating the above script.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
namhuynhkiencommented, Aug 6, 2019

I don’t think you’d do it in a constructor.

By bad, I mean that creates an overload function of PactUri.

I was thinking to add a new method PactUris(IEnumerable<string> uris).

Yes, it will both support

It does mean that for your use case, you’d need to split the environment variable, and map that into a broker uri, which I think should be fairly manageable. Thoughts?

Yes, it’s manageable. I’ll start working on that when as soon as I can. Thanks Neil.

0reactions
adamrodgercommented, Feb 4, 2022

v4.0 will support multiple tags

Read more comments on GitHub >

github_iconTop Results From Across the Web

Verifying Pacts | Pact Docs
Specify the consumer version tags for the pacts you want to verify # Simple config - a list of tag names # This...
Read more >
pact: validate that an array contains a matching hash
I want to validate that in the array, there is a hash that has "key":"meaningful" , and that the data hash in that...
Read more >
Get posts that match defined arrays of tags
1 Answer 1 ... This should be achievable with a taxonomy query, like this: $query = new WP_Query( [ 'tax_query' => [ 'relation'...
Read more >
Find a tag within an array - World Creation
I've tried “component has tag” and “contains” to no avail. I believe the issue is that the loop checks each thing that is...
Read more >
Tags and Postgres Arrays, a Purrrfect Combination
First we have to go into the tags table to make an array of tag_id entries that correspond to our tags. Then we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found