Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests #9

Open
omar-sobhy opened this issue Jul 13, 2023 · 0 comments
Open

Add tests #9

omar-sobhy opened this issue Jul 13, 2023 · 0 comments

Comments

@omar-sobhy
Copy link
Owner

omar-sobhy commented Jul 13, 2023

Signup

  • Valid username/password
  • Short username
  • Short password
  • Long username
  • Long password
  • Long email
  • Invalid email
  • Missing username
  • Missing password
  • Missing email
  • In-use username (don't forget case sensitivity check)

Login

  • Non-existent username
  • Invalid password for correct username
  • Missing username
  • Missing password

Get projects

  • Missing auth
  • No projects
  • One project

Get project by ID

  • Missing auth
  • Missing permission to see project
  • Invalid project ID
  • Valid project ID

Get user data by IDs

  • Missing auth
  • Invalid user ID
  • One user ID
  • Multiple user IDs
  • Missing permissions to see users

Get project sections by project ID

  • Missing auth
  • Invalid project ID
  • Valid project ID (one section, multiple sections, no sections)

Get section

  • Missing auth
  • Invalid section ID
  • Valid section ID (no tasks, one task, multiple tasks)
  • Missing permission to see section

Create sections

  • Missing auth
  • Missing permission to create section
  • No section name
  • Long section name
  • Valid section name
  • Invalid RGB string for colour
  • Invalid icon ID

Update section

  • Missing auth
  • Missing permission to update section
  • No section name
  • Long section name
  • Valid section name
  • Invalid RGB string for colour
  • Invalid icon ID

Create project

  • Missing auth
  • Missing project name
  • Short project name
  • Long project name
  • Project background tests? The attribute isn't even used anywhere

Create task

  • Missing auth
  • Missing permission to create task in section/project
  • Invalid section ID
  • Valid section ID
  • Missing name
  • Short name
  • Long name
  • Missing dueDate (should pass, since it is optional)
  • Invalid dueDate (not the specified format)
  • Valid dueDate
  • Valid assignee
  • Missing assignee (should pass, since it is optional)
  • Valid assignee
  • Assignee not in project

Get tasks by section ID

  • Missing auth
  • Missing permission to see section in project
  • Missing section ID
  • Invalid section ID
  • Valid section ID
  • No tasks in section
  • One task in section
  • Multiple tasks in section

Get task data by task ID

  • Missing auth
  • Missing permission to see tasks in section/project
  • Missing task ID
  • Invalid task ID
  • Valid task ID

Update task

  • Missing auth
  • Missing permission to update task in section/project
  • Missing taskId
  • Invalid taskId
  • Valid taskId
  • Missing name
  • Short name
  • Long name
  • Missing dueDate (should pass, since it is optional)
  • Invalid dueDate (not the specified format)
  • Valid dueDate
  • Valid assignee
  • Missing assignee (should pass, since it is optional)
  • Valid assignee
  • Assignee not in project
  • Missing description (should pass, since it is optional)
  • Short description
  • Long description
  • Valid description
  • Missing tagIds (should pass, since it is optional)
  • Invalid tagId passed
  • Missing permission to see tagId (because it isn't in the same project as the task)
  • Many valid tagIds passed
  • One valid tagId passed

Add comment

  • Missing auth
  • Missing permission to add comment to task in section/project
  • Missing taskId
  • Invalid taskId
  • Valid taskId
  • Missing comment body
  • Valid comment body
  • Long comment body

Get comments by commentIds

  • Missing auth
  • Missing permission to see comments of task in section/project
  • Missing commentIds
  • Invalid commentId passed
  • All valid commentIds passed
  • One valid commentId passed

Get tags data

  • Missing auth
  • Missing permission to data of tags in project
  • Missing tagIds
  • Invalid tagId passed
  • All valid tagIds passed
  • One valid tagId passed

Create tag to project by project ID

  • Missing auth
  • Missing permission to see project
  • Missing permission to create tags in project
  • Missing projectId
  • Invalid projectId
  • Valid projectId
  • Missing name
  • Valid name
  • Long name
  • Missing tag colour (?? currently will pass because it isn't required, maybe it should be a required param)
  • Valid RGB string tag colour

Update tag

  • Missing auth
  • Missing permission to see project
  • Missing permission to update tags in project
  • Missing tagId
  • Invalid tagId
  • Missing name (should pass, since it is optional)
  • Long name
  • Missing colour (should pass, since it is optional)
  • Valid request

Delete tag(tags? current API doesn't allow to mass delete tags)

  • Missing auth
  • Missing permission to see project
  • Missing permission to delete tags in project
  • Missing tagId
  • Invalid tagId
  • Valid tagId

Delete section

  • Missing auth
  • Missing permission to see project
  • Missing permission to delete sections in project
  • Missing sectionId
  • Invalid sectionId
  • Valid sectionId
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

No branches or pull requests

1 participant