Opened 10 years ago
Closed 9 years ago
#25898 closed Bug (fixed)
test database creation on Oracle mistakes privilege error for existing database
| Reported by: | JorisBenschop | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | Testing framework | Version: | 1.9 |
| Severity: | Normal | Keywords: | oracle test |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
If I run "manage.py test" on Oracle 12 the following occurs:
$ ./manage.py test Creating test database for alias 'default'... Failed (ORA-01031: insufficient privileges ) Got an error creating the test database: ORA-01031: insufficient privileges It appears the test database, test_GFJOM_prada_, already exists. Type 'yes' to delete it, or 'no' to cancel:
To me this seems that the error ('you are not allowed to create a db because you have no privs for that" is mistaken for "the db already exists thus you cannot make it"
Change History (7)
comment:1 by , 10 years ago
| Summary: | manage.py test mistakes privilege error for existing databas → manage.py test mistakes privilege error for existing database |
|---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
| Summary: | manage.py test mistakes privilege error for existing database → test database creation on Oracle mistakes privilege error for existing database |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:4 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:6 by , 9 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
I think the PR is almost good to go, left minor style comments.
Note:
See TracTickets
for help on using tickets.
As a workaround, you can try
manage.py test --keep-db. I'm not saying this is the ideal resolution of this ticket. I'm just trying to give you a way forwards while we figure out a solution.