Changes between Version 26 and Version 27 of OracleTestSetup


Ignore:
Timestamp:
Sep 26, 2015, 4:58:53 AM (11 years ago)
Author:
Mariusz Felisiak
Comment:

Added section other" to settings, changed main user name

Legend:

Unmodified
Added
Removed
Modified
  • OracleTestSetup

    v26 v27  
    4141    $ pip install cx_Oracle
    4242
    43 #. Create test user::
     43#. Create main user::
    4444
    4545    $ sqlplus sys/oracle@localhost/cdb1 as sysdba
    4646    SQL> ALTER SESSION SET CONTAINER=orcl;
    47     SQL> CREATE USER djangotest IDENTIFIED BY djangotest;
    48     SQL> GRANT DBA TO djangotest;
     47    SQL> CREATE USER django IDENTIFIED BY django;
     48    SQL> GRANT DBA TO django;
    4949    SQL> QUIT
    5050
    … …  
    5252
    5353    DATABASES = {
    54         'default': {
    55             'ENGINE': 'django.db.backends.oracle',
    56             'NAME': '127.0.0.1:1521/orcl',
    57             'USER': 'djangotest',
    58             'PASSWORD': 'djangotest',
    59         },
     54       'default': {
     55           'ENGINE': 'django.db.backends.oracle',
     56           'NAME': '127.0.0.1:1521/orcl',
     57           'USER': 'django',
     58           'PASSWORD': 'django',
     59           'TEST' : {
     60               'USER': 'default_test',
     61               'TBLSPACE': 'default_test_tbls',
     62               'TBLSPACE_TMP': 'default_test_tbls_tmp',
     63           },
     64      },
     65      'other': {
     66         'ENGINE': 'django.db.backends.oracle',
     67         'NAME': '127.0.0.1:1521/orcl',
     68         'USER': 'django',
     69         'PASSWORD': 'django',
     70         'TEST' : {
     71                'USER': 'other_test',
     72                'TBLSPACE': 'other_test_tbls',
     73                'TBLSPACE_TMP': 'other_test_tbls_tmp',
     74         },
     75      },
    6076    }
    6177
    … …  
    6480    $ ./manage.py test
    6581    Creating test database for alias 'default'...
     82    Creating test user...
     83    Creating test database for alias 'other'...
    6684    Creating test user...
    6785    ...
    … …  
    7391    Destroying test user...
    7492    Destroying test database tables...
     93    Destroying test database for alias 'other'...
     94    Destroying test user...
     95    Destroying test database tables...
    7596}}}
Back to Top