<table><tr><td style="">chinmoyr updated this revision to Diff 24603.<br />chinmoyr retitled this revision from "Add unit test" to "Add unit tests for privilege excution in KIO".<br />chinmoyr edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-gqk6zp66ce3vpcs/" rel="noreferrer">(Show Details)</a><br />chinmoyr added a comment.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7430" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>1.Removed all macros<br />
2.Removed PrivilegeExecution flag.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">A<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">dd unit test for revisions mentioned in T6561</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">uto testing privilege operation is not feasible because it requires user interaction. So instead what we do<br />
is check if the flag for privilege execution is set and if the sub-jobs have a parent job.<br />
If the conditions are met then metadata "TestData" is added which tells that the job is properly configured<br />
and can perform file operations with elevated privileges.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D7430?vs=18429&id=24603" rel="noreferrer">https://phabricator.kde.org/D7430?vs=18429&id=24603</a></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7430" rel="noreferrer">https://phabricator.kde.org/D7430</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/CMakeLists.txt<br />
autotests/privilegejobtest.cpp<br />
autotests/privilegejobtest.h</div></div></div><br /><div><strong>To: </strong>chinmoyr, dfaure<br /><strong>Cc: </strong>ngraham, Frameworks<br /></div>