-
Notifications
You must be signed in to change notification settings - Fork 8
Testing
Tom Mitchell edited this page May 31, 2017
·
2 revisions
-
Export the database from the production server:
pg_dump --clean -U portal -h localhost portal > prod-pre-2.X-dump.sql
-
Copy the database dump to the staging server
-
(Is this still necessary?) Modify the DB dump to ensure all UTF8 characters (the
idp_account_request
table has non utf8 characters):iconv -f iso8859-1 -t utf-8 < prod-pre-2.X-dump.sql > prod-pre-2.X-dump-utf-8.sql
-
Import the database dump into the staging database
import_database.py --dump_file prod-pre-2.X-dump-utf-8.sql \ --old_hostname ch.geni.net --new_hostname ch.staging.geni.net \ --old_authority ch.geni.net --new_authority ch.staging.geni.net
-
Update the iRODS server URL to use the test server, using
psql
on the staging server:update service_registry set service_url = 'https://geni-gimi.renci.org:8443/irods-rest-test/rest' where service_url = 'https://geni-gimi.renci.org:8443/irods-rest-0.0.1-SNAPSHOT/rest';
-
Load the staging/dev CA cert
cd geni-portal/bin psql -U portal -h localhost -f add-dev-signer.sql portal
-
Test basic portal functions after import, and before software update
-
Apply any pre-update steps (OS updates, dependency updates)
-
Apply release branch to staging clearinghouse
cd <geni-portal> bin/geni-portal-install
-
Follow any post-update instructions in the CHANGES.md files