#33685: Tests crash when using only a service name on PostgreSQL.
-----------------------------------+------------------------------------
     Reporter:  Shane Ambler       |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  4.0
     Severity:  Release blocker    |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Hasan Ramezani, Carlton Gibson (added)


Comment:

 I've tried to implement this but all mechanism related with
 creating/cloning test databases are based on the database name. It's
 feasible, however, my draft patch is quite complex and the risk of
 introducing regressions in a stable version is too great, IMO. I'd
 document that service names cannot be currently used for testing purposes
 and treat this as a new feature request.

 For example:
 {{{#!diff
 diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
 index c270f56942..ca6362a7a6 100644
 --- a/docs/ref/databases.txt
 +++ b/docs/ref/databases.txt
 @@ -165,6 +165,11 @@ password from the `password file`_, you must specify
 them in the
      Support for connecting by a service name, and specifying a password
 file
      was added.

 +.. warning::
 +
 +    Using a service name for testing purposes is not supported. This
 +    :ticket:`may be implemented later <33685>`.
 +
  Optimizing PostgreSQL's configuration
  -------------------------------------


 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33685#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180bd1f0b05-74f4d857-7c5e-49e5-90b7-699559fc6301-000000%40eu-central-1.amazonses.com.

Reply via email to