ita-social-projects / Home

Home - is an all-in-one social service that will cover all aspects of your communication with your home and neighbors.
http://www.home-project-engineering.tech/api/0/apidocs/index.html
MIT License
26 stars 30 forks source link

[Bug report] The voting start date can't be current date #502

Open AndrChristina opened 2 years ago

AndrChristina commented 2 years ago

Environment: Windows 7, Google Chrome v.103.0.5060.134, Postman for Web v. 9.28.1-220808-1444. Reproducible: always.

Preconditions Postman is opened.

Steps to reproduce

  1. Insert to the Authorization proper Bearer Token.
  2. Choose POST method.
  3. Enter request URL https://home-project-academy.herokuapp.com/api/0/cooperations/1/polls
  4. Write json to the Body:
    {
    "header": "New door for house",
    "description": "Door",
    "creation_date": "2022-09-27T03:00:00Z",
    "completion_date": "2022-10-15T06:00:00Z",
    "houses": [
    {
      "id": 3503
    }
    ],
    "status": "draft",
    "type": "simple"
    }
  5. Click on the button Send

Actual result Getting 201 Created status code. Screenshot_92.png

Expected result Should be 400 Validation Exception error (The voting start date can't be current date).

User story and test case links "User story #HP-33 https://home-project-engineering.atlassian.net/browse/HP-33

Labels to be added "Bug", Priority ("pri: normal"), Severity ("severity: major"), Type ("Functional"), "API" (for back-end bugs).