promise/plugin: Add check_socket_listening promise
This promise generalizes the check_port_listening promise to include AF_UNIX sockets in addition to AF_INET and AF_INET6 host/port sockets. The socket family and address is deduced from the set of arguments: - `host` & `port`: AF_INET or AF_INET6 - `pathname`: filesystem pathname address for AF_UNIX - `abstract`: '\0' is prefixed to build an abstract AF_UNIX address All other combinations of arguments are forbidden. The promise creates a socket accordingly and attempts to connect to the provided address. The promise fails if the connection fails. The check_port_listening promise has been removed. See merge request !97
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#240030
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:17:27
|
||||||
failed |
#240015
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:09:00
|
||||||
passed |
#239953
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:09:43
|
||||||
passed |
#239940
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:15:58
|
||||||