-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0023885
commit 6d961d2
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
|
||
from awx.main.models import ( # noqa | ||
User, | ||
) | ||
|
||
|
||
@pytest.mark.django_db | ||
def test_feature_flags_list_endpoint(get): | ||
bob = User.objects.create(username='bob', password='test_user', is_superuser=False) | ||
|
||
url = "/api/v2/feature_flags_definition/" | ||
response = get(url, user=bob, expect=200) | ||
assert len(response.data) == 1 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
git+https://github.com/ansible/system-certifi.git@devel#egg=certifi | ||
# Remove pbr from requirements.in when moving ansible-runner to requirements.in | ||
git+https://github.com/ansible/ansible-runner.git@devel#egg=ansible-runner | ||
django-ansible-base @ git+https://github.com/ansible/django-ansible-base@devel#egg=django-ansible-base[rest-filters,jwt_consumer,resource-registry,rbac] | ||
django-ansible-base @ git+https://github.com/zkayyali812/django-ansible-base@zk/feature-flag/api#egg=django-ansible-base[rest-filters,jwt_consumer,resource-registry,rbac,feature-flags] | ||
awx-plugins-core @ git+https://github.com/ansible/awx-plugins.git@devel#egg=awx-plugins-core | ||
awx_plugins.interfaces @ git+https://github.com/ansible/awx_plugins.interfaces.git |