Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge RSimoes's Avatar
    Join Date
    Oct 2008
    Location
    Austin, TX
    Posts
    18

    Default Request for a cPanel API build-test module

    Currently there appears to be no way to perform build testing for API2 modules or other software created with the cPanel SDK. Testing amounts to installing the module and then using, say, Test::WWW::Mechanize to externally authenticate as a user and make API calls to the server via HTTP requests. It would be extremely convenient to have a "Test::Cpanel" module that would:
    1. Magically satisfy all `Cpanel::*` requirements, even for modules that don't have a physical presence in `/usr/local/cpanel/Cpanel`.
    2. Allow API2 functions to be called directly to test expected output for a contrived or real user on the server

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Request for a cPanel API build-test module

    Hi RSimoes,

    You should be able to test your custom API2 modules via the XML-API, just like calling any built-in cPanel API2 module/function.

    You can use a PublicAPI client package/class (Perl or PHP) to assist you in make these types of requests without much effort on your part.

    That said, you're correct in noting that there currently is not a test harness for modules/packages available to developers coding for the Cpanel::* namespace or cPanel ecosystem. I invite you to make a thread in our feature request forum, or we can move this thread there if you like.

    Best Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge RSimoes's Avatar
    Join Date
    Oct 2008
    Location
    Austin, TX
    Posts
    18

    Default Re: Request for a cPanel API build-test module

    Sure, I'd like the thread moved. Thanks!
    R. Simões
    Austin, TX

Similar Threads & Tags
Similar threads

  1. Request for a cPanel API build-test module
    By RSimoes in forum cPanel Developers
    Replies: 2
    Last Post: 05-09-2011, 12:15 AM
  2. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  3. SOAP as a PEAR Module - Test Script
    By wilburburns in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-12-2010, 07:34 AM
  4. Cpanel API similar to Ensim CLI module
    By nareshnaidu in forum New User Questions
    Replies: 5
    Last Post: 08-12-2005, 04:35 AM
  5. Addon request: FAQ module
    By DomineauX in forum cPanel Developers
    Replies: 2
    Last Post: 10-28-2004, 10:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube