Skip to content

Commit

Permalink
update integration db names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Jun 14, 2023
1 parent 3a7c322 commit c60daae
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
13 changes: 7 additions & 6 deletions docs/installation/setup/common_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,17 @@ Since the only user who can connect to a fresh install is the postgres user, her

postgres=# \password <foo>

Now we can create the ``agdcintegration`` and ``odcintegration`` databases for testing::
Now we can create databases for integration testing. You will need 2 databases - one for the Postgres driver and one for the PostGIS driver. You can name these databases however you want.
In this example we will call the databases ``pgintegration`` and ``pgisintegration``::

postgres=# create database agdcintegration;
postgres=# create database odcintegration;
postgres=# create database pgintegration;
postgres=# create database pgisintegration;
Or, directly from the bash terminal::

createdb agdcintegration
createdb odcintegration
createdb pgintegration
createdb pgisintegration

Connecting to your own database to try out some SQL should now be as easy as::

psql -d agdcintegration
psql -d pgintegration
4 changes: 2 additions & 2 deletions docs/installation/setup/macosx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ Then edit the ``~/.datacube_integration.conf`` with a text editor and add the fo

[datacube]
db_hostname: localhost
db_database: agdcintegration
db_database: pgintegration
index_driver: default
db_username: <foo>
db_password: <foobar>

[experimental]
db_hostname: localhost
db_database: odcintegration
db_database: pgisintegration
index_driver: postgis
db_username: <foo>
db_password: <foobar>
Expand Down
8 changes: 4 additions & 4 deletions docs/installation/setup/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Ubuntu distribution, eg::

sudo apt-get install postgresql-14

# Optionally, Postgis too
# Optionally, Postgis too (required for the postgis/experimental index driver)
sudo apt-get install postgresql-14-postgis-3

Ubuntu's official repositories usually ship older versions of Postgres. You can alternatively get the most recent version from
Expand All @@ -45,7 +45,7 @@ If createdb or psql cannot connect to server, check which postgresql installatio

If it is running the mambaforge installation, you may need to run the global installation::

/usr/bin/psql -d agdcintegration
/usr/bin/psql -d pgintegration


You can now specify the database user and password for ODC integration testing. To do this::
Expand All @@ -56,14 +56,14 @@ Then edit the ``~/.datacube_integration.conf`` with a text editor and add the fo

[datacube]
db_hostname: /var/run/postgresql
db_database: agdcintegration
db_database: pgintegration
index_driver: default
db_username: <foo>
db_password: <foobar>

[experimental]
db_hostname: /var/run/postgresql
db_database: odcintegration
db_database: pgisintegration
index_driver: postgis
db_username: <foo>
db_password: <foobar>
Expand Down
2 changes: 2 additions & 0 deletions wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ params
pc
petewa
pgadmin
pgintegration
pgisintegration
pixelquality
pkgs
Pluggable
Expand Down

1 comment on commit c60daae

@caitlinadams
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this change!

Please sign in to comment.