OpenSearch/distribution
Andrew Ross 546ab21989
Use a non-default port for upgrade-cli unit tests (#1512)
I observed a [test failure][1] that I believe was caused by the fact
that an OpenSearch server happened to be running at localhost:9200 when
these unit tests were executed. The code under test has logic to try to
connect to localhost:9200 and then fall back to defaults if that port is
not open. The tests expect these defaults and will fail if different
data is returned. The change here is to use a non-default port to make
it very unlikely that a real instance will be running at the non-default
port. I don't know why an OpenSearch service happened to be running
during the linked test failure, but I think making these unit tests more
independent and isolated is helpful no matter the underlying cause in
this case.

[1]: https://fork-jenkins.searchservices.aws.dev/job/OpenSearch_CI/job/PR_Checks/job/Gradle_Check/975/artifact/gradle_check_975.log/*view*/

Signed-off-by: Andrew Ross <andrross@amazon.com>
2021-11-05 09:52:16 -04:00
..
archives Allow building on FreeBSD (#1091) 2021-10-14 14:42:28 -04:00
bwc [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
docker [BUG] SymbolicLinkPreservingUntarTransform fails on Windows (#1433) 2021-10-26 09:45:26 -05:00
licenses Fix stragglers from renaming to OpenSearch work. (#483) 2021-04-05 11:51:20 -07:00
packages Rename artifact produced by the build to include -min (#1251) 2021-09-21 19:43:35 -04:00
src FreeBSD Java support (#1014) 2021-09-07 18:17:58 -04:00
tools Use a non-default port for upgrade-cli unit tests (#1512) 2021-11-05 09:52:16 -04:00
build.gradle Allow building on FreeBSD (#1091) 2021-10-14 14:42:28 -04:00