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)
|
* @see VAppClient#answerQuestion(URI, VmQuestionAnswer)
|
||||||
*/
|
*/
|
||||||
@PUT
|
@POST
|
||||||
@Path("/question/action/answer")
|
@Path("/question/action/answer")
|
||||||
@Produces(VM_PENDING_ANSWER)
|
@Produces(VM_PENDING_ANSWER)
|
||||||
@Consumes
|
@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)}.
|
* The answer IDs of choice and question should match the ones returned from operation {@link #getPendingQuestion(URI)}.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* PUT /vApp/{id}/question/action/answer
|
* POST /vApp/{id}/question/action/answer
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @since 0.9
|
* @since 0.9
|
||||||
|
|
|
@ -786,7 +786,7 @@ public class VAppClientLiveTest extends AbstractVAppClientLiveTest {
|
||||||
checkVmPendingQuestion(question);
|
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() {
|
public void testAnswerQuestion() {
|
||||||
// TODO check that the question has been answered (e.g. asking for getPendingQuestion does not
|
// TODO check that the question has been answered (e.g. asking for getPendingQuestion does not
|
||||||
// include our answered question).
|
// include our answered question).
|
||||||
|
|
Loading…
Reference in New Issue