# Getting port 9200 open for integration tests?

**URL:** <https://discuss.elastic.co/t/getting-port-9200-open-for-integration-tests/22787>\
**Category:** Elasticsearch\
**Created:** [March 21, 2015, 12:47am UTC](https://discuss.elastic.co/t/getting-port-9200-open-for-integration-tests/22787 "2015-03-21T00:47:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![burtonator](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burtonator/32/44790_2.png) [@burtonator](https://discuss.elastic.co/u/burtonator)\
**Post date:** [March 21, 2015, 12:47am UTC](https://discuss.elastic.co/t/getting-port-9200-open-for-integration-tests/22787/1 "2015-03-21T00:47:32Z")

</div>

What's the best way to embed elastic search in my tests.

I want integration tests for HTTP and want to do PUT/GET directly.

I looked at ElasticsearchIntegrationTest but it only seems to use node or  
transport client directly.

Is there a way to get it to expose a port? or maybe the port is just  
hidden from me...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3079c312-61ff-4d2a-84da-16c94cc8c7df%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3079c312-61ff-4d2a-84da-16c94cc8c7df%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:25am UTC](https://discuss.elastic.co/t/getting-port-9200-open-for-integration-tests/22787/2 "2017-07-06T00:25:16Z")

</div>


