Generate large test license for cloud inventory import unit tests.

This commit is contained in:
Chris Church
2014-06-05 16:20:17 -04:00
parent d2d7ac3d1c
commit 3a5db149e9
3 changed files with 38 additions and 39 deletions

View File

@@ -1373,6 +1373,7 @@ class InventoryUpdatesTest(BaseTransactionTest):
source_regions = getattr(settings, 'TEST_AWS_REGIONS', 'all')
if not all([source_username, source_password]):
self.skipTest('no test ec2 credentials defined!')
self.create_test_license_file()
credential = Credential.objects.create(kind='aws',
user=self.super_django_user,
username=source_username,
@@ -1419,6 +1420,7 @@ class InventoryUpdatesTest(BaseTransactionTest):
source_regions = getattr(settings, 'TEST_RACKSPACE_REGIONS', '')
if not all([source_username, source_password]):
self.skipTest('no test rackspace credentials defined!')
self.create_test_license_file()
credential = Credential.objects.create(kind='rax',
user=self.super_django_user,
username=source_username,