Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#25421 closed Bug (fixed)

Twice run tests with --keepdb option in Oracle fails

Reported by: felixxm Owned by: felixxm
Component: Database layer (models, ORM) Version: 1.8
Severity: Normal Keywords: Oracle test keepdb
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Twice run tests with --keepdb option in Oracle fails

Using existing test database for alias 'default'...
Failed (ORA-01543: tablespace 'TEST_DJANGO_TEST' already exists
)

To reproduce this:

  • run test with keepdb option: ./manage.py test --keepdb
  • repeat it

Change History (9)

comment:1 Changed 5 years ago by felixxm

Owner: changed from nobody to felixxm
Status: newassigned

comment:2 Changed 5 years ago by Shai Berger

Note that the Oracle backend has had, for a very long time, the CREATE_DB and CREATE_USER test settings that let you achieve an effect similar to --keepdb.

comment:3 Changed 5 years ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedAccepted

comment:4 Changed 5 years ago by Tim Graham

Patch needs improvement: set

Shai and I left some comments for improvement.

comment:5 Changed 5 years ago by felixxm

I made a little mess in 5312 PR with rebase, and I need to close it. New one is open PR and ready to check I have followed your comments.

Last edited 5 years ago by felixxm (previous) (diff)

comment:6 Changed 5 years ago by felixxm

Patch needs improvement: unset

comment:7 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In a3a6def:

Fixed #25421 -- Fixed test --keepdb option on Oracle.

comment:8 Changed 5 years ago by Tim Graham <timograham@…>

In 6a0b4faf:

[1.9.x] Fixed #25421 -- Fixed test --keepdb option on Oracle.

Backport of a3a6def867c61d24dfded6cbfef7f820409dc739 from master

comment:9 Changed 5 years ago by Tim Graham <timograham@…>

In cb2de5e2:

[1.8.x] Fixed #25421 -- Fixed test --keepdb option on Oracle.

Backport of a3a6def867c61d24dfded6cbfef7f820409dc739 from master

Note: See TracTickets for help on using tickets.
Back to Top