Skip to content

Commit

Permalink
Use juju-qa-test rather than postgres
Browse files Browse the repository at this point in the history
If we're using postgres charm it prevents us from tearing down because
of storage issues. This test doesn't need to use postgres, we should
just us a simpler charm for now.
  • Loading branch information
SimonRichardson committed May 24, 2023
1 parent 1a2759d commit 097abc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/suites/machine/machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ test_log_permissions() {
file="${TEST_DIR}/test_log_permissions.log"
ensure "correct-log" "${file}"

juju deploy postgresql --series focal
juju deploy juju-qa-test source --series focal

wait_for "started" '.machines."0"."juju-status".current'

check_contains "$(juju ssh 0 -- stat -c '%G' /var/log/juju/unit-postgresql-0.log)" adm
check_contains "$(juju ssh 0 -- stat -c '%a' /var/log/juju/unit-postgresql-0.log)" 640
check_contains "$(juju ssh 0 -- stat -c '%G' /var/log/juju/unit-source-0.log)" adm
check_contains "$(juju ssh 0 -- stat -c '%a' /var/log/juju/unit-source-0.log)" 640

check_contains "$(juju ssh 0 -- stat -c '%a' /var/log/juju/machine-0.log)" 640
check_contains "$(juju ssh 0 -- stat -c '%G' /var/log/juju/machine-0.log)" adm
Expand Down

0 comments on commit 097abc1

Please sign in to comment.