alphasoc / nfr

A lightweight tool to score network traffic and flag anomalies
https://alphasoc.com
Other
122 stars 19 forks source link

API functions test #19

Closed phob0s-pl closed 7 years ago

phob0s-pl commented 7 years ago
        server := os.Getenv("ASOC_TEST_SERVER")
    if server == "" {
        return
    }

    key := os.Getenv("ASOC_API_KEY")
    if key == "" {
        return
    }

I have such a code in tests of API functions, because I am running clap meanwhile:

ASOC_API_KEY=2d18a990c0587b2078fbab5faa84be02 ./clap --sick --mock mock.toml

Is this way that is okay for you?