mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 15:58:38 -05:00
Prevent removing license via PUT/PATCH/DELETE to /api/v1/settings/system/.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
# Python
|
||||
import time
|
||||
import pytest
|
||||
|
||||
from awx.main.tests.factories import (
|
||||
@@ -52,3 +53,15 @@ def get_ssh_version(mocker):
|
||||
@pytest.fixture
|
||||
def job_template_with_survey_passwords_unit(job_template_with_survey_passwords_factory):
|
||||
return job_template_with_survey_passwords_factory(persisted=False)
|
||||
|
||||
@pytest.fixture
|
||||
def enterprise_license():
|
||||
from awx.main.task_engine import TaskEnhancer
|
||||
return TaskEnhancer(
|
||||
company_name='AWX',
|
||||
contact_name='AWX Admin',
|
||||
contact_email='awx@example.com',
|
||||
license_date=int(time.time() + 3600),
|
||||
instance_count=10000,
|
||||
license_type='enterprise',
|
||||
).enhance()
|
||||
|
||||
Reference in New Issue
Block a user