Changed Oracle test-user creation to grant privileges instead of roles

because the roles (specifically RESOURCE) are deprecated.
Also added optional support for creating views in tests, and made an
introspection test fail (rather than skip)  if a view cannot be created
due to lacking privileges.

Refs #18782

Thanks Tim Graham for review, and Josh Smeaton
This commit is contained in:
Shai Berger 2014-09-21 20:15:48 +03:00
parent a1709220d5
commit d128eac316
4 changed files with 58 additions and 7 deletions

View file

@ -43,7 +43,7 @@ class IntrospectionTests(TestCase):
'from introspection_article;')
except DatabaseError as e:
if 'insufficient privileges' in str(e):
self.skipTest("The test user has no CREATE VIEW privileges")
self.fail("The test user has no CREATE VIEW privileges")
else:
raise