From Fedora Project Wiki
Description
Test basic functionality of the Database Server Role
Setup
- Deploy a correctly-configured Database Server. You can follow:
- QA:Testcase_Server_role_deploy with the Database Server role to deploy a PostgreSQL database server on Fedora 22 or later.
- Make note of the IP or hostname of the database server as well as the database name provided in the settings-file.
- If the database was created with a default owner and auto-generated password, retrieve those with the command
rolectl settings databaseserver/<instance>
- (You can use tab-completion if you don't know the instance name)
How to test
Test whether a remote psql
client can communicate with the database
- Install the
postgresql
package on another machine on the same network as the database server. - Run the following command to verify the presence of the database
psql -h hostname -U db_owner -d database_name
Expected Results
The database role is working if
- You are presented with the password prompt and the correct password is accepted.
- No incorrect password is accepted.
- You are presented with the postgresql command shell on successful login.