[Asterisk-code-review] cli: add test for increased channel name column width (testsuite[18])
Michael Bradeen
asteriskteam at digium.com
Mon Mar 6 14:54:46 CST 2023
Michael Bradeen has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/19961 )
Change subject: cli: add test for increased channel name column width
......................................................................
cli: add test for increased channel name column width
Add new test under channel/local/local_longname to make sure
that a long channel name is displayed on the cli.
ASTERISK-30455
Change-Id: I8166be37580dc89e2812a6b4bba63cabe20ff21b
---
A tests/channels/local/local_longname/configs/ast1/extensions.conf
A tests/channels/local/local_longname/test-config.yaml
M tests/channels/local/tests.yaml
3 files changed, 67 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/61/19961/1
diff --git a/tests/channels/local/local_longname/configs/ast1/extensions.conf b/tests/channels/local/local_longname/configs/ast1/extensions.conf
new file mode 100644
index 0000000..1bf65c5
--- /dev/null
+++ b/tests/channels/local/local_longname/configs/ast1/extensions.conf
@@ -0,0 +1,10 @@
+[default]
+
+exten => ReallyReallyReallyLongExtension,1,Answer()
+same => n,Wait(6)
+same => n,Hangup()
+
+[waitstaff]
+exten => waiter,1,Answer()
+same => n,Wait(8)
+same => n,Hangup()
\ No newline at end of file
diff --git a/tests/channels/local/local_longname/test-config.yaml b/tests/channels/local/local_longname/test-config.yaml
new file mode 100644
index 0000000..6b927e8
--- /dev/null
+++ b/tests/channels/local/local_longname/test-config.yaml
@@ -0,0 +1,42 @@
+testinfo:
+ summary: 'Make sure that long channel names are printed via show channels.'
+ description: |
+ 'This test originates a call to a Local extension, then we check to see if core
+ show channels uses the longer name limit.'
+
+properties:
+ dependencies:
+ - asterisk: 'res_pjsip'
+ - python: 'autobahn.websocket'
+ - python: 'starpy'
+ - python: 'twisted'
+
+test-modules:
+ add-test-to-search-path: 'True'
+ add-relative-to-search-path: ['../../pjsip/configuration']
+ test-object:
+ config-section: 'test-object-config'
+ typename: 'test_case.TestCaseModule'
+ modules:
+ -
+ config-section: originator-config
+ typename: 'pluggable_modules.Originator'
+ -
+ config-section: 'happy-config'
+ typename: 'test_harness.TestHarness'
+
+test-object-config:
+ asterisk-instances: 1
+ connect-ami: 'True'
+
+originator-config:
+ channel: 'Local/ReallyReallyReallyLongExtension at default'
+ application: 'Echo'
+ ignore-originate-failure: 'yes'
+ trigger: 'ami_connect'
+
+happy-config:
+ test-scenarios:
+ -
+ cli_command: 'core show channels'
+ output_query: 'Local/ReallyReallyReallyLongExtension at default-00000000*'
\ No newline at end of file
diff --git a/tests/channels/local/tests.yaml b/tests/channels/local/tests.yaml
index 2e1f942..2099668 100644
--- a/tests/channels/local/tests.yaml
+++ b/tests/channels/local/tests.yaml
@@ -6,3 +6,4 @@
- test: 'local_optimize_away'
- test: 'local_loop'
- test: 'local_removed_audio_stream_request'
+ - test: 'local_longname'
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/19961
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: 18
Gerrit-Change-Id: I8166be37580dc89e2812a6b4bba63cabe20ff21b
Gerrit-Change-Number: 19961
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230306/9b63ccb2/attachment-0001.html>
More information about the asterisk-code-review
mailing list