Skip to content

Commit

Permalink
Fix failing ServiceAccountIT test (#92953) (#93014)
Browse files Browse the repository at this point in the history
This commit adds a workaround for failing `ServiceAccountIT` test
by explicitly setting a host name to `localhost` instead of using default
`_local_` address.

Relates to #92930

(cherry picked from commit 96d3fce)
  • Loading branch information
slobodanadamovic committed Jan 17, 2023
1 parent 410d12a commit 051e062
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public class ServiceAccountIT extends ESRestTestCase {
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
.nodes(2)
.module("analysis-common")
.setting("http.host", "localhost")
.setting("xpack.license.self_generated.type", "trial")
.setting("xpack.security.enabled", "true")
.setting("xpack.security.authc.token.enabled", "true")
Expand Down

0 comments on commit 051e062

Please sign in to comment.