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

Test backing up permissions in a "SSH local" profile. #1340

Merged
merged 1 commit into from
Oct 22, 2022
Merged

Test backing up permissions in a "SSH local" profile. #1340

merged 1 commit into from
Oct 22, 2022

Conversation

buhtz
Copy link
Member

@buhtz buhtz commented Oct 22, 2022

Introducing class test_snapshots.py::TestSshPermissions testing snapshots.py::Snapshot.backupPermissions() in a "SSH local" environment.

The case was untested before. Especially it is needed to support the fix of #1247 (rsync incompatibility).

I slightly improved the method Snapshots.backupPermissions() because before it was silent and didn't care about if the used rsync call succeeded or not. No the return code of rsync is returned and can be used in a unittest.

The "helper" functions in test_snapshots.py are refactored and improved a bit. Now they are used by this new TestSshPermissions and the before introduced TestSshRemoveSnapshot tests.

Introducing class `test_snapshots.py::TestSshPermissions` testing
`snapshots.py::Snapshot.backupPermissions()` in a "SSH local"
environment.

The case was untested before. Especially it is needed to support the fix
of #1247 (rsync incompatibility).

I slightly improved the method `Snapshots.backupPermissions()` because
before it was silent and didn't care about if the used `rsync` call
succeeded or not. No the return code of `rsync` is returned and can be
used in a unittest.

The "helper" functions in `test_snapshots.py` are refactored and
improved a bit. Now they are used by this new `TestSshPermissions` and
the before introduced `TestSshRemoveSnapshot` tests.
@emtiu emtiu merged commit 61f0451 into bit-team:master Oct 22, 2022
@buhtz buhtz deleted the enh/TestSshPermissions branch November 2, 2022 13:16
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