<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19961">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cli: add test for increased channel name column width<br><br>Add new test under channel/local/local_longname to make sure<br>that a long channel name is displayed on the cli.<br><br>ASTERISK-30455<br><br>Change-Id: I8166be37580dc89e2812a6b4bba63cabe20ff21b<br>---<br>A tests/channels/local/local_longname/configs/ast1/extensions.conf<br>A tests/channels/local/local_longname/test-config.yaml<br>M tests/channels/local/tests.yaml<br>3 files changed, 67 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/61/19961/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/channels/local/local_longname/configs/ast1/extensions.conf b/tests/channels/local/local_longname/configs/ast1/extensions.conf</span><br><span>new file mode 100644</span><br><span>index 0000000..1bf65c5</span><br><span>--- /dev/null</span><br><span>+++ b/tests/channels/local/local_longname/configs/ast1/extensions.conf</span><br><span>@@ -0,0 +1,10 @@</span><br><span style="color: hsl(120, 100%, 40%);">+[default]</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+exten => ReallyReallyReallyLongExtension,1,Answer()</span><br><span style="color: hsl(120, 100%, 40%);">+same  =>      n,Wait(6)</span><br><span style="color: hsl(120, 100%, 40%);">+same  =>      n,Hangup()</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+[waitstaff]</span><br><span style="color: hsl(120, 100%, 40%);">+exten  => waiter,1,Answer()</span><br><span style="color: hsl(120, 100%, 40%);">+same  =>      n,Wait(8)</span><br><span style="color: hsl(120, 100%, 40%);">+same  =>      n,Hangup()</span><br><span>\ No newline at end of file</span><br><span>diff --git a/tests/channels/local/local_longname/test-config.yaml b/tests/channels/local/local_longname/test-config.yaml</span><br><span>new file mode 100644</span><br><span>index 0000000..6b927e8</span><br><span>--- /dev/null</span><br><span>+++ b/tests/channels/local/local_longname/test-config.yaml</span><br><span>@@ -0,0 +1,42 @@</span><br><span style="color: hsl(120, 100%, 40%);">+testinfo:</span><br><span style="color: hsl(120, 100%, 40%);">+    summary: 'Make sure that long channel names are printed via show channels.'</span><br><span style="color: hsl(120, 100%, 40%);">+    description: |</span><br><span style="color: hsl(120, 100%, 40%);">+        'This test originates a call to a Local extension, then we check to see if core</span><br><span style="color: hsl(120, 100%, 40%);">+        show channels uses the longer name limit.'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+properties:</span><br><span style="color: hsl(120, 100%, 40%);">+    dependencies:</span><br><span style="color: hsl(120, 100%, 40%);">+        - asterisk: 'res_pjsip'</span><br><span style="color: hsl(120, 100%, 40%);">+        - python: 'autobahn.websocket'</span><br><span style="color: hsl(120, 100%, 40%);">+        - python: 'starpy'</span><br><span style="color: hsl(120, 100%, 40%);">+        - python: 'twisted'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+test-modules:</span><br><span style="color: hsl(120, 100%, 40%);">+    add-test-to-search-path: 'True'</span><br><span style="color: hsl(120, 100%, 40%);">+    add-relative-to-search-path: ['../../pjsip/configuration']</span><br><span style="color: hsl(120, 100%, 40%);">+    test-object:</span><br><span style="color: hsl(120, 100%, 40%);">+        config-section: 'test-object-config'</span><br><span style="color: hsl(120, 100%, 40%);">+        typename: 'test_case.TestCaseModule'</span><br><span style="color: hsl(120, 100%, 40%);">+    modules:</span><br><span style="color: hsl(120, 100%, 40%);">+        -</span><br><span style="color: hsl(120, 100%, 40%);">+            config-section: originator-config</span><br><span style="color: hsl(120, 100%, 40%);">+            typename: 'pluggable_modules.Originator'</span><br><span style="color: hsl(120, 100%, 40%);">+        -</span><br><span style="color: hsl(120, 100%, 40%);">+            config-section: 'happy-config'</span><br><span style="color: hsl(120, 100%, 40%);">+            typename: 'test_harness.TestHarness'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+test-object-config:</span><br><span style="color: hsl(120, 100%, 40%);">+    asterisk-instances: 1</span><br><span style="color: hsl(120, 100%, 40%);">+    connect-ami: 'True'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+originator-config:</span><br><span style="color: hsl(120, 100%, 40%);">+    channel: 'Local/ReallyReallyReallyLongExtension@default'</span><br><span style="color: hsl(120, 100%, 40%);">+    application: 'Echo'</span><br><span style="color: hsl(120, 100%, 40%);">+    ignore-originate-failure: 'yes'</span><br><span style="color: hsl(120, 100%, 40%);">+    trigger: 'ami_connect'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+happy-config:</span><br><span style="color: hsl(120, 100%, 40%);">+    test-scenarios:</span><br><span style="color: hsl(120, 100%, 40%);">+        -</span><br><span style="color: hsl(120, 100%, 40%);">+            cli_command: 'core show channels'</span><br><span style="color: hsl(120, 100%, 40%);">+            output_query: 'Local/ReallyReallyReallyLongExtension@default-00000000*'</span><br><span>\ No newline at end of file</span><br><span>diff --git a/tests/channels/local/tests.yaml b/tests/channels/local/tests.yaml</span><br><span>index 2e1f942..2099668 100644</span><br><span>--- a/tests/channels/local/tests.yaml</span><br><span>+++ b/tests/channels/local/tests.yaml</span><br><span>@@ -6,3 +6,4 @@</span><br><span>     - test: 'local_optimize_away'</span><br><span>     - test: 'local_loop'</span><br><span>     - test: 'local_removed_audio_stream_request'</span><br><span style="color: hsl(120, 100%, 40%);">+    - test: 'local_longname'</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19961">change 19961</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/+/19961"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I8166be37580dc89e2812a6b4bba63cabe20ff21b </div>
<div style="display:none"> Gerrit-Change-Number: 19961 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>