Commit Graph

3 Commits

Author SHA1 Message Date
gotjosh
beeb27810c Add tests for probe/cri/registry
Unhappy path tests try to cover three scenarios:

- When the endpoint URL scheme is not explicitly supported e.g. HTTP
- When the endpoint URL scheme is TCP which is also not supported
- When the fail to parse the given URL (to extract the scheme)

The happy path covers two scenarios:

- When we specify the supported scheme in the URL which is an unix
socket e.g. unix///var/run/dockershim.sock
- When we pass a socket address but fail to specify the scheme but our registry attempts
to use the fallback protocol e.g. var/run/dockershim.sock
2018-11-01 20:17:03 +00:00
Ajay Kelkar
68bce4f57c Using assert for equality checks 2018-10-03 14:19:54 +05:30
Ajay Kelkar
27a0b2460d Absolute basic UT 2018-10-01 21:26:26 +05:30