Closed leonwanghui closed 6 years ago
Hey leonwanghui!
Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.
Hey leonwanghui!
Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.
Hi @norshtein @zhongyi-zhang , when I tested this patch with some real services, some errors occur as below:
PROVISION - new
should accept a valid provision request9476ms
PROVISION - poll
should reject requests without X-Broker-API-Version header with 412
should reject unauthorized requests with 401
should reject bad credentials with 401
should return succeeded operation status after provision
should return succeeded operation status after provision
Error: done() called multiple times
at pollInstanceLastOperationStatus (test/test.js:502:5)
at Context.<anonymous> (test/test.js:238:21)
Do you know how to fix it? Thanks!
Hi @norshtein @zhongyi-zhang , could you give some advice for the ci errors below:
1) Customized test cases
Mock Service Test
PROVISION - new
PROVISION - poll
should return succeeded operation status after provision:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
Thanks!
This PR is proposed for solving #46 by adding polling instance status method after async (provision, update and deprovision) operations.