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

Getting HTTP 2xx status code #484

Open
AndrChristina opened this issue Aug 10, 2022 · 0 comments
Open

Getting HTTP 2xx status code #484

AndrChristina opened this issue Aug 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AndrChristina
Copy link

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

Description
The user as a member of cooperation A (e.g. Затишок) can see and modify data that relates to cooperation B (e.g. Крила ночііі).

Preconditions
Choose the user as a member of cooperation A (e.g. Затишок).

Steps to reproduce

  1. Go to Postman.
  2. Paste some URL that related to cooperation B (e.g. (https://home-project-academy.herokuapp.com/api/0/cooperations/1/houses), (https://home-project-academy.herokuapp.com/api/0/cooperations/1/houses).
  3. Choose the method (e.g. GET, POST).
  4. Insert to the Authorization proper Bearer Token.
  5. If it's GET method go to the next step, if it's a POST method write json to the Body:
{
  "quantity_flat": 90,
  "house_area": 450,
  "adjoining_area": 300,
  "address": {
    "region": "Dnipropetrovsk region",
    "city": "Dnipro",
    "district": "Zavodskoy",
    "street": "Kirova",
    "house_block": "7/B",
    "house_number": "10",
    "zip_code": "52988"
  }
}
  1. Click on the button Send.

Actual result
Getting HTTP 2xx status code.
Screenshot_53.png
Screenshot_54.png

Expected result
Should be 403 Forbidden error (You do not have permission to perform this action.)

User story and test case links
"Task #477"

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

@vladyslavyarets vladyslavyarets added the bug Something isn't working label Aug 10, 2022
@artmarchenko artmarchenko self-assigned this Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants