@applitools/eyes-scm

1.0.29 • Public • Published

eyes-scm

Allows to integrate source control systems (currently Bitbucket and GitHub) with Applitools without allowing Eyes to access the repos.

Getting started

One time setup

  1. Make sure you have node 12 installed
  2. Make sure you have yarn installed
  3. Run npm i -g @applitools/eyes-scm
  4. Get your Eyes organization ID: Go to your Eyes admin panel > Account page, and copy your organization ID (under GENERAL, ID).
  5. Add the following environment variables (you can use a .env file in the root folder):
  • EYES_SERVER_URL=https://<YOUR_CLOUD>eyes.applitools.com
  • EYES_ORG_ID=<YOUR_ORG_ID>
  • optionally: PORT=<PORT_NUMBER>
  • GITHUB_WEBHOOK_SECRET= - Only for cases where the events proxy is used.

All done!

Notes:

  • You’ll need a team admin user
  • You’ll need to create an API key for this user with full privileges
  • You’ll need an admin user in BitBucket or GitHub (depending on the system you use)

Running

run eyes-scm and navigate to localhost:4000 (or your PORT_NUMBER)

Webhook events proxy

For github only it is possible to use the eyes-scm service as a proxy for transferring webhook events to Eyes server. This allows users with strict network restrictions on their GitHub enterprise server to use Applitools GitHub integation.

The API endpoint is

POST /api/github-events-proxy

In order to use it, the webhook secret has to be provided to eyes-scm via the environment variable GITHUB_WEBHOOK_SECRET. In addition, the GitHub app should be configured to send all the webhook events to (eyes-scm-url)/api/github-events-proxy?serverId=&orgId=

Connecting MS SQL server (instead of local DB)

In order to use MSSQL server instead of the default SQLite Some additional environment variables have to be provided:

  • USE_MSSQL=true
  • MSSQL_DB_NAME
  • MSSQL_DB_HOST
  • MSSQL_DB_ENCRYPT (true/false)
  • MSSQL_DB_PORT
  • MSSQL_DB_PASSWORD
  • MSSQL_DB_USERNAME

Authentication using Azure Active Directory:

In order to authenticate using Active Directory (client ID and secret) Instead of MSSQL_DB_USERNAME and MSSQL_DB_PASSWORD, define the following environment variables:

  • MSSQL_AUTH_TYPE=azure-active-directory-service-principal-secret
  • MSSQL_AD_CLIENT_ID
  • MSSQL_AD_CLIENT_SECRET
  • MSSQL_AD_TENANT_ID

developers

From the root folder run yarn devel It will fire up the react app build scripts and the nodemon that will restart the process following relevant changes.

Readme

Keywords

none

Package Sidebar

Install

npm i @applitools/eyes-scm

Weekly Downloads

3

Version

1.0.29

License

none

Unpacked Size

4.42 MB

Total Files

79

Last publish

Collaborators

  • hedva.slassi
  • netta.bondy
  • arik-applitools
  • shai.shlomai
  • roeefr
  • livgerti
  • shiran.sidis
  • mmilapp
  • anandbagmar
  • dockermaster
  • mkowalew3382
  • itaiz134
  • anastasia.koifman
  • eirenik0
  • sergovapplitools
  • fatihsolhan-applitools
  • grayscale64
  • itaibh-applitools
  • bongo123
  • aretm_borodavka
  • netaavivi
  • applitoolsmustafa
  • zamboney
  • benbaba
  • amit.rokach
  • eladheller
  • adamcarmi
  • amir.groisman
  • noamshv
  • noam.gaash
  • giladgd
  • ran-itzhaki
  • noam.mendel
  • gearm
  • benny.halberstadt
  • gofilord
  • alex.burdeynyy
  • david.haeffner
  • chaimaharonson
  • roy.sela
  • ronikar_applitools
  • danielputerman
  • amitzur
  • ramapplitools
  • applitools-admin
  • applitools-readonly
  • iasisapp
  • yotammadem
  • liranbarokas
  • itayy.applitools
  • denis.styrt
  • kyrylo.onufriiev
  • amitzur-applitools
  • yardenw.applitools
  • ormeda
  • vgprod
  • clementbarry