Release v122 with Tachyon integration and resilient Xray downloads
OpenWrt IPK and APK / Validate source and resolve stable SDKs (push) Waiting to run
OpenWrt IPK and APK / Validate source and resolve stable SDKs (push) Waiting to run
This commit is contained in:
1 parent
f4ccbf82f3
commit
70a4705e67
50 files changed
+3173
-181
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"""Local download-fix payload installation and rollback, no SSH required."""
|
||||
import unittest
|
||||
from test_xray_apk_deploy import XrayApkDeploymentTests
|
||||
|
||||
|
||||
class XrayDownloadDeploymentTests(XrayApkDeploymentTests):
|
||||
deploy_name = 'deploy-xray-download-fix.ps1'
|
||||
backup_name = 'owrt-remote-backup-before-xray-download-v121'
|
||||
success_marker = 'XRAY_DOWNLOAD_ROUTER_Install_OK'
|
||||
|
||||
def test_failed_xray_preparation_restores_agent_and_retains_backup(self):
|
||||
self.env['PREPARE_RC'] = '13'
|
||||
result = self.deploy('Install')
|
||||
self.assertEqual(result.returncode, 13, result.stderr)
|
||||
self.assertIn('prepare-xray-download', result.stderr)
|
||||
self.assertEqual(self.targets['agent'].read_bytes(), self.original['agent'])
|
||||
self.assertEqual(self.backup.joinpath('agent').read_bytes(), self.original['agent'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user