diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-07-13 22:47:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 22:47:10 +0300 |
commit | 76d10ab2509ca5b42e4c43258c390505617a5f31 (patch) | |
tree | c8f9fa0a8b86a761d6298c58c098e36999dc6a63 /tests | |
parent | 00020dd4c15f5cae568fabf53cc69d1501a887d2 (diff) |
dont add all nodes to registry action hello (#15388)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ebpf/ebpf_thread_function.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/ebpf/ebpf_thread_function.sh b/tests/ebpf/ebpf_thread_function.sh deleted file mode 100644 index dd1e7b6ee0..0000000000 --- a/tests/ebpf/ebpf_thread_function.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -netdata_ebpf_test_functions() { - echo "QUERYING: ${1}" - curl -k -o /tmp/ebpf_netdata_test_functions.txt "${1}" - TEST=$? - if [ $TEST -ne 0 ]; then - echo "Cannot request run a for ${1}. See '/tmp/ebpf_netdata_test_functions.txt' for more details." - exit 1 - fi - - grep "${2}" /tmp/ebpf_netdata_test_functions.txt >/dev/null - TEST=$? - if [ $TEST -ne 0 ]; then - echo "Cannot find ${2} in the output. See '/tmp/ebpf_netdata_test_functions.txt' for more details.." - exit 1 - fi - - rm /tmp/ebpf_netdata_test_functions.txt -} - -MURL="http://127.0.0.1:19999" -INTERVAL=60 - -if [ -n "$1" ]; then - MURL="$1" -fi - -# Check function loaded -netdata_ebpf_test_functions "${MURL}/api/v1/functions" "ebpf_thread" - -# Check function help -netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread%20help" "allows user to control eBPF threads" - -#Test default request -netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread" "columns" - -#Test thread requests . The mdflush is not enabled, because it is not present in all distributions by default. -#Socket is not in the list, because it will have a complete refactory with next PR -for THREAD in "cachestat" "dc" "disk" "fd" "filesystem" "hardirq" "mount" "oomkill" "process" "shm" "softirq" "sync" "swap" "vfs" ; -do - echo "TESTING ${THREAD}" - netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread%20enable:${THREAD}:${INTERVAL}%20thread:${THREAD}" - sleep 17 - netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread%20thread:${THREAD}" "running" - sleep 17 - netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread%20disable:${THREAD}" - sleep 6 - netdata_ebpf_test_functions "${MURL}/api/v1/function?function=ebpf_thread%20thread:${THREAD}" "stopped" - sleep 6 -done - |