<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2160/1/7/_/styles/combined.css?spaceKey=TOP&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite">Test-Suite</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~dsessions@digium.com">Darren Sessions</a>
</h4>
<br/>
<h4>Changes (0)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This page is a work in progress</td></tr></table></div>
<h2><a name="Test-Suite-Overview"></a>Overview</h2>
<ul>
        <li>Server</li>
        <li>Remote</li>
</ul>
<h2><a name="Test-Suite-TestSuiteServer"></a>Test-Suite Server</h2>
<h4><a name="Test-Suite-TestParsingLogic"></a>Test Parsing Logic</h4>
<table width="100%">
<tr>
<td align="left">
<table>
<caption align="bottom">
</caption>
<tr>
<td>
<img style="border: none; width: 772px; height: 736px;"
usemap="#GLIFFY_MAP_13076796_testsuite-flow-chart"
src="/wiki/download/attachments/13076796/testsuite-flow-chart.png?version=5&modificationDate=1306165442588"
alt="A&#32;Gliffy&#32;Diagram&#32;named&#58;&#32;testsuite&#45;flow&#45;chart"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<h4><a name="Test-Suite-TestCaseStructure"></a>Test Case Structure</h4>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>name : <unique test name>
options :
network_captures: <'True' or 'False'>
call_flow_diagrams: <'True' or 'False'>
restart_persistant_plugins_between_tests: <'True' or 'False'>
tests :
- <unique subtest name> :
expected_failure : <'True' or 'False'>
timeline:
- <plugin name> :
testsuite_remote : <remote host name>
cmd :
<cmd> : <data structure>
- <unique subtest name> :
expected_failure : <'True' or 'False'>
timeline:
- <plugin name> :
testsuite_remote : <remote host name>
cmd :
<cmd> : <data structure>
</pre>
</div></div>
<h4><a name="Test-Suite-TestCaseOptions"></a>Test Case Options</h4>
<ul>
        <li>network_captures</li>
        <li>call_flow_diagrams</li>
        <li>restart_persistant_plugins_between_tests</li>
</ul>
<h4><a name="Test-Suite-Tests"></a>Tests</h4>
<ul>
        <li>expected_failure</li>
        <li>timeline</li>
        <li>plugins</li>
</ul>
<h4><a name="Test-Suite-TestSuiteRemote"></a>Test-Suite Remote</h4>
<ul>
        <li>run</li>
        <li>stop</li>
        <li>shutdown</li>
        <li>listProcesses</li>
        <li>writeFile</li>
        <li>cd</li>
</ul>
<h4><a name="Test-Suite-Installation"></a>Installation</h4>
<ul>
        <li>Ubuntu Maverick (10.10)
<style type="text/css">
@media all {
.expand-content { margin-left: 20px; }
.expand-control-icon { display: inline-block; width: 20px; }
.expand-control-text { vertical-align: top; text-decoration:none; }
.expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
.expand-hidden { display: none; }
.expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
/* show expander text in print */
.expand-content { display: block !important; }
}
</style>
<div id="expander-1809596547" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text">Click here to expand...</span></div>
<div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get install build-essential libboost1.40-all-dev liblua5.1-0-dev cmake libmcpp-dev libbz2-dev libdb4.8++-dev mono-gmcs monodevelop mono-xbuild ruby ruby1.8-dev php5-dev libexpat1-dev libssl-dev git-core corosync pacemaker gawk sip-tester python-yaml tshark </pre>
</div></div></div>
</li>
</ul>
<h2><a name="Test-Suite-BambooIntegration"></a>Bamboo Integration</h2>
<h4><a name="Test-Suite-AddingBambooUserAccount"></a>Adding Bamboo User Account</h4>
<ul>
        <li>Ubuntu Maverick (10.10)
<style type="text/css">
@media all {
.expand-content { margin-left: 20px; }
.expand-control-icon { display: inline-block; width: 20px; }
.expand-control-text { vertical-align: top; text-decoration:none; }
.expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
.expand-hidden { display: none; }
.expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
/* show expander text in print */
.expand-content { display: block !important; }
}
</style>
<div id="expander-119561188" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text">Click here to expand...</span></div>
<div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>sudo useradd --system --create-home --home-dir /opt/bamboo --shell /bin/bash bamboo
</pre>
</div></div></div>
</li>
</ul>
<h4><a name="Test-Suite-InstallRemoteAgent"></a>Install Remote Agent</h4>
<p>Add the following settings to the <bamboo-agent-home>/conf/wrapper.conf file. This will help keep the remote agents online when the bamboo server is restarted.</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>wrapper.max_failed_invocations=9999
wrapper.startup.delay=30
wrapper.restart.delay=30
</pre>
</div></div>
<h4><a name="Test-Suite-StartingRemoteAgent"></a>Starting Remote Agent</h4>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>
</pre>
</div></div>
<h2><a name="Test-Suite-Networking"></a>Networking</h2>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Test-Suite network diagram goes here</td></tr></table></div>
<h4><a name="Test-Suite-IPv6Example"></a>IPv6 Example</h4>
<ul>
        <li>Prefix: fd</li>
        <li>Subnet ID: 171d</li>
        <li>Global ID: f0801bc228</li>
        <li>Addresses: fdf0:801b:c228:171d:xxxx:xxxx:xxxx:xxxx</li>
</ul>
<p>Ubuntu IPv6 Example (without gateway)</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>iface eth0 inet6 static
pre-up modprobe ipv6
address fdf0:801b:c228:171d:0000:0000:0000:1000
netmask 64
</pre>
</div></div>
<p>fdf0:801b:c228:171d::10 = Test-Suite Server<br/>
fdf0:801b:c228:171d::500 = Test-Suite Build Slave<br/>
fdf0:801b:c228:171d::1000 = Test-Suite Remote 1<br/>
fdf0:801b:c228:171d::2000 = Test-Suite Remote 2<br/>
fdf0:801b:c228:171d::3000 = Test-Suite Remote 3<br/>
fdf0:801b:c228:171d::4000 = Test-Suite Remote 4</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=TOP">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=13076796&revisedVersion=18&originalVersion=17">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>