Skip to content

Conversation

@tadeas-hejnic
Copy link
Collaborator

Changelog Description

New tests of crucial and testable methods of ServerAPI.

Includes:

  • get_events with all possible filter combinations or invalid filter data - (If timeout ServerError occurs and the `has_children filter is set to False the test is skipped - some server issue),
  • update_event with all possible arguments including the invalid ones,
  • enroll_event_job in multiple scenarios with different expected behavior,
  • create_thumbnail, get_folder_thumbnail,
  • upload_addon_zip, download_addon_private_file, using the test addon - /resources/addon,
  • trigger_server_restart as admin or as a artist user without permission.

Additional review information

Not sure if time.sleep() in test_addon_methods is the best way to wait for the server restart.

It will be better to delete the events after the test, but at this time it is not possible.

@iLLiCiTiT iLLiCiTiT merged commit 99c45bb into develop Nov 15, 2024
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the test_server_api branch November 15, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants