Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS tests in need of maintenance #2923 #2925

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NFS tests in need of maintenance #2923
NFS test coverage/quality improvements.
## Includes
- Fixture details & creation instructions via code comments.
- Addition of test_nfs.json fixture from above instructions.
- Code comment docs on how to invoke this test set.
- Completes previous partial re-enablement of fixtures.
- Addresses all outstanding TODOs.
- Improves input validation coverage for both POST & PUT.
  • Loading branch information
phillxnet committed Nov 11, 2024
commit 3c55e760c67aa34df4169a771830e98b9626b114
112 changes: 112 additions & 0 deletions src/rockstor/storageadmin/fixtures/test_nfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
[
{
"model": "storageadmin.pool",
"pk": 11,
"fields": {
"name": "rock-pool",
"uuid": "26e1fb5e-65fc-43e1-8054-60ccec189243",
"size": 10485760,
"raid": "single-dup",
"toc": "2024-11-06T16:05:29.817Z",
"compression": "no",
"mnt_options": null,
"role": null
}
},
{
"model": "storageadmin.share",
"pk": 21,
"fields": {
"pool": 11,
"qgroup": "0/463",
"pqgroup": "2015/3",
"name": "share-nfs",
"uuid": null,
"size": 1048576,
"owner": "root",
"group": "root",
"perms": "755",
"toc": "2024-11-06T16:05:29.894Z",
"subvol_name": "share-nfs",
"replica": false,
"compression_algo": "no",
"rusage": 16,
"eusage": 16,
"pqgroup_rusage": 16,
"pqgroup_eusage": 16
}
},
{
"model": "storageadmin.share",
"pk": 22,
"fields": {
"pool": 11,
"qgroup": "0/464",
"pqgroup": "2015/4",
"name": "share2",
"uuid": null,
"size": 1048576,
"owner": "root",
"group": "root",
"perms": "755",
"toc": "2024-11-06T16:05:29.918Z",
"subvol_name": "share2",
"replica": false,
"compression_algo": "no",
"rusage": 16,
"eusage": 16,
"pqgroup_rusage": 16,
"pqgroup_eusage": 16
}
},
{
"model": "storageadmin.nfsexport",
"pk": 3,
"fields": {
"export_group": 3,
"share": 21,
"mount": "/export/share-nfs"
}
},
{
"model": "storageadmin.nfsexportgroup",
"pk": 3,
"fields": {
"host_str": "*",
"editable": "rw",
"syncable": "async",
"mount_security": "insecure",
"nohide": false,
"enabled": true,
"admin_host": null
}
},
{
"model": "storageadmin.user",
"pk": 1,
"fields": {
"user": [
"admin"
],
"username": "admin",
"uid": 1000,
"gid": 100,
"public_key": null,
"shell": "/bin/bash",
"homedir": "/home/admin",
"email": null,
"admin": true,
"group": 1,
"smb_shares": []
}
},
{
"model": "storageadmin.group",
"pk": 1,
"fields": {
"gid": 100,
"groupname": "users",
"admin": true
}
}
]
Loading