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

Supplementary tests #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

spuiuk
Copy link
Collaborator

@spuiuk spuiuk commented May 1, 2024

Add a supplementary group test.

This test is to check writes to a folder owned by a supplementary group.

Requirements:

  1. username in share["user"] exists
  2. username is part of supplementary group provided in
    user["extra"]["supplementary_group"]
  3. share["backend"]["path"] should be set

Steps:

  1. Create folder test_subdir/ on direct path with
    group set to sgroup and mode 0770
  2. Upload file to test_subdir/test-cp

To allow us to run this test, we need to
a) Allow direct access to the underlying filesystem - Through the share->backend->path conf config option.
b) Allow us to pass an extra configuration option through the extra->supplementary_group conf option.

Allow users to provide a direct access to the shar under
share["backend"]["path"]

This can be used to set up a test by performing operations directly on
the underlying filesystem before the test is run over SMB.

Signed-off-by: Sachin Prabhu <[email protected]>
Some tests may require additional information to run their tests, we can
provide this information in the extra section.

Signed-off-by: Sachin Prabhu <[email protected]>
@anoopcs9
Copy link
Collaborator

anoopcs9 commented May 2, 2024

Isn't #63 also related?

@spuiuk
Copy link
Collaborator Author

spuiuk commented May 2, 2024

Isn't #63 also related?

yes, This PR replaces #63. I was waiting for the tests to complete before updating that PR. I will be closing PR #63 in favour of this one.

There has been several changes in the rest of the code which means a big rewrite for supplementary tests were needed. This PR is a result of these changes.

@spuiuk
Copy link
Collaborator Author

spuiuk commented May 2, 2024

Note that the new tests are not run yet in the CI system as we need the sit-environment to set it up for us. So not putting it up for review yet and will work on enabling the tests for sit-environment.

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.

2 participants