Skip to content

Commit f6a2919

Browse files
authored
chore(connectivity-tests): bump devtools-docker-test-envs (#1233)
1 parent b62f8a8 commit f6a2919

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/connectivity-tests/test/all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export TEST_TMPDIR="$PWD"
1414
git clone [email protected]:mongodb-js/devtools-docker-test-envs.git test-envs
1515
cd test-envs
1616

17-
git checkout fb075fd36a834bcd8a1695aeef691e766ca6bba6
17+
git checkout f029f9e3a9cc006a6aeb60d941b4f8d87ae4bc95
1818

1919
source "$CONNECTIVITY_TEST_SOURCE_DIR/ldap.sh"
2020
source "$CONNECTIVITY_TEST_SOURCE_DIR/localhost.sh"

packages/connectivity-tests/test/kerberos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ set -x
44

55
FAILED=no
66
docker-compose \
7-
-f "$TEST_TMPDIR/test-envs/kerberos/docker-compose.yaml" \
7+
-f "$TEST_TMPDIR/test-envs/docker/kerberos/docker-compose.yaml" \
88
-f "$CONNECTIVITY_TEST_SOURCE_DIR/kerberos/docker-compose.kerberos.yaml" \
99
--no-ansi \
1010
up --exit-code-from kerberos_jumphost --abort-on-container-exit || FAILED=yes
1111

1212
docker-compose \
13-
-f "$TEST_TMPDIR/test-envs/kerberos/docker-compose.yaml" \
13+
-f "$TEST_TMPDIR/test-envs/docker/kerberos/docker-compose.yaml" \
1414
-f "$CONNECTIVITY_TEST_SOURCE_DIR/kerberos/docker-compose.kerberos.yaml" \
1515
--no-ansi \
1616
down -v

packages/connectivity-tests/test/kerberos/kerberos-run.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ function get_domain_ip() {
2020
function resolve_hosts() {
2121
MONGODB_1_IP=$(get_domain_ip "mongodb-kerberos-1.example.com")
2222
MONGODB_2_IP=$(get_domain_ip "mongodb-kerberos-2.example.com")
23-
MONGODB_3_IP=$(get_domain_ip "mongodb-kerberos-3.examplewrong.com")
23+
MONGODB_3_IP=$(get_domain_ip "mongodb-kerberos-3.examplecrossrealm.com")
2424
echo "$MONGODB_1_IP mongodb-kerberos-1.example.com" >> /etc/hosts
2525
echo "$MONGODB_2_IP mongodb-kerberos-2.example.com" >> /etc/hosts
26-
echo "$MONGODB_3_IP mongodb-kerberos-3.examplewrong.com" >> /etc/hosts
26+
echo "$MONGODB_3_IP mongodb-kerberos-3.examplecrossrealm.com" >> /etc/hosts
2727
}
2828

2929
function setup_kerberos() {
@@ -33,7 +33,7 @@ function setup_kerberos() {
3333
}
3434

3535
function update_kerberos_cross_realm() {
36-
printf "\n[domain_realm]\n .examplewrong.com = EXAMPLE2.COM\n" >> /etc/krb5.conf
36+
printf "\n[domain_realm]\n .examplecrossrealm.com = EXAMPLE2.COM\n" >> /etc/krb5.conf
3737
}
3838

3939
function check_failed() {
@@ -94,7 +94,7 @@ function test_alternate_gssapi_uri() {
9494
function test_cross_gssapi_explicit_expect_fail() {
9595
printf "test_cross_gssapi_explicit_expect_fail ... "
9696

97-
$MONGOSH --host mongodb-kerberos-3.examplewrong.com --port 27017 --username '[email protected]' --authenticationMechanism GSSAPI --quiet --eval "${CONNECTION_STATUS_COMMAND}" |
97+
$MONGOSH --host mongodb-kerberos-3.examplecrossrealm.com --port 27017 --username '[email protected]' --authenticationMechanism GSSAPI --quiet --eval "${CONNECTION_STATUS_COMMAND}" |
9898
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" && FAILED="Can't connect to mongodb-kerberos-3 using explicit parameters"
9999

100100
check_failed
@@ -103,7 +103,7 @@ function test_cross_gssapi_explicit_expect_fail() {
103103
function test_cross_gssapi_explicit() {
104104
printf "test_cross_gssapi_explicit ... "
105105

106-
$MONGOSH --host mongodb-kerberos-3.examplewrong.com --port 27017 --username '[email protected]' --authenticationMechanism GSSAPI --quiet --eval "${CONNECTION_STATUS_COMMAND}" |
106+
$MONGOSH --host mongodb-kerberos-3.examplecrossrealm.com --port 27017 --username '[email protected]' --authenticationMechanism GSSAPI --quiet --eval "${CONNECTION_STATUS_COMMAND}" |
107107
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" ||
108108
FAILED="Can't connect to mongodb-kerberos-3 using explicit parameters"
109109

@@ -113,7 +113,7 @@ function test_cross_gssapi_explicit() {
113113
function test_cross_gssapi_uri() {
114114
printf "test_cross_gssapi_uri ... "
115115

116-
CONNECTION_STRING="mongodb://mongodb.user%40EXAMPLE.COM@mongodb-kerberos-3.examplewrong.com:27017/?authMechanism=GSSAPI"
116+
CONNECTION_STRING="mongodb://mongodb.user%40EXAMPLE.COM@mongodb-kerberos-3.examplecrossrealm.com:27017/?authMechanism=GSSAPI"
117117

118118
$MONGOSH "${CONNECTION_STRING}" --quiet --eval "${CONNECTION_STATUS_COMMAND}" |
119119
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" ||

packages/connectivity-tests/test/ldap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ function try_connect_connection_string() {
2020
}
2121

2222
function test_for_version() {
23-
MONGODB_VERSION="$1" docker-compose -f ldap/docker-compose.yaml up -d
23+
MONGODB_VERSION="$1" docker-compose -f docker/ldap/docker-compose.yaml up -d
2424

2525
sleep 10 # let mongod start up
2626
FAILED_EXPLICIT=$(try_connect_explicit '[email protected]' 'Password1!')
2727
FAILED_CONNECTION_STRING=$(try_connect_connection_string 'mongodb://writer%40EXAMPLE.COM:Password1!@localhost:30017/$external?authMechanism=PLAIN' '[email protected]')
2828

29-
MONGODB_VERSION="$1" docker-compose -f ldap/docker-compose.yaml down
29+
MONGODB_VERSION="$1" docker-compose -f docker/ldap/docker-compose.yaml down
3030

3131
if [ $FAILED_EXPLICIT = yes ]; then
3232
ANY_FAILED=yes

packages/connectivity-tests/test/localhost.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ function try_connect_connection_string() {
1313
}
1414

1515
function test_for_version() {
16-
MONGODB_VERSION="$1" docker-compose -f enterprise/docker-compose.yaml up -d
16+
MONGODB_VERSION="$1" docker-compose -f docker/enterprise/docker-compose.yaml up -d
1717

1818
sleep 10 # let mongod start up
1919
FAILED_EXPLICIT=$(try_connect_explicit)
2020
FAILED_CONNECTION_STRING=$(try_connect_connection_string)
2121

22-
MONGODB_VERSION="$1" docker-compose -f enterprise/docker-compose.yaml down
22+
MONGODB_VERSION="$1" docker-compose -f docker/enterprise/docker-compose.yaml down
2323

2424
if [ $FAILED_EXPLICIT = yes ]; then
2525
ANY_FAILED=yes

0 commit comments

Comments
 (0)