tests: add functional tests for rkt api service. #1761
Conversation
7565e78
to
9d3d948
Compare
9d3d948
to
4fb21f0
Compare
Update: Have run the previously failing test (TestAPIServiceGetInfo) for 1000 times on my machine, no failures so far. |
// Read pod manifest. | ||
// | ||
// TODO: run "rkt cat-manifest" instead of opening the manifest file manually. | ||
// https://github.com/coreos/rkt/issues/1730 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1730 is now merged.
LGTM after a rebase! The TODO about #1730 can be done after this PR gets merged. |
Actually among 16008 tests I run yesterday, there are 44 failures. It's seems reproduceable, still investigating. |
What are the failures? |
I have no idea so far, the process just exits with status = 2 |
I think I found out the reason, there is a race between the api service setting up the signal hander and the test sending the SIGINT. |
Also fixed the TODO for #1730 |
4fb21f0
to
9cc14c3
Compare
Add tests for GetInfo(), ListPods(), InspectPod() ListImages() and InspectImage().
9cc14c3
to
adf1bd6
Compare
Well spotted, LGTM. |
tests: add functional tests for rkt api service.
Add tests for GetInfo(), ListPods(), InspectPod()
ListImages() and InspectImage().
Fix #1668
This follows #1696 as semaphore refuses to test that branch :(