[ubuntu] Refactor test helpers (#8938)

* [ubuntu] Refactor test helpers

* [ubuntu] Adjust help comment
This commit is contained in:
Shamil Mubarakshin
2023-12-04 12:05:25 +01:00
committed by GitHub
parent 5ed2615017
commit ff1dc02cbc
4 changed files with 82 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ Describe "MongoDB" -Skip:(Test-IsUbuntu22) {
Describe "PostgreSQL" {
It "PostgreSQL Service" {
"sudo systemctl start postgresql" | Should -ReturnZeroExitCode
"pg_isready" | Should -MatchCommandOutput "/var/run/postgresql:5432 - accepting connections"
"pg_isready" | Should -OutputTextMatchingRegex "/var/run/postgresql:5432 - accepting connections"
"sudo systemctl stop postgresql" | Should -ReturnZeroExitCode
}