| Number
|
Name
|
Description
|
Check result
|
| 1
|
Load nodemap.ko
|
Simple test to ensure that the module loads correctly and creates a default nodemap.
|
nodemap.ko load is tested by lsmod, check for expectedproc entries.
|
| 2
|
Create nodemaps
|
Create 20 distinctly named nodemaps and test that the required procentries exist.
|
nodemaps are created, check for expected proc entries
|
| 3
|
Reject duplicate nodemaps
|
Attempt to recreate the nodemaps from test 2, and fail so that there are no duplicate nodemaps
|
nodemap creations should fail, check return value from lctl, check for expected proc entries
|
| 4
|
Create non-overlapping ranges in all non-default nodemaps
|
Create 20 partitioned ranges in each nodemap from test 2
|
Check for expected entries in the nodemap ranges procfile
|
| 5
|
Reject overlapping ranges in all non-default nodemaps
|
Attempt to create ranges in all nodemaps that conflict withpre-existing ranges
|
check return value from lctl, check nodemap ranges file for duplicates
|
| 6
|
Reject adding ranges to the default nodemap
|
Attempt to create ranges in the default nodemap.
|
check return value of lctl
|
| 7-10
|
Change allowed values in the default nodemap
|
Change the allowed settings for the default cluster (admin_cluster,trusted_cluster, squash_uid and squash_gid).
|
check proc files for expected values
|
| 11
|
Add uid/gid maps to non-default nodemap
|
Create 200 uidmaps and 200 gidmaps
|
check proc uidmap and gidmap files for expected values
|
| 12
|
Add uid/gid maps to default nodemap
|
Check that lctl rejects setting uid and gid maps for the default nodemap
|
check lctl return value
|
| *
|
|
For each nodemap, run the following tests with each nodmap in this configuration:
[active = {0,1} X admin_cluster = {0,1} X trusted_cluster = {0,1} Xsquash_uid = {99, 50} X squash_gid = {99, 50}]
|
| *
|
|
Check existing uid and gid mappings for non-default nodemaps
|
check for proper mapping value
|
| *
|
|
Check non-existing uid and gid mappings for non-defualt nodemaps
|
check for squashed values
|
| *
|
|
Check uid and gid mapping for default nodemap
|
check for default squashed values
|
| 14
|
Remove some uid/gid maps from each non-default nodemap
|
|
test values for proper mapping
|
| 15
|
Remove some ranges from each non-default nodemap
|
|
test values for proper mapping
|
| 16
|
Remove a nodemap
|
|
test values for proper mapping
|
| 17
|
Remove nodemap.ko
|
|
Check that nodemap.ko unloads
|