Add unittest script.#2
Conversation
| neadm_services(){ | ||
|
|
||
| echo -e "\e[1;32mChecking nedge services...\e[0m" | ||
| for PROCESS in docker ccowgw auditserv ccowserv logger networkWorker restWorker |
| for PROCESS in docker ccowgw auditserv ccowserv logger networkWorker restWorker | ||
| do | ||
| CHECK=$0 | ||
| OUTPUT=$(ps aux | grep -v grep | grep -v $CHECK | grep $PROCESS) |
There was a problem hiding this comment.
Ideally you parse output of source /opt/nedge/env.sh && /opt/nedge/nmf/nefadm status | grep online for (rest network ccowserv docker ccowgws3)
This obviously must run from inside each container.
There was a problem hiding this comment.
source is not working inside container. I am not sure if it is a bug.
root@data01-ab:# docker exec -it nedge-data-s3 ls /opt/nedge/env.sh -lrt# docker exec -it nedge-data-s3 source /opt/nedge/env.sh
-rw-r--r-- 1 root root 1598 Nov 26 01:05 /opt/nedge/env.sh
root@data01-ab:
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"source\": executable file not found in $PATH"\n"
root@data01-ab:~#
I have tried to add a unit test script which will very the cluster and system status post installation.