[asterisk-bugs] [JIRA] (ASTERISK-24203) Sorcery: Allow for tests to temporarily select a sorcery wizard

Joshua Colp (JIRA) noreply at issues.asterisk.org
Wed Dec 20 06:31:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-24203:
-----------------------------------

    Severity: Minor  (was: Major)

> Sorcery: Allow for tests to temporarily select a sorcery wizard
> ---------------------------------------------------------------
>
>                 Key: ASTERISK-24203
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24203
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/Sorcery, Tests/NewFeature
>            Reporter: Mark Michelson
>            Severity: Minor
>
> Unit tests in Asterisk often tests objects that are managed by sorcery. If the sorcery object, by default, uses res_sorcery_config as its wizard, then the unit test is dependent on having a specific configuration file with the object configuration in it. The way that sorcery has worked around this previously is to have a sorcery.conf file that overrides the default wizard for the sorcery object type with one that allows for creation of the object in-place.
> A better solution would be for sorcery to have an API call, presumably only when TEST_FRAMEWORK is enabled, that allows for an object type to change its default wizard temporarily. A similar API call could be added to restore the default wizard when the test has completed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list