File tree Expand file tree Collapse file tree 7 files changed +201
-66
lines changed
mongodb-kubernetes-init-database/content
mongodb-kubernetes-tests/tests
multicluster_shardedcluster Expand file tree Collapse file tree 7 files changed +201
-66
lines changed Original file line number Diff line number Diff line change @@ -1130,6 +1130,15 @@ task_groups:
1130
1130
- e2e_om_ops_manager_prometheus
1131
1131
<< : *teardown_group
1132
1132
1133
+ # Tests features only supported on OM80
1134
+ - name : e2e_ops_manager_kind_8_0_only_task_group
1135
+ max_hosts : -1
1136
+ << : *setup_group
1137
+ << : *setup_and_teardown_task
1138
+ tasks :
1139
+ - e2e_search_enterprise_tls
1140
+ << : *teardown_group
1141
+
1133
1142
# Tests features only supported on OM70 and OM80, its only upgrade test as we test upgrading from 6 to 7 or 7 to 8
1134
1143
- name : e2e_ops_manager_upgrade_only_task_group
1135
1144
max_hosts : -1
@@ -1340,6 +1349,7 @@ buildvariants:
1340
1349
- name : e2e_ops_manager_kind_5_0_only_task_group_without_queryable_backup
1341
1350
- name : e2e_ops_manager_kind_6_0_only_task_group
1342
1351
- name : e2e_ops_manager_upgrade_only_task_group
1352
+ - name : e2e_ops_manager_kind_8_0_only_task_group
1343
1353
1344
1354
- name : e2e_static_om80_kind_ubi
1345
1355
display_name : e2e_static_om80_kind_ubi
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ download_agent() {
115
115
esac
116
116
117
117
script_log " Downloading Agent version: ${AGENT_VERSION} "
118
- script_log " Downloading a Mongodb Agent from ${base_url:? } "
118
+ script_log " Downloading a Mongodb Agent from ${base_url:? } /download/agent/automation/ ${AGENT_FILE} "
119
119
curl_opts=(
120
120
" ${base_url} /download/agent/automation/${AGENT_FILE} "
121
121
@@ -133,11 +133,13 @@ download_agent() {
133
133
curl_opts+=(" --cacert" " ${SSL_TRUSTED_MMS_SERVER_CERTIFICATE} " )
134
134
fi
135
135
136
+ echo " Executing curl command: curl ${curl_opts[*]} "
136
137
if ! curl " ${curl_opts[@]} " & > " ${MMS_LOG_DIR} /curl.log" ; then
137
138
script_log " Error while downloading the Mongodb agent"
138
139
exit 1
139
140
fi
140
- json_log ' agent-launcher-script' < " ${MMS_LOG_DIR} /curl.log" >> " ${MDB_LOG_FILE_AGENT_LAUNCHER_SCRIPT} "
141
+
142
+ grep -v -E " bytes data\]|\[no content\]" " ${MMS_LOG_DIR} /curl.log" | json_log ' agent-launcher-script' >> " ${MDB_LOG_FILE_AGENT_LAUNCHER_SCRIPT} "
141
143
rm " ${MMS_LOG_DIR} /curl.log" 2> /dev/null || true
142
144
143
145
script_log " The Mongodb Agent binary downloaded, unpacking"
Original file line number Diff line number Diff line change 1
- import os
2
1
import time
3
2
from typing import Optional
4
3
Original file line number Diff line number Diff line change 15
15
16
16
backup :
17
17
enabled : false
18
+
19
+ # adding this just to avoid wizard when opening OM UI
20
+ configuration :
21
+ automation.versions.source : mongodb
22
+ mms.adminEmailAddr : cloud-manager-support@mongodb.com
23
+ mms.fromEmailAddr : cloud-manager-support@mongodb.com
24
+ mms.ignoreInitialUiSetup : " true"
25
+ mms.mail.hostname : email-smtp.us-east-1.amazonaws.com
26
+ mms.mail.port : " 465"
27
+ mms.mail.ssl : " true"
28
+ mms.mail.transport : smtp
29
+ mms.minimumTLSVersion : TLSv1.2
30
+ mms.replyToEmailAddr : cloud-manager-support@mongodb.com
Original file line number Diff line number Diff line change @@ -19,16 +19,15 @@ spec:
19
19
- SCRAM
20
20
agent :
21
21
logLevel : DEBUG
22
- statefulSet :
23
- spec :
24
- template :
25
- spec :
26
- containers :
27
- - name : mongodb-enterprise-database
28
- resources :
29
- limits :
30
- cpu : " 2"
31
- memory : 2Gi
32
- requests :
33
- cpu : " 1"
34
- memory : 1Gi
22
+ podSpec :
23
+ podTemplate :
24
+ spec :
25
+ containers :
26
+ - name : mongodb-enterprise-database
27
+ resources :
28
+ limits :
29
+ cpu : " 2"
30
+ memory : 2Gi
31
+ requests :
32
+ cpu : " 1"
33
+ memory : 1Gi
Original file line number Diff line number Diff line change
1
+ from typing import Optional
2
+
3
+ from kubetester import try_load
4
+ from kubetester .kubetester import fixture as yaml_fixture
5
+ from kubetester .kubetester import is_multi_cluster
6
+ from kubetester .opsmanager import MongoDBOpsManager
7
+ from pytest import fixture
8
+ from tests .common .ops_manager .cloud_manager import is_cloud_qa
9
+ from tests .conftest import get_custom_appdb_version , get_custom_om_version
10
+ from tests .opsmanager .withMonitoredAppDB .conftest import enable_multi_cluster_deployment
11
+
12
+
13
+ def get_ops_manager (namespace : str ) -> Optional [MongoDBOpsManager ]:
14
+ if is_cloud_qa ():
15
+ return None
16
+
17
+ resource : MongoDBOpsManager = MongoDBOpsManager .from_yaml (
18
+ yaml_fixture ("om_ops_manager_basic.yaml" ), namespace = namespace
19
+ )
20
+
21
+ if try_load (resource ):
22
+ return resource
23
+
24
+ resource .set_version (get_custom_om_version ())
25
+ resource .set_appdb_version (get_custom_appdb_version ())
26
+ resource .allow_mdb_rc_versions ()
27
+
28
+ if is_multi_cluster ():
29
+ enable_multi_cluster_deployment (resource )
30
+
31
+ return resource
You can’t perform that action at this time.
0 commit comments