-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import subprocess | ||
from middlewared.test.integration.utils import ssh | ||
|
||
|
||
def test_truenas_verify(): | ||
completed = subprocess.run('truenas_verify', timeout=30) | ||
response = ssh('truenas_verify', check=False, complete_response=True) | ||
|
||
# Jenkins vms alter the system files for setup, so truenas_verify should generate errors. | ||
assert completed.returncode != 0 | ||
with open('/var/log/truenas_verify.log') as f: | ||
assert f.readline(), 'Test environment should log file verification errors.' | ||
assert not response['result'] | ||
assert ssh('head /var/log/truenas_verify.log'), 'Test environment should log file verification errors.' |