super user on django's tethys_default db

9 views
Skip to first unread message

shawncrawley

unread,
Jul 19, 2017, 4:42:34 PM7/19/17
to Tethys Platform
With Tethys 2.0, I've run into an issue when trying to run tests. Prior to 2.0, to be able to run tests, the django database user had to be set to "tethys_super" to give the proper permissions (see https://github.com/tethysplatform/tethys/wiki/Testing-Requirements). With 2.0, if I change the user to "tethys_super" I get the error that the role "tethys_super" does not exist. Is there a different super user that I can use for testing?

Alan Snow

unread,
Jul 19, 2017, 5:15:32 PM7/19/17
to shawncrawley, Tethys Platform
There have been some refactoring of the database with settings.

I recommend going through the 2.0 Tutorial.

On Wed, Jul 19, 2017 at 3:42 PM, shawncrawley <shawnc...@gmail.com> wrote:
With Tethys 2.0, I've run into an issue when trying to run tests. Prior to 2.0, to be able to run tests, the django database user had to be set to "tethys_super" to give the proper permissions (see https://github.com/tethysplatform/tethys/wiki/Testing-Requirements). With 2.0, if I change the user to "tethys_super" I get the error that the role "tethys_super" does not exist. Is there a different super user that I can use for testing?

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatform+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/67295f3d-c3e2-42cf-96a3-a7090ba67b80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Scott Christensen

unread,
Jul 20, 2017, 1:24:15 AM7/20/17
to Alan Snow, shawncrawley, Tethys Platform

There are now two database servers that get set up with the installation. The one that Django uses doesn't have a super user. We should add that into the install script. In the meantime you can add a user manually. Look at the install_tethys.sh script about lines 262 and 263 as a reference for how to do that. Some adaptation will be necessary to make the user a super user.


On Wed, Jul 19, 2017, 3:15 PM Alan Snow <alans...@gmail.com> wrote:
There have been some refactoring of the database with settings.

I recommend going through the 2.0 Tutorial.
On Wed, Jul 19, 2017 at 3:42 PM, shawncrawley <shawnc...@gmail.com> wrote:
With Tethys 2.0, I've run into an issue when trying to run tests. Prior to 2.0, to be able to run tests, the django database user had to be set to "tethys_super" to give the proper permissions (see https://github.com/tethysplatform/tethys/wiki/Testing-Requirements). With 2.0, if I change the user to "tethys_super" I get the error that the role "tethys_super" does not exist. Is there a different super user that I can use for testing?

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/CAGybdFRyS5Lg%2Bo7k-ZP4cjqs12Bm9A_BMsi-h-Mi0vY3O8qmFw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
--
Scott D. Christensen, PhD
Research Civil Engineer
Information Technology Laboratory  
US Army Corps of Engineers
 
Reply all
Reply to author
Forward
0 new messages