Giter Club home page Giter Club logo

trello_quora's People

Contributors

krishnapotla avatar vioravis avatar gauricc avatar

Watchers

James Cloos avatar  avatar

trello_quora's Issues

Questions deleted by non-creator or admin

The following condition is not working:

Only the question owner or admin can delete the question. Therefore, if the user who is not the owner of the question or the role of the user is ‘nonadmin’ and tries to delete the question, throw 'AuthorizationFailedException' with the message code-'ATHR-003' and message -'Only the question owner or admin can delete the question'.

Test cases failing in AdminController and AnswerController

Two test cases are failing

[ERROR] Failures:
[ERROR] AdminControllerTest.deleteNonExistingUser:47 Status expected:<404> but was:<403>
[ERROR] QuestionControllerTest.editQuestionWithoutOwnership:87 JSON path "code" expected: but was:
[INFO]
[ERROR] Tests run: 19, Failures: 2, Errors: 0, Skipped: 0
[INFO]

Test cases failing in admin, answer and question controllers

[ERROR] Failures:
[ERROR] AdminControllerTest.deleteNonExistingUser:47 Status expected:<404> but was:<403>
[ERROR] AnswerControllerTest.createAnswerForNonExistingQuestion:47 Status expected:<404> but was:<403>
[ERROR] AnswerControllerTest.editAnswerWithoutOwnership:80 JSON path "code" expected: but was:
[ERROR] AnswerControllerTest.getAllAnswersToNonExistingQuestion:135 Status expected:<404> but was:<403>
[ERROR] QuestionControllerTest.editQuestionWithoutOwnership:87 JSON path "code" expected: but was:
[INFO]
[ERROR] Tests run: 33, Failures: 5, Errors: 0, Skipped: 0
[INFO]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.