Skip to content

Commit

Permalink
- updating the compare yaml file to match new reality
Browse files Browse the repository at this point in the history
- skipping monitoring-0 pod from password leack check
  • Loading branch information
ptankov committed Oct 5, 2023
1 parent 22da5ab commit 56d05fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions e2e-tests/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,13 @@ check_passwords_leak() {

NS=$1
for p in $pods; do
if [[ $p == "monitoring-0" ]]; then
continue
fi
containers=$(kubectl_bin -n "$NS" get pod $p -o jsonpath='{.spec.containers[*].name}')
for c in $containers; do
# temporary, because of: https://jira.percona.com/browse/PMM-8357
if [[ ${c} =~ "pmm" ]]; then
if [[ $c =~ "pmm" ]]; then
continue
fi
kubectl_bin -n "$NS" logs $p -c $c > ${tmp_dir}/logs_output-$p-$c.txt
Expand All @@ -1551,7 +1554,7 @@ check_passwords_leak() {
echo trying password: $pass
count=$(grep -c --fixed-strings -- "$pass" ${tmp_dir}/logs_output-$p-$c.txt || :)
if [[ $count != 0 ]]; then
echo leaked passwords are found in log ${tmp_dir}/logs_output-$p-$c.txt
echo leaked password $pass is found in log ${tmp_dir}/logs_output-$p-$c.txt
echo the content of file ${tmp_dir}/logs_output-$p-$c.txt is:
echo =========================================================
cat ${tmp_dir}/logs_output-$p-$c.txt
Expand Down
1 change: 0 additions & 1 deletion e2e-tests/monitoring-2-0/compare/agents-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
"service_type": "postgresql",
"database_name": "postgres",
"node_name": "pmm-server",
"cluster": "pmm-server-postgresql",
"address": "127.0.0.1",
"port": 5432,
"agents": [
Expand Down

0 comments on commit 56d05fe

Please sign in to comment.