node-disk-manager
node-disk-manager copied to clipboard
[integration-test] : add integration tests for path filter
Node-Disk-Manager uses a ConfigMap to store the configuration and initializes based on this config. Path-filter is one such filter-configuration that is used by NDM to check whether a particular disk present on the host needs to be processed by NDM or not.
eg: if excludePath: "/dev/sda,/dev/sdb" is specified in the ConfigMap, NDM will not process nor create BlockDevices for sda and sdb.
Integration tests need to be written to make sure that corresponding changes in configmap are taken by NDM daemon.
Steps:
- Create and attach a disk
- Check for the blockdevice created
- Add the path of disk in exclude filter
- Restart NDM pod
- Check whether the blockdevice is inactive.
I would like to work on this issue.
@Nivedita-coder I has assigned the issue.