summaryrefslogtreecommitdiffstats
path: root/tests/lib/inspectors/sample
blob: d09f7ad0854bb1662a2cdfc4153c4181a5d4c7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

function start_inspector_sample {
    pgrep -f "python inspector.py" && return 0
    # TODO (r-mibu): make sample inspector use keystone v3 api
    OS_AUTH_URL=${OS_AUTH_URL/v3/v2.0} \
    python inspector.py "$INSPECTOR_PORT" > inspector.log 2>&1 &
}

function stop_inspector_sample {
    pgrep -f "python inspector.py" || return 0
    kill $(pgrep -f "python inspector.py")
}

function cleanup_inspector_sample {
    # Noop
    return
}