@ -8,245 +8,24 @@ import requests
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_create():
|
||||
""" History row must be added to history table on create """
|
||||
def test_history_auth_view_super_admin():
|
||||
""" Super Admin can view history without requiring permission """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
def test_history_no_entry_without_item():
|
||||
""" A history entry cant be created without an item
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_operating_system_create():
|
||||
""" History row must be added to history table on create
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
fields required `item_pk` and `item_class`
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_operating_system_update():
|
||||
""" History row must be added to history table on update
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
def test_history_no_entry_without_parent_item():
|
||||
""" A history entry cant be created without a parent item
|
||||
|
||||
fields required `parent_item_pk` and `parent_item_class
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_operating_system_delete():
|
||||
""" History row must be added to history table on delete
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_software_create():
|
||||
""" History row must be added to history table on create
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_software_update():
|
||||
""" History row must be added to history table on update
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_device_software_delete():
|
||||
""" History row must be added to history table on delete
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_version_create():
|
||||
""" History row must be added to history table on create
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_version_update():
|
||||
""" History row must be added to history table on update
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_operating_system_version_delete():
|
||||
""" History row must be added to history table on delete
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_version_create():
|
||||
""" History row must be added to history table on create
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_version_update():
|
||||
""" History row must be added to history table on update
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_software_version_delete():
|
||||
""" History row must be added to history table on delete
|
||||
|
||||
Must also have populated parent_item_pk and parent_item_class columns
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_team_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_team_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_organization_team_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_users_create():
|
||||
""" History row must be added to history table on create """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_users_update():
|
||||
""" History row must be added to history table on updatej """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_history_team_users_delete():
|
||||
""" History row must be added to history table on delete """
|
||||
pass
|
||||
|
@ -7,33 +7,6 @@ import requests
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_device_no_blank_note():
|
||||
""" The field is set to blank=true, ensure that a blank note cant be saved
|
||||
|
||||
field had to be set blank=true so that other forms on same page could be saved.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_operating_system_no_blank_note():
|
||||
""" The field is set to blank=true, ensure that a blank note cant be saved
|
||||
|
||||
field had to be set blank=true so that other forms on same page could be saved.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_software_no_blank_note():
|
||||
""" The field is set to blank=true, ensure that a blank note cant be saved
|
||||
|
||||
field had to be set blank=true so that other forms on same page could be saved.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_new_correct_usercreated():
|
||||
""" The user who added the note must be added to the note """
|
||||
@ -46,130 +19,3 @@ def test_note_new_correct_usermodified():
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_new_correct_device():
|
||||
""" On creation of device note the device must be added """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_new_correct_operating_system():
|
||||
""" On creation of operating system note the operating system must be added """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_new_correct_software():
|
||||
""" On creation of software note the software must be added """
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_view_device():
|
||||
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_add_device():
|
||||
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_edit_device():
|
||||
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_delete_device():
|
||||
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_view_operating_system():
|
||||
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_add_operating_system():
|
||||
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_edit_operating_system():
|
||||
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_delete_operating_system():
|
||||
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_view_software():
|
||||
""" Ensure that if the user doesn't have view permissions for notes, they can't see any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_add_software():
|
||||
""" Ensure that if the user doesn't have add permissions for notes, they can't add any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_edit_software():
|
||||
""" Ensure that if the user doesn't have edit permissions for notes, they can't edit any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="to be written")
|
||||
def test_note_auth_delete_software():
|
||||
""" Ensure that if the user doesn't have delete permissions for notes, they can't delete any notes
|
||||
|
||||
user must also have view permissions for the opject the note is for
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -17,7 +17,7 @@ from itam.models.software import Software
|
||||
class View(OrganizationPermission, generic.View):
|
||||
|
||||
permission_required = [
|
||||
'itam.view_softwareversion'
|
||||
'itam.view_history'
|
||||
]
|
||||
|
||||
template_name = 'history.html.j2'
|
||||
|
Reference in New Issue
Block a user