ceph / ceph/ceph-nvmeof

Unit tests: state tracking

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
132
Forks
69
Avg merge
1d 7h
Merged PRs (30d)
47

Description

This issue is to keep track of unit tests related to state tracking (read/write to local and omap states).
- [ ] Test if local state dict is as expected after adding bdev
- [ ] Test if local state dict is as expected after removing bdev
- [ ] Test if local state dict is as expected after adding subsystem
- [ ] Test if local state dict is empty after adding all subsystem-related components (subsystem, namespace, host, & listener) and then removing the subsystem
- [ ] Test if delete_state resets contents of local state dict
- [ ] Test if local state dict is as expected after adding listener
- [ ] Test if local state dict is as expected after removing listener
- [ ] Test if local state dict is as expected after adding host
- [ ] Test if local state dict is as expected after removing host
- [ ] Test if local state dict is as expected after adding namespace
- [ ] Test if local state dict is as expected after removing namespace
- [ ] Test if omap is as expected after add_bdev (version number and omap contents)
- [ ] Test if omap is as expected after remove_bdev (version number and omap contents)
- [ ] Test if omap is as expected after add_subsystem (version number and omap contents)
- [ ] Test if omap is as expected after after adding all subsystem-related components (subsystem, namespace, host, & listener) and then remove_subsystem
- [ ] Test if omap is as expected after add_namespace (version number and omap contents)
- [ ] Test if omap is as expected after remove_namespace (version number and omap contents)
- [ ] Test if omap is as expected after add_host (version number and omap contents)
- [ ] Test if omap is as expected after remove_host (version number and omap contents)
- [ ] Test if omap is as expected after add_listener (version number and omap contents)
- [ ] Test if omap is as expected after remove_listener (version number and omap contents)
- [ ] Test if omap is empty after deleting contents

Contributor guide

Open the contributing guide

Research direction

Start by locating the local state dictionary, omap handling, and the add/remove entry points named in the checklist: bdev, subsystem, namespace, host, listener, and delete_state. Add unit tests covering each listed operation, including version numbers and cleanup; done means every checklist item passes and both state stores are empty when expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.