mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 17:50:02 -03:30
allow any authenticated user to access the schedule preview API endpoint
see: https://github.com/ansible/tower/issues/1939
This commit is contained in:
@@ -87,6 +87,12 @@ def test_invalid_rrules(post, admin_user, project, inventory, rrule, error):
|
||||
assert error in resp.content
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_normal_users_can_preview_schedules(post, alice):
|
||||
url = reverse('api:schedule_rrule')
|
||||
post(url, {'rrule': get_rrule()}, alice, expect=200)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_utc_preview(post, admin_user):
|
||||
url = reverse('api:schedule_rrule')
|
||||
|
||||
Reference in New Issue
Block a user