@@ -395,6 +395,7 @@ Unacceptable Insecure PSQL Connection to mTLS Server Returns Error Message
395395 Should Contain ${result.stderr } server closed the connection unexpectedly
396396
397397PG Session Debug Behaviour Canonical
398+ [Documentation] The mTLS servers have debug on
398399 Set Environment Variable PGHOST ${PSQL_CLIENT_HOST }
399400 Set Environment Variable PGPORT ${PG_SRV_PORT_MTLS }
400401 Set Environment Variable PGSSLMODE verify\-full
@@ -434,3 +435,34 @@ PG Session Debug Behaviour Canonical
434435 ... AND Remove Environment Variable PGSSLKEY
435436 ... AND Remove Environment Variable PGSSLROOTCERT
436437
438+ PG Session Debug Off Behaviour Canonical
439+ [Documentation] The unencrypted servers have debug off
440+ Set Environment Variable PGHOST ${PSQL_CLIENT_HOST }
441+ Set Environment Variable PGPORT ${PG_SRV_PORT_UNENCRYPTED }
442+ Set Environment Variable PGUSER stackql
443+ Set Environment Variable PGPASSWORD ${PSQL_PASSWORD }
444+ ${inputStr } = Catenate
445+ ... SELECT repo, count(1) as has_starred
446+ ... FROM github.activity.repo_stargazers
447+ ... WHERE owner = 'sillyorg' and repo in ('silly', 'silly-but-more') and login = 'sillylogin'
448+ ... GROUP BY repo;
449+ ${outputStr } = Catenate SEPARATOR=\n
450+ ... repo | has_starred
451+ ... ------+-------------
452+ ... (0 rows)
453+ ${posixInput } = Catenate
454+ ... "${PSQL_EXE } " -c "${inputStr } "
455+ ${windowsInput } = Catenate
456+ ... & ${posixInput }
457+ ${input } = Set Variable If "${IS_WINDOWS } " == "1 " ${windowsInput } ${posixInput }
458+ ${shellExe } = Set Variable If "${IS_WINDOWS } " == "1 " powershell sh
459+ ${result } = Run Process
460+ ... ${shellExe } \-c ${input }
461+ ... stdout=${CURDIR } /tmp/PG-Session-Debug-Off-Behaviour-Canonical.tmp
462+ ... stderr=${CURDIR } /tmp/PG-Session-Debug-Off-Behaviour-Canonical-stderr.tmp
463+ Should Contain ${result.stdout } ${outputStr } collapse_spaces=True
464+ Should Be Empty ${result.stderr }
465+ [Teardown] Run Keywords Remove Environment Variable PGHOST
466+ ... AND Remove Environment Variable PGPORT
467+ ... AND Remove Environment Variable PGUSER
468+ ... AND Remove Environment Variable PGPASSWORD
0 commit comments