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

[API][Admin][News] Verify that the news cannot be updated if the mandatory field 'imageId' is empty using UPDATE method #1948

Open
Skyfall711 opened this issue Jan 5, 2025 · 0 comments

Comments

@Skyfall711
Copy link

Priority: High

Preconditions

  1. Postman is opened
  2. User is authorized
  3. The UPDATE method is chosen
  4. All required data has been added to the body:
    {
    "title": "string",
    "text": "string",
    "imageId": 0,
    "url": "string",
    "creationDate": "2025-01-05T10:54:23.865Z",
    "id": 0
    }

Steps to reproduce

  1. Input a valid endpoint https://backend.historycode.online/api/News/Update
  2. Leave the field 'imageId' empty
  3. Click the 'Send' button

Expected result
The news isn't updated- status code '400 Bad Request '
Error messages in response body appears:
"The ImageId is required."

User story: #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Test Cases
Development

No branches or pull requests

1 participant