mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
mark license expired inventory update + tests
This commit is contained in:
@@ -177,12 +177,12 @@ class BaseTestMixin(QueueTestMixin):
|
||||
rnd_str = '____' + str(random.randint(1, 9999999))
|
||||
return __name__ + '-generated-' + string + rnd_str
|
||||
|
||||
def create_test_license_file(self, instance_count=10000):
|
||||
def create_test_license_file(self, instance_count=10000, license_date=int(time.time() + 3600)):
|
||||
writer = LicenseWriter(
|
||||
company_name='AWX',
|
||||
contact_name='AWX Admin',
|
||||
contact_email='awx@example.com',
|
||||
license_date=int(time.time() + 3600),
|
||||
license_date=license_date,
|
||||
instance_count=instance_count)
|
||||
handle, license_path = tempfile.mkstemp(suffix='.json')
|
||||
os.close(handle)
|
||||
|
||||
Reference in New Issue
Block a user