Endevor

Expand all | Collapse all

I've set up webhooks, now how can I test it?

Jump to Best Answer
  • 1.  I've set up webhooks, now how can I test it?

    Posted 04-19-2018 08:10 AM

    We've got 18.0.11 & the latest PTFs installed on our sandbox system, we've set up the Tomcat server and managed to get the CA Endevor Eclipse plugin working (hurrah!). I want to have a quick go with the webhooks to see how they operate but I don't know where to start. I don't have ALC or a DevOps Jenkins Server to hand so how might I put together a quick "rig" to test it. 



  • 2.  Re: I've set up webhooks, now how can I test it?
    Best Answer

    Broadcom Employee
    Posted 04-19-2018 08:15 AM

    From a web browser (I use Mozilla Firefox for this) enter:

     

    http://hostname:port/mfwebhookserver/#!/webhooks 

     

    and you should see a configuration display called CA Mainframe Webhooks Server.



  • 3.  Re: I've set up webhooks, now how can I test it?

    Posted 04-25-2018 05:52 AM

    I've now got the Webhook Server Installed and can access the configuration pages via a browser. I've set up two 'dummy' Webhooks to give it a go with real email and directory values but with dummy Payload URL and API Key. The status of these webhooks keeps reverting to inactive, will I need a valid End Point to test these?



  • 4.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 08:16 AM
    Hi,


    Have you configured the web hook to have email notification?


    That will let you know if something fails and the USS log won’t be empty.


    Stuart




  • 5.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 08:56 AM

    Hi Bernie, 

     

    I couldn't get this to work, do you know where it's documented?

     

    Cheers,

     

    Ed



  • 6.  Re: I've set up webhooks, now how can I test it?

    Posted 04-25-2018 05:58 AM

    Sadly , the answer is yes


    That is why I raised an ideation for a validation transaction.


    There is a generic webhook plugin for Jenkins that you can use as an endpoint.


    For LBG you might want to look at the plugins provided by your test tool provider



  • 7.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 08:19 AM

    Not yet, this is all new to me so I'll go have a look at that bit of the documentation. 



  • 8.  Re: I've set up webhooks, now how can I test it?

    Posted 04-25-2018 06:04 AM

    Thanks Stuart, we've got some dev teams with Jenkins so I'll get them to have a look, just a shame I can't validate it myself. Also I've added a STMP server name that I 'think' will work but it would be good if you could send a test email.



  • 9.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 09:23 AM
    It is documented on the ALC wiki pages 




  • 10.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 09:22 AM

    It doesn’t render in IE if you are using that.


    Try chrome



  • 11.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 09:25 AM

    Yes, I was trying in chrome but nothing appeared.



  • 12.  Re: I've set up webhooks, now how can I test it?

    Posted 04-25-2018 06:23 AM

    Is there any security around the webhooks config or for consuming webhooks? I've not had to give any username or password. 



  • 13.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 09:26 AM

    Sorry, do you have a link?



  • 14.  Re: I've set up webhooks, now how can I test it?

    Posted 04-25-2018 07:12 AM

    You will probably need to complete the API key field with some value provided by your Jenkins people.


    The E2E log file needs to have the correct security for the Web server to delete entries 



  • 15.  Re: I've set up webhooks, now how can I test it?

    Posted 04-19-2018 09:01 PM

    Sorry Edward, are you asking for a wiki link or a webhook link?



  • 16.  Re: I've set up webhooks, now how can I test it?

    Posted 04-20-2018 02:58 AM

    I was after the documentation link and it turns out I had two issues. One was that I didn't have access to the ALC wiki and the other was that I hadn't set up webhooks. Nativity on my part, I assumed that when we set up the web services the webhooks would be part of the package. I'm not sure why this isn't documented under Endevor as well?

     

    https://docops.ca.com/ca-alc/3-0/en/mainframe-webhook-server