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

temporarily remark out all currently failing unit tests #2137

Closed
phillxnet opened this issue Feb 21, 2020 · 3 comments · Fixed by #2153
Closed

temporarily remark out all currently failing unit tests #2137

phillxnet opened this issue Feb 21, 2020 · 3 comments · Fixed by #2153

Comments

@phillxnet
Copy link
Member

For some time we have had a number of failing unit tests, almost exclusively due to them becoming outdated with regard to the code they test; that now makes a comparison across our distro bases less convenient.

It is proposed that we remark out all currently failing unit tests as per our to-be-legacy but still reference CentOS source build. This should help in more easily seeing any new failures as we finalise our openSUSE variants with a view to achieving feature parity, or near enough.

A summary of current results are as follows:

Ran 189 tests in 12.045s

FAILED (failures=22, errors=6)

Details of these failures / errors are as follows:

...
ERROR
...
test_post_requests_2 (storageadmin.tests.test_sftp.SFTPTests) ... FAIL
test_post_requests (storageadmin.tests.test_share_acl.ShareAclTests) ... ERROR
...
test_delete_share_with_snapshot (storageadmin.tests.test_shares.ShareTests) ... FAIL
...
test_delete_requests (storageadmin.tests.test_snapshot.SnapshotTests) ... FAIL
...
test_delete_requests (storageadmin.tests.test_user.UserTests) ... FAIL
test_duplicate_name1 (storageadmin.tests.test_user.UserTests) ... FAIL
...
test_post_requests (storageadmin.tests.test_user.UserTests) ... FAIL
...
test_put_requests (storageadmin.tests.test_user.UserTests) ... FAIL
...
test_post_requests_2 (storageadmin.tests.test_afp.AFPTests) ... FAIL
...
ERROR
...
test_delete_requests (storageadmin.tests.test_group.GroupTests) ... FAIL
...
test_post_requests (storageadmin.tests.test_login.LoginTests) ... FAIL
ERROR
...
test_delete_requests (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_get (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_invalid_admin_host1 (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_invalid_admin_host2 (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
...
test_invalid_nfs_client2 (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_invalid_nfs_client3 (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_no_nfs_client (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_post_requests (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_put_requests (storageadmin.tests.test_nfs_export.NFSExportTests) ... FAIL
test_delete_requests (storageadmin.tests.test_oauth_app.OauthAppTests) ... ERROR
...
test_post_requests (storageadmin.tests.test_oauth_app.OauthAppTests) ... FAIL
...
test_btrfs_disk_import (storageadmin.tests.test_disks.DiskTests) ... FAIL
...
test_get (storageadmin.tests.test_samba.SambaTests) ... ERROR
...
test_put_requests_2 (storageadmin.tests.test_samba.SambaTests) ... FAIL
...

In time we can re-address / re-do the failing tests if deemed necessary, i.e. we plan to remove AFP for example so the associated test will obviously be removed, not revised.

@phillxnet
Copy link
Member Author

I am currently working on this issue.

@phillxnet
Copy link
Member Author

Ran 206 tests in 32.436s

FAILED (failures=10, errors=1)

@phillxnet
Copy link
Member Author

Ran 203 tests in 32.160s

OK

phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Apr 19, 2020
All currently failing unit tests on our to-be-legacy but still reference
CentOS source build are remarked out in order that we can more readily
use the existing tests as indicators of disparity between our ditro
bases. In almost all cases the fail/error message of the test is noted
in TODO's. The vast majority failures are suspected as being caused by
a lack of maintenance within the tests and several major changes such as
disk/share/pool/network API changes

Includes:
- Remark out 2 sftp sub tests, broken/out of sync with core code.
- Remark out test_btrfs_disk_import: 500 not 200.
- Fix broken test_commands.py CommandTests - core refactor bit rot. see:
"[openSUSE] use zypper for package installs. Fixes rockstor#2071" (pr rockstor#2081)
in 3.9.2-51. The unrelated get_pool_info() breakage was not tracked
down.
- Update patch targets due to core refactoring. In pr: "Add unit testing
for core network functions" rockstor#2045 at least a couple of functions were
renamed. Updated these in our network API test setup.
- Remark out all network API tests as this API changed long ago.
- Remark out many whole and sub-parts of the nfs tests. Many of the
failures here are likely down to disk / share API changes after these
tests were written. Specifically Shares API in this case as there are
many (noted in TODO: comments): "share instance ... does not exist."
which suggests a failure of the mocking arrangement.
- Remark out test_share_acl as currently non working and need work.
- An attempt was made to fix the mocking required to have this test work
but it was not a success. Minor minification were left in place
never-the-less.
- Remark out test within test_oauth_apply - Needs updating.
- Update to account for refactoring in tested & add new needed mocks.
- Since this test was update there have been a few pool model changes.
The added mocks mostly move this test back to where it was prior to the
pool management code changes.
- Remove overly ambitious/broad test_raid_migration - failing.
- Fix missing space in expected error message test_raid6_crud.
- Remark out currently unworkable sub tests within test_raid6_crud.
- Our pool / disk member mocking is currently insufficient and so a
range of tests now fail. Remove for to use what we can.
- Remark out currently unworkable sub tests within test_raid1_crud.
- Our pool / disk member mocking is currently insufficient and so a
range of tests now fail. Remove for to use what we can.
- Remark out several sub tests within test_samba.py as need fixing.
- Remark out a sub test within test_group as need fixing or OOD.
- Remark out a sub test within test_login as non representative.
- Remark out a sub test within test_shares as incorrectly triggered.
- Remark out all but on test in test_oauth as test seem broken.
- Remark out one more test in test_snapshots as known to be duff.
- Remark out several more test in test_user as known to be duff.
phillxnet added a commit that referenced this issue Apr 19, 2020
…ll_currently_failing_unit_tests

remark out all currently failing unit tests. Fixes #2137
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 a pull request may close this issue.

1 participant