<p>includes <a href="https://github.com/opentechinstitute/luci-commotion-apps/pull/58" class="issue-link" title="Non exp apps">opentechinstitute/luci-commotion-apps#58</a></p>
<p>to test:<br>
0) flash two nodes<br>
1) set <code>applications.settings.lifetime</code> to <code>60</code> in <code>/etc/config/applications</code> on both nodes<br>
2) add application to node A. Node B should assimilate the advertisement. After 60 seconds have passed, make sure the advertisement is still on node B.<br>
3) on node A, set <code>applications.settings.allowpermanent</code> to <code>0</code> in <code>/etc/config/applications</code>.<br>
4) add app to node B. Node A should assimilate the advertisement. In the app's section in <code>/etc/config/applications</code> on node A, <code>lifetime</code> should be <code>0</code>, and there should be an <code>expiration</code> field set to 60 seconds after the node was added. After 60 seconds, the app should disappear from node A.<br>
5) Now set <code>applications.settings.lifetime</code> to <code>120</code> and <code>applications.settings.allowpermanent</code> to <code>0</code> on node B. Add a new app to node B; it should still expire on node A after 60 seconds.<br>
6) Set <code>applications.settings.lifetime</code> to <code>240</code> on node A. Add an app to node B. It should expire on A after 120 seconds.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/opentechinstitute/commotion-service-manager non-exp-apps</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/opentechinstitute/commotion-service-manager/pull/4'>https://github.com/opentechinstitute/commotion-service-manager/pull/4</a></p>
<h4>Commit Summary</h4>
<ul>
<li>allow lifetime==0</li>
<li>fix typos in default_lifetime()</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/commotion-service-manager/pull/4/files#diff-0">commotion-service-manager.c</a>
(28)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/commotion-service-manager/pull/4/files#diff-1">uci-utils.c</a>
(25)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/commotion-service-manager/pull/4/files#diff-2">uci-utils.h</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/commotion-service-manager/pull/4/files#diff-3">util.c</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/opentechinstitute/commotion-service-manager/pull/4.patch'>https://github.com/opentechinstitute/commotion-service-manager/pull/4.patch</a></li>
<li><a href='https://github.com/opentechinstitute/commotion-service-manager/pull/4.diff'>https://github.com/opentechinstitute/commotion-service-manager/pull/4.diff</a></li>
</ul>