Skip to content

Add comprehensive Postman test collection for USE Web API#3

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/add-postman-tests-for-use-api
Closed

Add comprehensive Postman test collection for USE Web API#3
Copilot wants to merge 2 commits intomainfrom
copilot/add-postman-tests-for-use-api

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

Adds a new comprehensive Postman test collection to thoroughly test the USE Web API endpoints with correct HTTP status code expectations.

Changes

  • New test collection: use-webapi-comprehensive.postman_collection.json with 40+ test cases covering:
    • Model CRUD (create, get by name, get all, duplicate handling)
    • Class operations (create, get, validation errors)
    • Attribute operations (add, get by name, invalid type handling)
    • Operation/method management
    • Association creation and retrieval
    • Invariant and pre/post condition operations
    • Error handling (malformed JSON, empty bodies, missing headers)
    • Performance benchmarks

Expected Status Codes

Scenario Status Code
Successful POST 201 Created
Successful GET 200 OK
Duplicate key 409 Conflict
Not found / validation error 400 Bad Request

HATEOAS validation intentionally omitted per requirements (still WIP).

Original prompt

in the use_api package create more postman test like in the json here use-api/src/it/java/org.tzi.use/postman_collection for the api and test different cases, add them into an extra json file next to it.
Reuse the already given tests and improve upon them.
Test it thoroughly, I might have used the wrong HTTP response code, when testing expect the correct one in that context and I will see my mistakes better.

Dont do any hateoas validation for now that part is still a work in progress so alot is going to change.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: husakki <81704101+husakki@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Postman tests for use_api package Add comprehensive Postman test collection for USE Web API Dec 3, 2025
Copilot AI requested a review from husakki December 3, 2025 01:17
@husakki husakki marked this pull request as ready for review December 18, 2025 01:20
@husakki
Copy link
Owner

husakki commented Dec 18, 2025

Was done manually here 0baa88b

@husakki husakki closed this Dec 18, 2025
@husakki husakki deleted the copilot/add-postman-tests-for-use-api branch December 18, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants