File tree Expand file tree Collapse file tree 1 file changed +4
-28
lines changed
scripts/code_snippets/tests Expand file tree Collapse file tree 1 file changed +4
-28
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -eou pipefail
4
- test " ${MDB_BASH_DEBUG:- 0} " -eq 1 && set -x
5
-
6
4
source scripts/dev/set_env_context.sh
7
5
8
- script_name=$( readlink -f " ${BASH_SOURCE[0]} " )
9
-
10
- _SNIPPETS_OUTPUT_DIR=" $( dirname " ${script_name} " ) /outputs/$( basename " ${script_name% .* } " ) "
11
- export _SNIPPETS_OUTPUT_DIR
12
- mkdir -p " ${_SNIPPETS_OUTPUT_DIR} "
13
-
14
6
dump_logs () {
15
7
source scripts/evergreen/e2e/dump_diagnostic_information.sh
16
- if [[ " ${SKIP_DUMP:- " false" } " != " true" ]]; then
17
- scripts/evergreen/e2e/dump_diagnostic_information_from_all_namespaces.sh " ${K8S_CTX} "
18
- echo
19
- fi
8
+ dump_all_non_default_namespaces " $@ "
20
9
}
10
+ trap dump_logs EXIT
21
11
22
- function on_exit() {
23
- dump_logs
24
- }
25
-
26
- trap on_exit EXIT
12
+ test_dir=" ./docs/community-search/quick-start"
27
13
28
- test_dir=" ./docs/search/01-search-community-deploy"
29
14
source " ${test_dir} /env_variables.sh"
30
15
echo " Sourcing env variables for ${CODE_SNIPPETS_FLAVOR} flavor"
31
16
# shellcheck disable=SC1090
32
17
test -f " ${test_dir} /env_variables_${CODE_SNIPPETS_FLAVOR} .sh" && source " ${test_dir} /env_variables_${CODE_SNIPPETS_FLAVOR} .sh"
33
- ${test_dir} /test.sh
34
-
35
- test_dir=" ./docs/search/03-search-query-usage"
36
- echo " Sourcing env variables for ${CODE_SNIPPETS_FLAVOR} flavor"
37
- # shellcheck disable=SC1090
38
- test -f " ${test_dir} /env_variables_${CODE_SNIPPETS_FLAVOR} .sh" && source " ${test_dir} /env_variables_${CODE_SNIPPETS_FLAVOR} .sh"
39
-
40
- export MDB_RESOURCE_NAME=" mdbc-rs"
41
- export MDB_CONNECTION_STRING=" mongodb://mdb-user:${MDB_USER_PASSWORD} @${MDB_RESOURCE_NAME} -0.${MDB_RESOURCE_NAME} -svc.${MDB_NS} .svc.cluster.local:27017/?replicaSet=${MDB_RESOURCE_NAME} "
42
18
43
19
${test_dir} /test.sh
44
-
20
+ scripts/code_snippets/kind_community_search_snippets_render_template.sh
You can’t perform that action at this time.
0 commit comments