Skip to content

electric-cloud/efendpointstest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EF Plugin Endpoints PoC

This is a proof of concept for EF Plugin Endpoints as described in Plugin-created Flow API endpoints. It works by running a http server at port 8888 and, whenever there's a relevant http request, eval'ing a DSL contained in plugin's EC-Github property at /ec_endpoints/webhook/dsl, which, in turn, runs procedure do nothing in project default. Originally it is intended to work as a github webhook.

Setup

  1. Clone this repo
git clone https://github.com/electric-cloud/efendpointstest.git /opt/electriccloud/mockflow
  1. Set up and run a systemd service
cp /opt/electriccloud/mockflow/mockflow.service /etc/systemd/system
systemctl daemon-reload
systemctl restart mockflow.service
journalctl -u mockflow.service
  1. Log in to EF server and create the necessary stuff inside
/opt/electriccloud/electriccommander/bin/ectool login username password
/opt/electriccloud/electriccommander/bin/ectool evalDsl --dslFile /opt/electriccloud/mockflow/EC-Github.dsl
  1. (optional) Configure a github webhook to your newly created endpoint at http://HOSTNAME:8888/endpoints/EC-Github/1.0/webhook
  2. Enjoy!

Example

This is set up on https://web.test.ecloud-kdemo.com according to the instructions above. Also, https://github.com/electric-cloud/test.git is set up to send a webhook to web.test.ecloud-kdemo.com on an code pushes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages