mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Merge pull request #6222 from ryanpetrello/fix-6160
properly filter `User.password` from ActivityStream entries
This commit is contained in:
@@ -131,3 +131,12 @@ class TestCredentialModels:
|
||||
entry = ActivityStream.objects.filter(credential=cred)[0]
|
||||
assert entry.operation == 'create'
|
||||
assert json.loads(entry.changes)['inputs'] == 'hidden'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
class TestUserModels:
|
||||
|
||||
def test_user_hidden_information(self, alice):
|
||||
entry = ActivityStream.objects.filter(user=alice)[0]
|
||||
assert entry.operation == 'create'
|
||||
assert json.loads(entry.changes)['password'] == 'hidden'
|
||||
|
||||
Reference in New Issue
Block a user