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

Test "logout" mutation #25

Closed
Sddilora opened this issue Apr 1, 2024 · 1 comment
Closed

Test "logout" mutation #25

Sddilora opened this issue Apr 1, 2024 · 1 comment
Assignees
Labels
Be sub-issue Sub-task within a larger task testing Tasks or issues for testing system functionality and reporting any identified issues

Comments

@Sddilora
Copy link
Member

Sddilora commented Apr 1, 2024

Test the "logout" mutation with all possible cases and create an issue if any bugs are found. If you encounter unexpected behavior or are unsure if it is intended, please create an issue for that as well.

You can find an example issue and bug report (or a question if this is a bug) in this link.

"Test GraphQL Query and Mutation" guide is available for further assistance.

@Sddilora Sddilora added the testing Tasks or issues for testing system functionality and reporting any identified issues label Apr 1, 2024
@Feyzanrs Feyzanrs added the sub-issue Sub-task within a larger task label Apr 1, 2024
@ebrarkesici ebrarkesici self-assigned this May 7, 2024
@ebrarkesici
Copy link
Member

ebrarkesici commented May 8, 2024

I wrote logout code and query user code in graphql.

mutation LogoutUser {
  logout(token: {
    AuthenticationToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOWNlZTY2YTYtODc4OC00N2JhLWI1M2UtYzBmYjNhYjI5NzIyIiwiZGF0YSI6eyJpZCI6IjljZWU2NmE2LTg3ODgtNDdiYS1iNTNlLWMwZmIzYWIyOTcyMiIsInVzZXJfbmFtZSI6Im9wX2FkbWluIiwiZW1haWwiOiJvcF9hZG1pbkBvcC5jb20iLCJyb2xlIjoiQURNSU4iLCJ1c2VyX3R5cGUiOjEsInVzZXJfc3RhdHVzIjoxLCJ0YWdzIjpudWxsLCJmaXJzdF9uYW1lIjoiIiwibGFzdF9uYW1lIjoiIiwiY3JlYXRlZF9hdCI6IjAwMDEtMDEtMDFUMDA6MDA6MDBaIiwidXBkYXRlZF9hdCI6IjIwMjQtMDQtMDZUMDA6NTE6NTUuMzc1MDIxKzAzOjAwIn0sImV4cCI6MTcxNTI3NDY2Nn0.ZVpkJhT_BIFu7C92sRwmaxLgQLnZOCVg5niWUTSTOts",
    RefreshToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOWNlZTY2YTYtODc4OC00N2JhLWI1M2UtYzBmYjNhYjI5NzIyIiwiZXhwIjoxNzE3MjYxODY2fQ.iHo4rPftHTG7J0Ob4xlLCGGSgDRJ8z_d1e1gR7xCX_Y"
  })
}
query users{
  users(filter:{
    Id:"9cee66a6-8788-47ba-b53e-c0fb3ab29722"
  }){
    Total
    Users{
      Id
      UserName
      Role
      Email
      UserType
      UserStatus
    }
  }
}
{
  "data": {
    "logout": true
  }
}

I get results like this.
Screenshot 2024-05-08 204642
I also get a "logout succeeded" message in pgadmin.

@Sddilora Sddilora closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Be sub-issue Sub-task within a larger task testing Tasks or issues for testing system functionality and reporting any identified issues
Projects
None yet
Development

No branches or pull requests

5 participants