August 2017
Intermediate to advanced
332 pages
9h 16m
English
The last missing part is the test script. In the same directory, let's create the test.sh file that represents the acceptance test:
#!/bin/bashsleep 60test $(curl calculator:8080/sum?a=1\&b=2) -eq 3
It's very similar to the previous acceptance test script, the only difference is that we can address the calculator service by the calculator hostname and that the port number is always 8080. Also, in this case, we wait inside the script, not in the Jenkinsfile.
Read now
Unlock full access