Skip to content

Commit

Permalink
GEODE-8967: Moved SNI test ports to 20220 and 20221 for locator and s…
Browse files Browse the repository at this point in the history
…erver (apache#751)
  • Loading branch information
Matthew Reddington authored Feb 24, 2021
1 parent cc92640 commit 0f1526f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions cppcache/acceptance-test/SNITest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TEST_F(SNITest, connectViaProxy) {
cache.getPoolManager()
.createFactory()
.setSniProxy("localhost", portNumber)
.addLocator("locator-maeve", 10334)
.addLocator("locator-maeve", 20220)
.create("pool");

auto region = cache.createRegionFactory(RegionShortcut::PROXY)
Expand All @@ -151,7 +151,7 @@ TEST_F(SNITest, connectWithoutProxyFails) {
cache.getPoolManager()
.createFactory()
.setSniProxy("badProxyName", 40000)
.addLocator("locator-maeve", 10334)
.addLocator("locator-maeve", 20220)
.create("pool");

auto region = cache.createRegionFactory(RegionShortcut::PROXY)
Expand Down Expand Up @@ -180,7 +180,7 @@ TEST_F(SNITest, dropSNIProxy) {
cache.getPoolManager()
.createFactory()
.setSniProxy("localhost", proxyPort)
.addLocator("locator-maeve", 10334)
.addLocator("locator-maeve", 20220)
.create("pool");

auto region = cache.createRegionFactory(RegionShortcut::PROXY)
Expand Down
4 changes: 2 additions & 2 deletions sni-test-config/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ services:
container_name: 'geode'
image: 'apachegeode/geode'
expose:
- '10334'
- '40404'
- '20220'
- '20221'
entrypoint: 'sh'
command: ["-c", "while true; do sleep 600; done"]
networks:
Expand Down
6 changes: 3 additions & 3 deletions sni-test-config/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ frontend sniproxy

backend locators-maeve
mode tcp
server locator1 geode:10334
server locator1 geode:20220

backend servers-dolores
mode tcp
server server1 geode:40404
server server1 geode:20221

backend servers-clementine
mode tcp
server server1 geode:40405
server server1 geode:20222
6 changes: 3 additions & 3 deletions sni-test-config/scripts/geode-starter.gfsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# limitations under the License.
#

start locator --name=locator-maeve --hostname-for-clients=locator-maeve --properties-file=/geode/config/gemfire.properties --security-properties-file=/geode/config/gfsecurity.properties --J=-Dgemfire.ssl-keystore=/geode/config/locator-maeve-keystore.jks
start server --name=server-dolores --max-heap=256m --hostname-for-clients=server-dolores --locators=localhost[10334] --properties-file=/geode/config/gemfire.properties --security-properties-file=/geode/config/gfsecurity.properties --J=-Dgemfire.ssl-keystore=/geode/config/server-dolores-keystore.jks
connect --locator=localhost[10334] --use-ssl=true --security-properties-file=/geode/config/gfsecurity.properties
start locator --port=20220 --name=locator-maeve --hostname-for-clients=locator-maeve --properties-file=/geode/config/gemfire.properties --security-properties-file=/geode/config/gfsecurity.properties --J=-Dgemfire.ssl-keystore=/geode/config/locator-maeve-keystore.jks
start server --server-port=20221 --name=server-dolores --max-heap=256m --hostname-for-clients=server-dolores --locators=localhost[20220] --properties-file=/geode/config/gemfire.properties --security-properties-file=/geode/config/gfsecurity.properties --J=-Dgemfire.ssl-keystore=/geode/config/server-dolores-keystore.jks
connect --locator=localhost[20220] --use-ssl=true --security-properties-file=/geode/config/gfsecurity.properties
create region --name=jellyfish --type=REPLICATE

0 comments on commit 0f1526f

Please sign in to comment.