From: Paul B Date: Fri, 25 Jan 2019 12:38:57 +0000 (+0100) Subject: tests: adding a database creation with extensions X-Git-Tag: 1.4.0^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=dd54b74860fd9db85807619109b000b16b9bf52e;p=github%2Ffretlink%2Fansible-postgresql-role.git tests: adding a database creation with extensions --- diff --git a/.travis.yml b/.travis.yml index 7a72289..c424411 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ addons: install: # Install ansible - - pip install ansible + - pip install ansible docker-py docker # Check ansible version - ansible --version - ansible-galaxy install -r test/requirements.yml -p test/roles/ @@ -21,6 +21,8 @@ install: script: # Basic role syntax check - ansible-playbook test/main.yml -i test/hosts --syntax-check + # Run the tests + - ansible-playbook test/main.yml -i test/hosts notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/test/main.yml b/test/main.yml index 6258199..bc9d27c 100644 --- a/test/main.yml +++ b/test/main.yml @@ -49,12 +49,25 @@ archive_enabled: True barman_directory: "{{ postgres_barman_directory }}" users: + - username: tester + password: tester - username: barman password: "secret_cocktail" permissions: 'SUPERUSER' - username: replicator password: "secret_repli" permissions: 'REPLICATION' + databases: + - dbname: test_database + owner: tester + extensions: + - description: PostGis + apt_deps: + - "postgresql-{{ postgres_version }}-postgis" + names: + - postgis + - postgis_topology + - btree_gist with_items: - postgres_one