Skip to content

bliew-splunk/soar-cydarm

 
 

Repository files navigation

README - Cydarm SOAR App

Welcome to the open-source repository for Splunk> SOAR's Cydarm App.

Please have a look at our Contributing Guide if you are interested in contributing, raising issues, or learning more about open-source Phantom apps.

Legal and License

This SOAR App is licensed under the Apache 2.0 license. Please see our Contributing Guide for further details.

Context

Build

  • A Github action called Build SOAR App has been setup which creates the SOAR app .tgz as an artifact.

Structure of this repo

  • app/ contains all SOAR app files
  • package.sh is used to create a .tgz SOAR app bundle
  • app/cydarm.json is generated via update_app_json.sh, which runs the gen_app_json Python module

Running package.sh

  • requires the python package pyclean installed

How to run tests (test/)

  • Note that the tests in test_cydarm_api.py expect to hit a real Cydarm environment.
  • Also some of the tests are hardcoded against my own Cydarm instance, so may fail in another env.
    • TODO: generalise any hardcoded tests OR use mocks instead of real requests.
  • Python Requirements:
    • pytest
    • pytest-dotenv
  • Create a .env file in repo root based on this template:
    CYDARM_BASE_URL=
    CYDARM_USERNAME=
    CYDARM_PASSWORD=
    
  • Run PYTHONPATH=. pytest -v test/ from repo root.

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%