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 integration tests for avatars #24578

Merged
merged 5 commits into from
Dec 7, 2020
Merged

Commits on Dec 7, 2020

  1. Make possible to send requests as anonymous users in integration tests

    Until now requests always had "auth" headers either for an admin or a
    regular user, depending on the value of "currentUser". Now, if
    "currentUser" starts by "anonymous" no "auth" header is sent, which
    makes possible to also test requests with users not logged in.
    
    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    b553b43 View commit details
    Browse the repository at this point in the history
  2. Make possible to set body in requesttoken requests in integration tests

    "sendingAToWithRequesttoken" needs to be used to test some non OCS
    endpoints which require the request token to be sent in the request. Now
    it is possible to specify the body (or, rather, additional contents
    beside the cookies and the request token) for those requests, as it will
    be needed for example to upload an avatar.
    
    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    184742e View commit details
    Browse the repository at this point in the history
  3. Add integration tests for user avatars

    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    2cc22a0 View commit details
    Browse the repository at this point in the history
  4. Add integration tests for resized user avatars

    Even on solid color images the resizing can cause some small artifacts
    that slightly modify the color of certain pixels. Due to this now the
    color comparison is no longer strict but fuzzy.
    
    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    1552add View commit details
    Browse the repository at this point in the history
  5. Add integration tests for getting guest avatars

    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    b4b3276 View commit details
    Browse the repository at this point in the history