stavrospanakakis / is_ready Goto Github PK
View Code? Open in Web Editor NEWWait for multiple services to become available with zero dependencies
License: MIT License
Wait for multiple services to become available with zero dependencies
License: MIT License
The following feature exists:
This could be a good testing case that will check:
To Reproduce
Steps to reproduce the behavior:
is_ready
with a command that does not exist. For example:is_ready --addr google.com:80 -- command_that_does_not_exist
Connected to google.com:80 successfully
thread 'main' panicked at is_ready/src/lib.rs:73:10:
Failed to run the command.: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior
In this case, it should handle the error and return something more user friendly such as Command not found
The following feature exists:
This could be a good testing case that will check:
There might be cases that the user might not need to output any status messages.
The --quiet
or -q
flag can be used for this purpose.
$ is_ready \
--timeout 10 \
--addr github.com:80 \
--addr google.com:80 \
-- echo "The addresses are available"
Connected to google.com:80 successfully
Connected to github.com:80 successfully
The addresses are available
$ is_ready \
--quiet \
--timeout 10 \
--addr github.com:80 \
--addr google.com:80 \
-- echo "The addresses are available"
The addresses are available
The following feature exists:
--quiet
flag in case the user might not need to output any status messagesThis could be a good testing case that will check:
--quiet
flagThe following feature exists:
--timeout
flag to specify the seconds of the timeoutThis could be a good testing case that will check:
invalidaddr:1234
)--timeout
flagis_ready
waits for this amount of seconds before failingA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.