Skip to content

Conversation

@dkushche
Copy link
Collaborator

@dkushche dkushche commented Jan 18, 2026

Suggested Testing Workflow

make test_suite

make run_stage

>>> Separate terminal
./cli servers list
./cli servers create test 10.22.32.3 offline
./cli servers get 1
./cli servers update 1 test 10.22.33.3 active
./cli servers list
./cli servers delete 1
./cli servers get 1

After executing the commands, verify the API via Swagger at:
http://localhost:8000/docs

You can then proceed with further testing or exploration as needed.

- implement async servers CRUD API
- add postgres migrations and migrator
- add docker and compose infrastructure
- verify smoke test passes
…d run smoke tests

- Implemented CLI utility for Inventory API with full CRUD commands.
- Prepared Dockerfiles for dev and stage usage.
- Integrated environment handling (API_URL) and argument validation.
- Verified basic smoke tests to ensure API and CLI are operational.
- Added repository tests for PostgresServersRepository (create, get, list, update, delete)
- Added service tests with mocks for ServersService
- Added FastAPI route/controller tests with TestClient and dependency overrides
- Added session-scoped DB fixture in conftest.py to initialize DB once
- Added function-scoped cleanup fixture to reset DB between tests
- Ensures async tests run correctly with pytest-asyncio
@dkushche dkushche requested a review from 13pleblord January 18, 2026 18:19
@dkushche dkushche force-pushed the dkushche/inventory-management branch from 8f35979 to 0f773f1 Compare January 18, 2026 18:22
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