mirror of https://github.com/apache/jclouds.git
Issue 830: Fix HTTP method for answerQuestion operation
This commit is contained in:
parent
4706ea4057
commit
26646872d5
|
@ -515,7 +515,7 @@ public interface VAppAsyncClient {
|
|||
/**
|
||||
* @see VAppClient#answerQuestion(URI, VmQuestionAnswer)
|
||||
*/
|
||||
@PUT
|
||||
@POST
|
||||
@Path("/question/action/answer")
|
||||
@Produces(VM_PENDING_ANSWER)
|
||||
@Consumes
|
||||
|
|
|
@ -574,7 +574,7 @@ public interface VAppClient {
|
|||
* The answer IDs of choice and question should match the ones returned from operation {@link #getPendingQuestion(URI)}.
|
||||
*
|
||||
* <pre>
|
||||
* PUT /vApp/{id}/question/action/answer
|
||||
* POST /vApp/{id}/question/action/answer
|
||||
* </pre>
|
||||
*
|
||||
* @since 0.9
|
||||
|
|
|
@ -786,7 +786,7 @@ public class VAppClientLiveTest extends AbstractVAppClientLiveTest {
|
|||
checkVmPendingQuestion(question);
|
||||
}
|
||||
|
||||
@Test(testName = "PUT /vApp/{id}/question/action/answer", dependsOnMethods = { "testGetPendingQuestion" })
|
||||
@Test(testName = "POST /vApp/{id}/question/action/answer", dependsOnMethods = { "testGetPendingQuestion" })
|
||||
public void testAnswerQuestion() {
|
||||
// TODO check that the question has been answered (e.g. asking for getPendingQuestion does not
|
||||
// include our answered question).
|
||||
|
|
Loading…
Reference in New Issue