[KYUUBI #485] [KYUUBI #479][TEST][FOLLOWUP] Set FRONTEND_BIND_HOST to 127.0.0.1 for all suites

![turboFei](https://badgen.net/badge/Hello/turboFei/green) [![Closes #485](https://badgen.net/badge/Preview/Closes%20%23485/blue)](https://github.com/yaooqinn/kyuubi/pull/485) ![2](https://badgen.net/badge/%2B/2/red) ![1](https://badgen.net/badge/-/1/green) ![1](https://badgen.net/badge/commits/1/yellow) ![Test Plan](https://badgen.net/badge/Missing/Test%20Plan/ff0000) [<img width="16" alt="Powered by Pull Request Badge" src="https://user-images.githubusercontent.com/1393946/111216524-d2bb8e00-85d4-11eb-821b-ed4c00989c02.png">](https://pullrequestbadge.com/?utm_medium=github&utm_source=yaooqinn&utm_campaign=badge_info)<!-- PR-BADGE: PLEASE DO NOT REMOVE THIS COMMENT -->

<!--
Thanks for sending a pull request!

Here are some tips for you:
  1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html
  2. If the PR is related to an issue in https://github.com/yaooqinn/kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
  3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
-->

### _Why are the changes needed?_
 Set FRONTEND_BIND_HOST to 127.0.0.1 for all suites

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request

Closes #485 from turboFei/KYUUBI_479_followup.

Closes #485

Closes #479

44dc28f [fwang12] [KYUUBI #479][TEST][FOLLOWUP] Set FRONTEND_BIND_HOST to 127.0.0.1 for all suites

Authored-by: fwang12 <fwang12@ebay.com>
Signed-off-by: Kent Yao <yao@apache.org>
This commit is contained in:
fwang12 2021-04-05 20:01:59 +08:00 committed by Kent Yao
parent 5b9ef3c3df
commit 94aacc2ef1
No known key found for this signature in database
GPG Key ID: F7051850A0AF904D
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import org.apache.log4j.spi.LoggingEvent
import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FunSuite, Outcome}
import org.scalatest.concurrent.Eventually
import org.apache.kyuubi.config.KyuubiConf
import org.apache.kyuubi.config.internal.Tests.IS_TESTING
trait KyuubiFunSuite extends FunSuite
@ -36,6 +37,7 @@ trait KyuubiFunSuite extends FunSuite
// scalastyle:on
override def beforeAll(): Unit = {
System.setProperty(IS_TESTING.key, "true")
System.setProperty(KyuubiConf.FRONTEND_BIND_HOST.key, "127.0.0.1")
doThreadPostAudit()
super.beforeAll()
}

View File

@ -37,7 +37,6 @@ class FrontendServiceSuite extends KyuubiFunSuite {
protected val server = new NoopServer()
protected val conf = KyuubiConf()
.set(KyuubiConf.FRONTEND_BIND_HOST, "127.0.0.1")
.set(KyuubiConf.FRONTEND_BIND_PORT, 0)
.set("kyuubi.test.server.should.fail", "false")