<p> Attention is currently required from: George Joseph. </p>
<p>George Joseph <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19414">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">python libs: Add capability to set file permissions on a tests files<br><br>When testing encryption related scenarios, key files may need to<br>have specific permissions set in order for them to be used. See<br>https://issues.asterisk.org/jira/browse/ASTERISK-30213 for more<br>context. Since git doesn't natively support saving file<br>permissions other than the executable bit, we needed a way to set<br>them ourselves.<br><br>* The asterisk instance setup functions have been updated to<br> look for a file named ".permissions" in a test's config and<br> files directories which contains a list of files and octal<br> permissions to set before running the test.<br><br> For files in the config directory that are copied to<br> /etc/asterisk, the .permissions file must be in the<br> testdir/configs/astX directory.<br><br> Example:<br> testdir/<br> test_config.yaml<br> configs/<br> ast1/<br> .permissions<br> mykey.pem<br><br> The .permissions file would have the following:<br> # Permissions file for private key<br> mykey.pem:0600<br><br> For files copied to other places, the .permissions file<br> must be under the last symbolic part of the path.<br> Example:<br><br> testdir/<br> test_config.yaml<br> files/<br> ast1/<br> astvarlibdir/<br> .permissions<br> keys/<br> test.key<br><br> The .permissions file would have the following:<br> # Permissions file for private key<br> keys/test.key:0600<br><br> When this particular test runs, the .permissions file<br> will be processed and permissions set before the test<br> actually executes.<br><br>* .permissions files have been created for the two immediate tests<br> with issues:<br> tests/channels/iax2/encrypted-calls/rsa<br> tests/channels/iax2/encrypted-calls/rsa-dynamic<br><br>Change-Id: I4169b64c4e61b5856468a048c9fa138d81209831<br>---<br>M lib/python/asterisk/asterisk.py<br>M lib/python/asterisk/test_suite_utils.py<br>A tests/channels/iax2/encrypted-calls/rsa-dynamic/files/ast1/astvarlibdir/.permissions<br>A tests/channels/iax2/encrypted-calls/rsa/files/ast1/astvarlibdir/.permissions<br>4 files changed, 121 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/14/19414/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19414">change 19414</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/testsuite/+/19414"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I4169b64c4e61b5856468a048c9fa138d81209831 </div>
<div style="display:none"> Gerrit-Change-Number: 19414 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-CC: Philip Prindeville <philipp@redfish-solutions.com> </div>
<div style="display:none"> Gerrit-Attention: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>