jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Private block host on CircleCi running Selenium #229

Closed tarebyte closed 9 years ago

tarebyte commented 10 years ago

Hi There,

I know this is probably more of a CircleCi question but since I'm using teaspoon I thought I'd ask.

I'm trying to use Selenium (yah I know) and when I run bundle exec teaspoon I get the following error.

listening on 0.0.0.0:60473, CTRL+C to stop
Teaspoon running default suite at http://127.0.0.1:60473/teaspoon/default
/home/ubuntu/shopify/lib/extensions/net_http.rb:23:in `on_connect_with_block_private_host': Connection to private host 127.0.0.1 blocked (ip 127.0.0.1) (PublicHost::PrivateHostException)

Any idea how I can fix this?

jejacks0n commented 10 years ago

What did you do to get it sorted -- it's useful for others if you provide the info.

Thanks.

tarebyte commented 10 years ago

The solution was that you had to whitelist the url and the port.

The overarching problem I didn't solve it though. I'm still having the issue, but it seems unrelated to teaspoon atm. I'm going to try and come up with a solution that doesn't need selenium. Or making http requests.

I'd really like it if teaspoon could run the tests using phantom and then run the tests against something like slimerjs.

Is that a possibility?

jejacks0n commented 10 years ago

I don't see why not. Sounds interesting, and would welcome a pull request.

tarebyte commented 10 years ago

I'm working on a PR right now, it's going to take a little bit of weekend work to get it together. You may see something monday.

jejacks0n commented 10 years ago

awesome!

jejacks0n commented 10 years ago

Any news on this?

hakunin commented 8 years ago

Hey @tarebyte, I am trying to make Teaspoon work with CircleCI and getting this, can you share some knowledge? https://github.com/modeset/teaspoon/issues/427