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 exports restored as read-only #2912 #2922

Conversation

phillxnet
Copy link
Member

@phillxnet phillxnet commented Nov 6, 2024

Work in progress / save point re #2912 .

Includes

  • Instructions on fixture creation.
  • Instructions on running nfs export tests.
  • Modernise test_nfs_export.py by re-instating test_nfs.json fixture and removing prior hard-coded object mock stand-ins for DB models during these test runs.
  • Add default ordering to NFSExportGroup models.
    Addresses re-enabled test provoked warnings re:
    "UnorderedObjectListWarning: Pagination may yield inconsistent
    results with an unordered object_list"
  • Removing redundant tests.
  • Modifying previously remarked out sanity check tests to instead cover our
    umbrella low-level exception. Once more specific sanity checks are in place,
    we can add tests to prove their function.
  • Black reformatting test_nfs_export.py.

# Includes
- Instructions on fixture creation.
- Instructions on running nfs export tests.
- Modernise test_nfs_export.py by re-instating test_nfs.json fixture
and removing prior hard-coded object mock stand-ins for DB models
during these test runs.
- Add default ordering to NFSExportGroup models.
Addresses re-enabled test provoked warnings re:
"UnorderedObjectListWarning: Pagination may yield inconsistent
results with an unordered object_list"
Resolve remaining TODOs in test_nfs_export.py.
Includes:
- Removing redundant tests.
- Modifying previously remarked out sanity check tests
to instead cover our umbrella low-level exception. Once
more specific sanity checks are in place, we can add
tests to prove their function.
- Black reformatting test_nfs_export.py.
- Enable previously dormant field validation via addition of:
NFSExportGroup.clean_fields() prior to model.save(). Affects:
host_str, modify_str, & sync_choice during post & put.
- Additional tests to prove field validation function within
current validation capability (need refinement).
- Additional test_post() with API / DB / Web-UI mapping info.
- nfs_export_group.py comment correction & black formatting.
- Additional NFS debug logging & comments: config_backup.py.
- Some string.format to fstring updates.
@phillxnet
Copy link
Member Author

Closing as, thus far, this work (bar some trivial dev logging & comment) has now been spun-out and merged into the following:

Putting the code base into a better state re NFS export to now approach the originally intended issue of:

where the cause for this failure is now understood and detailed within the issue referenced.

A new PR will be presented, now we have the two spin-off issue/pr sets merged.

@phillxnet phillxnet closed this Nov 13, 2024
@phillxnet phillxnet deleted the 2912-NFS-exports-restored-as-read-only branch November 14, 2024 18:47
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.

1 participant