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.

Add ability to add multiple hosts

See original GitHub issue

The Problem

I have some tests that run across multiple environments and I would like to codify that into the test. Initially I’ve left of the ForHost declaration but that introduces potential issues with it running against any service that matches the other builder routes configured.

Proposed Solution I’m just wondering if there’s been thought/discussions around adding the following overload to enable you to configure multiple hosts:

ForHost(params string[] host)

Alternatives

One alternative I was considering (which I feel could be a better option) is a regular expression overload as specifying multiple hosts feels a bit inconsistent with the idea of mocking out an HTTP endpoint (as opposed to many, which host implies).

Would be happy to contribute the PR if this is something you feel is valuable outside of my single use case.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
josephwoodwardcommented, Jul 25, 2019

Yeah, I’m sorry but I’ve still not had a chance to finish it off. It’s almost there but I wouldn’t want to hold 2.0.2 up.

1reaction
martincostellocommented, Jul 3, 2019

@slang25 Yes, you’re right. That’s the “god mode” I was thinking of.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling and adding a co-host
Start the meeting as the host. · In the meeting controls, tap Participants . · Tap the name of the participant who is...
Read more >
Designating an alternative host
Click Schedule Meeting. In the Scheduling Options, enter the alternative host's email address in the Alternative hosts field. (Optional) Select ...
Read more >
Ability to add multiple hosts at a time in the UI and awx- ...
Ability to take a list of hostnames and add them all at one time or via a single API call.
Read more >
Zoom Meetings: Add a Co-Host / Alternative Host
Activate Ability to Add Alternative Hosts in your Zoom Account: 1. In the Zoom app, click on the settings gear: Please send corrections...
Read more >
Add more hosts to your Facebook event
Hosts can invite more people to a Facebook event, make other people hosts and edit event details.
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